| | |
| | | package com.gkhy.safePlatform.equipment.service.baseService.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | | import com.gkhy.safePlatform.commons.utils.StringUtils; |
| | |
| | | import com.gkhy.safePlatform.equipment.enums.IssueReceiptEnum; |
| | | import com.gkhy.safePlatform.equipment.enums.ValidStatusEnum; |
| | | import com.gkhy.safePlatform.equipment.excepiton.EquipmentException; |
| | | import com.gkhy.safePlatform.equipment.model.dto.req.MaterialClassifyQuery; |
| | | import com.gkhy.safePlatform.equipment.model.dto.req.SafeMaterialClassifyQuery; |
| | | import com.gkhy.safePlatform.equipment.repository.SafeMaterialClassifyInfoRepository; |
| | | import com.gkhy.safePlatform.equipment.service.baseService.SafeMaterialClassifyInfoService; |
| | |
| | | return repository.getTraceabilityClassifyList(smallClassifyIds); |
| | | } |
| | | |
| | | @Override |
| | | public List<SafeMaterialClassifyInfo> listByPage(Page<SafeMaterialClassifyInfo> page, MaterialClassifyQuery query) { |
| | | return repository.listByConditions(page,query); |
| | | } |
| | | |
| | | @Override |
| | | public List<SafeMaterialClassifyInfo> getListByParentIds(List<Long> parentIdList) { |
| | | if (CollectionUtils.isEmpty(parentIdList)){ |
| | | throw new EquipmentException(ResultCodes.CLIENT_PARAM_NULL); |
| | | } |
| | | return repository.getListByParentIds(parentIdList); |
| | | } |
| | | |
| | | |
| | | } |