| | |
| | | HttpServletRequest req) { |
| | | QueryWrapper<DailyInspectionStandardDetail> queryWrapper = QueryGenerator.initQueryWrapper(standardDetail, req.getParameterMap()); |
| | | Page<DailyInspectionStandardDetail> page = new Page<DailyInspectionStandardDetail>(pageNo, pageSize); |
| | | IPage<DailyInspectionStandardDetail> pageList = equipmentService.getStandardList(page,standardDetail.getEquipmentId()); |
| | | IPage<DailyInspectionStandardDetail> pageList = equipmentService.getStandardList(page,standardDetail.getEquipmentId(),standardDetail.getType()); |
| | | return Result.OK(pageList); |
| | | } |
| | | @PostMapping("addLine") |
| | |
| | | @Param("lineId")String lineId, |
| | | @Param("sql")String sql |
| | | ); |
| | | List<DailyInspectionStandardDetail> getStandardList(Page<DailyInspectionStandardDetail> page,@Param("mainId") String mainId); |
| | | List<DailyInspectionStandardDetail> getStandardList(Page<DailyInspectionStandardDetail> page,@Param("mainId") String mainId,@Param("type")String type); |
| | | } |
| | |
| | | on t8.id = t3.maintenance_cycle_id |
| | | where t4.version_status = '2') t9 where |
| | | t9.equipmentId = #{mainId} |
| | | and t9.type = #{type} |
| | | order by t9.type |
| | | </select> |
| | | |
| | |
| | | public IPage<Equipment> pageEquipment(Integer pageNo, Integer pageSize, Map<String, Object> params); |
| | | |
| | | Page<Equipment> getEquipmentList(Page<Equipment> page, Equipment equipment); |
| | | IPage<DailyInspectionStandardDetail> getStandardList(Page<DailyInspectionStandardDetail> page, String mainId); |
| | | IPage<DailyInspectionStandardDetail> getStandardList(Page<DailyInspectionStandardDetail> page, String mainId,String type); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public IPage<DailyInspectionStandardDetail> getStandardList(Page<DailyInspectionStandardDetail> page, String mainId) { |
| | | return page.setRecords(baseMapper.getStandardList(page,mainId)); |
| | | public IPage<DailyInspectionStandardDetail> getStandardList(Page<DailyInspectionStandardDetail> page, String mainId,String type) { |
| | | return page.setRecords(baseMapper.getStandardList(page,mainId,type)); |
| | | } |
| | | } |