| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | @Service("emergencySuppliesInfoService") |
| | |
| | | @Override |
| | | public List<EmergencySuppliesInfo> listCountByIds(List<Long> ids) { |
| | | if(null == ids || ids.size() == 0){ |
| | | throw new EmergencyException(EmergencyResultCodes.SUPPLIES_PRAM_NULL); |
| | | throw new EmergencyException(EmergencyResultCodes.SUPPLIES_PARAM_NULL); |
| | | } |
| | | return baseMapper.listCountByIds(ids, (byte) 0,EmergencySuppliesStatusEnum.STATUS_ONE.getCode()); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<EmergencySuppliesInfo> getAllEmergencySupplies() { |
| | | return baseMapper.getAllEmergencySupplies(); |
| | | } |
| | | } |