diff --git a/ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList.vue b/ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList.vue new file mode 100644 index 00000000..8e76d5b5 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList.vue @@ -0,0 +1,223 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/zyplanprocess/modules/ZyPlanProcessForm.vue b/ant-design-vue-jeecg/src/views/zyplanprocess/modules/ZyPlanProcessForm.vue new file mode 100644 index 00000000..7b814cab --- /dev/null +++ b/ant-design-vue-jeecg/src/views/zyplanprocess/modules/ZyPlanProcessForm.vue @@ -0,0 +1,167 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/zyplanprocess/modules/ZyPlanProcessModal.vue b/ant-design-vue-jeecg/src/views/zyplanprocess/modules/ZyPlanProcessModal.vue new file mode 100644 index 00000000..512a5b19 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/zyplanprocess/modules/ZyPlanProcessModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/zyplanprocess/modules/ZyPlanProcessModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/zyplanprocess/modules/ZyPlanProcessModal__Style#Drawer.vue new file mode 100644 index 00000000..1a276124 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/zyplanprocess/modules/ZyPlanProcessModal__Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ 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 2c11750f..d5008bfa 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 @@ -11,11 +11,13 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; +import org.apache.shiro.SecurityUtils; import org.jeecg.common.api.vo.Result; import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.exception.JeecgBootException; import org.jeecg.common.system.base.controller.JeecgController; import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.system.vo.LoginUser; import org.jeecg.modules.productplan.entity.ZyPlanProcess; import org.jeecg.modules.productplan.entity.vo.ProcessDataVo; import org.jeecg.modules.productplan.service.IZyPlanProcessService; @@ -58,6 +60,33 @@ public class ZyPlanProcessController extends JeecgController useridstationid = new HashMap(){{ + put("GW01","1600683844590194690"); + put("GW02","1613836246416949250"); + put("GW03","1600683904673599490"); + put("GW04","1601500192400568321"); + put("GW05","1656505483663036418"); + put("GW06","1656575967264034817"); + put("GW07","1656577068503715841"); + put("GW08","1656577699205402625"); + put("GW09","1656578712880599042"); + put("GW11","1656579165194342401"); + put("GW12","1656579622599970817"); + put("GW13","1656580199899779073"); + put("GW14","1656580681556873217"); + put("GW15","1656583367589154817"); + put("GW16","1656582814427566082"); + put("GW17","1656581033844854785"); + put("GW18","1656583052286545922"); + put("GW19","1656583813116514305"); + put("GW21","1656585411720957954"); + put("GW23","1656584237127094274"); + put("GW24","1656585245655879681"); + put("GW25","1656585691661389826"); + put("GW26","1656585855876780033"); + put("GW27","1656586337106055170"); + put("GW28","1656587241611907073"); + }}; /** * 分页列表查询 * @@ -336,4 +365,21 @@ public class ZyPlanProcessController extends JeecgController pagelist(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); + Page page = new Page(pageNo, pageSize); + IPage pageList = zyPlanProcessService.page(page, queryWrapper); + return Result.OK(pageList); + } + }