From a7f0dac52e4a0dfb6eead6c4772d9fbc379da5d0 Mon Sep 17 00:00:00 2001 From: Gitea Date: Fri, 9 Jun 2023 15:55:31 +0800 Subject: [PATCH] bug --- .../views/zyplanprocess/ZyPlanProcessList.vue | 9 +- .../zyplanprocess/ZyPlanProcessList1.vue | 314 ++++++++++++++++++ .../controller/ZyPlanProcessController.java | 24 ++ 3 files changed, 346 insertions(+), 1 deletion(-) create mode 100644 ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList1.vue diff --git a/ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList.vue b/ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList.vue index e5484352..9a99ca3a 100644 --- a/ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList.vue +++ b/ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList.vue @@ -116,6 +116,11 @@ + + + + + @@ -139,6 +144,7 @@ import ZyProductModal from "../zyWorkProduct/modules/ZyProductModal"; import ZyProcessDetail from "../process/modules/ZyProcessDetail"; import ZyDeviceDetail from "../device/modules/ZyDeviceDetail"; + import ZyPlanProcessList1 from './ZyPlanProcessList1' export default { name: 'ZyPlanProcessList', @@ -149,7 +155,8 @@ WorkOrderModal, ZyProductModal, ZyProcessDetail, - ZyDeviceDetail + ZyDeviceDetail, + ZyPlanProcessList1 }, data () { return { diff --git a/ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList1.vue b/ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList1.vue new file mode 100644 index 00000000..94f20104 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList1.vue @@ -0,0 +1,314 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/controller/ZyPlanProcessController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/controller/ZyPlanProcessController.java index bed70015..6361452c 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/controller/ZyPlanProcessController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/controller/ZyPlanProcessController.java @@ -381,6 +381,30 @@ public class ZyPlanProcessController extends JeecgController queryWrapper = QueryGenerator.initQueryWrapper(zyPlanProcess, req.getParameterMap()); queryWrapper.eq("station_id",stationid); + queryWrapper.in("status",1,2); + Page page = new Page(pageNo, pageSize); + IPage pageList = zyPlanProcessService.page(page, queryWrapper); + for(int i = 0 ; i < pageList.getRecords().size() ; i++){ + ZyProductPlan zyProductPlan = zyProductPlanService.getById(pageList.getRecords().get(i).getPlanId()); + pageList.getRecords().get(i).setProductCode(zyProductPlan.getProductNo()); + pageList.getRecords().get(i).setProductNo(zyProductPlan.getProductCode()); + } + return Result.OK(pageList); + } + + @ApiOperation(value = "生产计划工序-分页列表查询", notes = "生产计划工序-分页列表查询") + @GetMapping(value = "/pagelist1") + public Result pagelist1(ZyPlanProcess zyPlanProcess, + @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, + @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, + HttpServletRequest req) { + //这里方便获取当前登陆信息 + LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + String username = loginUser.getUsername(); + String stationid = useridstationid.get(username).toString(); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(zyPlanProcess, req.getParameterMap()); + queryWrapper.eq("station_id",stationid); + queryWrapper.eq("status",3); Page page = new Page(pageNo, pageSize); IPage pageList = zyPlanProcessService.page(page, queryWrapper); for(int i = 0 ; i < pageList.getRecords().size() ; i++){