| | |
| | | import com.gkhy.safePlatform.equipment.model.dto.req.*; |
| | | import com.gkhy.safePlatform.equipment.model.dto.resp.EquipmentInfoDto; |
| | | import com.gkhy.safePlatform.equipment.repository.EquipmentInfoRepository; |
| | | import com.gkhy.safePlatform.equipment.repository.EquipmentTypeMngRepository; |
| | | import com.gkhy.safePlatform.equipment.service.*; |
| | | import com.gkhy.safePlatform.equipment.utils.QueryHelpPlus; |
| | | import org.apache.dubbo.config.annotation.DubboReference; |
| | |
| | | |
| | | @DubboReference(check = false) |
| | | private AccountDepartmentService accountDepartmentService; |
| | | |
| | | @Autowired |
| | | private EquipmentTypeMngRepository equipmentTypeMngRepository; |
| | | |
| | | @Override |
| | | public ResultVO queryAll(PageQuery<EquipmentInfoQueryCriteria> pageQuery) { |
| | |
| | | takecareDetailList.forEach(info->{info.setLeadingPersonDepartmentName(depNameMap.get(info.getLeadingPersonDepartmentId()));}); |
| | | testDetailList.forEach(info->{info.setTestPersonDepartmentName(depNameMap.get(info.getTestPersonDepartmentId()));}); |
| | | repairDetailList.forEach(info->{info.setRepairPersonDepartmentName(depNameMap.get(info.getRepairPersonDepartmentId()));}); |
| | | |
| | | EquipmentTypeMng typeMng = equipmentTypeMngRepository.selectOne(new QueryWrapper<EquipmentTypeMng>().eq("id",infoDto.getEquipmentTypeId())); |
| | | if(typeMng != null){ |
| | | infoDto.setEquipmentTypeName(typeMng.getTypeName()); |
| | | } |
| | | return infoDto; |
| | | } |
| | | |