|
|
@ -15,7 +15,9 @@ import org.jeecg.common.system.base.controller.JeecgController; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.modules.demo.tool.entity.ZyTool; |
|
|
|
import org.jeecg.modules.demo.tool.entity.ZyTool; |
|
|
|
import org.jeecg.modules.demo.tool.service.IZyToolService; |
|
|
|
import org.jeecg.modules.demo.tool.service.IZyToolService; |
|
|
|
|
|
|
|
import org.jeecg.modules.device.entity.ZyDevice; |
|
|
|
import org.jeecg.modules.device.service.IZyDeviceService; |
|
|
|
import org.jeecg.modules.device.service.IZyDeviceService; |
|
|
|
|
|
|
|
import org.jeecg.modules.team.entity.StationMachine; |
|
|
|
import org.jeecg.modules.team.entity.StationTool; |
|
|
|
import org.jeecg.modules.team.entity.StationTool; |
|
|
|
import org.jeecg.modules.team.service.IStationToolService; |
|
|
|
import org.jeecg.modules.team.service.IStationToolService; |
|
|
|
import org.jeecg.modules.team.vo.StationToolVo; |
|
|
|
import org.jeecg.modules.team.vo.StationToolVo; |
|
|
@ -69,6 +71,13 @@ public class StationToolController extends JeecgController<StationTool, IStation |
|
|
|
QueryWrapper<StationTool> queryWrapper = QueryGenerator.initQueryWrapper(stationTool, req.getParameterMap()); |
|
|
|
QueryWrapper<StationTool> queryWrapper = QueryGenerator.initQueryWrapper(stationTool, req.getParameterMap()); |
|
|
|
Page<StationTool> page = new Page<StationTool>(pageNo, pageSize); |
|
|
|
Page<StationTool> page = new Page<StationTool>(pageNo, pageSize); |
|
|
|
IPage<StationTool> pageList = stationToolService.page(page, queryWrapper); |
|
|
|
IPage<StationTool> pageList = stationToolService.page(page, queryWrapper); |
|
|
|
|
|
|
|
List<StationTool> records = pageList.getRecords(); |
|
|
|
|
|
|
|
if (!ObjectUtils.isEmpty(records)) { |
|
|
|
|
|
|
|
records.forEach(e -> { |
|
|
|
|
|
|
|
ZyTool zyTool = iZyToolService.getById(e.getToolsId()); |
|
|
|
|
|
|
|
e.setNums(StringUtils.isNotBlank(zyTool.getNums()) ? zyTool.getNums() : ""); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
return Result.OK(pageList); |
|
|
|
return Result.OK(pageList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|