diff --git a/ant-design-vue-jeecg/src/views/pdcomponentprocess/ProductComponentProcessList.vue b/ant-design-vue-jeecg/src/views/pdcomponentprocess/ProductComponentProcessList.vue
new file mode 100644
index 00000000..242be675
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/pdcomponentprocess/ProductComponentProcessList.vue
@@ -0,0 +1,297 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无图片
+
+
+
+ 无文件
+
+ 下载
+
+
+
+
+ handleDelete(record.id)">
+ 删除
+
+
+ 升序
+
+ 降序
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ProductComponentProcessForm.vue b/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ProductComponentProcessForm.vue
new file mode 100644
index 00000000..f03b14b2
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ProductComponentProcessForm.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ProductComponentProcessModal.vue b/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ProductComponentProcessModal.vue
new file mode 100644
index 00000000..b379a592
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ProductComponentProcessModal.vue
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ProductComponentProcessModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ProductComponentProcessModal__Style#Drawer.vue
new file mode 100644
index 00000000..a59b55bb
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ProductComponentProcessModal__Style#Drawer.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ZyProcessList.vue b/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ZyProcessList.vue
new file mode 100644
index 00000000..31f8b3f8
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/pdcomponentprocess/modules/ZyProcessList.vue
@@ -0,0 +1,288 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无图片
+
+
+
+ 无文件
+
+ 下载
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/pdmodulecomponent/ProductModuleComponentList.vue b/ant-design-vue-jeecg/src/views/pdmodulecomponent/ProductModuleComponentList.vue
index 1cd056a1..62c6d369 100644
--- a/ant-design-vue-jeecg/src/views/pdmodulecomponent/ProductModuleComponentList.vue
+++ b/ant-design-vue-jeecg/src/views/pdmodulecomponent/ProductModuleComponentList.vue
@@ -28,18 +28,18 @@
新增
-
导出
-
- 导入
-
+
+
+
+
-
-
-
- 删除
-
- 批量操作
-
+
+
+
+
+
+
+
@@ -82,7 +82,9 @@
下载
-
+
+ 管理
+
handleDelete(record.id)">
删除
@@ -155,6 +157,14 @@
align:"center",
dataIndex: 'number'
},
+ {
+ title: '部件工序管理',
+ dataIndex: 'action1',
+ align:"center",
+ fixed:"right",
+ width:147,
+ scopedSlots: { customRender: 'action1' }
+ },
{
title: '操作',
dataIndex: 'action',
@@ -204,6 +214,14 @@
this.$message.warning(res.message);
}
})},
+ bujian(id){
+ this.$router.push({
+ path: '/pdcomponentprocess/ProductComponentProcessList',
+ query: { // 路由携带参数
+ 'id': id,
+ }
+ });
+ },
initDictConfig(){
},
valueChange(value){
diff --git a/ant-design-vue-jeecg/src/views/product/pdaccessories/ProductAccessoriesList.vue b/ant-design-vue-jeecg/src/views/product/pdaccessories/ProductAccessoriesList.vue
new file mode 100644
index 00000000..6f94410e
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdaccessories/ProductAccessoriesList.vue
@@ -0,0 +1,261 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无图片
+
+
+
+ 无文件
+
+ 下载
+
+
+
+
+ 编辑
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdaccessories/modules/ProductAccessoriesForm.vue b/ant-design-vue-jeecg/src/views/product/pdaccessories/modules/ProductAccessoriesForm.vue
new file mode 100644
index 00000000..30929feb
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdaccessories/modules/ProductAccessoriesForm.vue
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdaccessories/modules/ProductAccessoriesModal.vue b/ant-design-vue-jeecg/src/views/product/pdaccessories/modules/ProductAccessoriesModal.vue
new file mode 100644
index 00000000..2a852d78
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdaccessories/modules/ProductAccessoriesModal.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdaccessories/modules/ProductAccessoriesModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/product/pdaccessories/modules/ProductAccessoriesModal__Style#Drawer.vue
new file mode 100644
index 00000000..39af192a
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdaccessories/modules/ProductAccessoriesModal__Style#Drawer.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdfabric/ProductFabricList.vue b/ant-design-vue-jeecg/src/views/product/pdfabric/ProductFabricList.vue
new file mode 100644
index 00000000..17208644
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdfabric/ProductFabricList.vue
@@ -0,0 +1,255 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无图片
+
+
+
+ 无文件
+
+ 下载
+
+
+
+
+ 编辑
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdfabric/modules/ProductFabricForm.vue b/ant-design-vue-jeecg/src/views/product/pdfabric/modules/ProductFabricForm.vue
new file mode 100644
index 00000000..a9c6e2f4
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdfabric/modules/ProductFabricForm.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdfabric/modules/ProductFabricModal.vue b/ant-design-vue-jeecg/src/views/product/pdfabric/modules/ProductFabricModal.vue
new file mode 100644
index 00000000..ce7b5a17
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdfabric/modules/ProductFabricModal.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdfabric/modules/ProductFabricModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/product/pdfabric/modules/ProductFabricModal__Style#Drawer.vue
new file mode 100644
index 00000000..824c0153
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdfabric/modules/ProductFabricModal__Style#Drawer.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdmachine/ProductMachineList.vue b/ant-design-vue-jeecg/src/views/product/pdmachine/ProductMachineList.vue
new file mode 100644
index 00000000..3a351145
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdmachine/ProductMachineList.vue
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无图片
+
+
+
+ 无文件
+
+ 下载
+
+
+
+
+
+
+
+
+ 升序
+
+ 降序
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdmachine/modules/ProductMachineForm.vue b/ant-design-vue-jeecg/src/views/product/pdmachine/modules/ProductMachineForm.vue
new file mode 100644
index 00000000..7df2bd87
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdmachine/modules/ProductMachineForm.vue
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdmachine/modules/ProductMachineModal.vue b/ant-design-vue-jeecg/src/views/product/pdmachine/modules/ProductMachineModal.vue
new file mode 100644
index 00000000..040b6993
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdmachine/modules/ProductMachineModal.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdmachine/modules/ProductMachineModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/product/pdmachine/modules/ProductMachineModal__Style#Drawer.vue
new file mode 100644
index 00000000..b06d86f3
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdmachine/modules/ProductMachineModal__Style#Drawer.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdoperationtool/ProductOperationtoolList.vue b/ant-design-vue-jeecg/src/views/product/pdoperationtool/ProductOperationtoolList.vue
new file mode 100644
index 00000000..094e8d12
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdoperationtool/ProductOperationtoolList.vue
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无图片
+
+
+
+ 无文件
+
+ 下载
+
+
+
+
+
+
+
+
+ 升序
+
+ 降序
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdoperationtool/modules/ProductOperationtoolForm.vue b/ant-design-vue-jeecg/src/views/product/pdoperationtool/modules/ProductOperationtoolForm.vue
new file mode 100644
index 00000000..56b3f652
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdoperationtool/modules/ProductOperationtoolForm.vue
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdoperationtool/modules/ProductOperationtoolModal.vue b/ant-design-vue-jeecg/src/views/product/pdoperationtool/modules/ProductOperationtoolModal.vue
new file mode 100644
index 00000000..c45e78b2
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdoperationtool/modules/ProductOperationtoolModal.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/product/pdoperationtool/modules/ProductOperationtoolModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/product/pdoperationtool/modules/ProductOperationtoolModal__Style#Drawer.vue
new file mode 100644
index 00000000..6fe91b36
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/product/pdoperationtool/modules/ProductOperationtoolModal__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/pdcomponentprocess/controller/ProductComponentProcessController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/controller/ProductComponentProcessController.java
new file mode 100644
index 00000000..8a88cc40
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/controller/ProductComponentProcessController.java
@@ -0,0 +1,231 @@
+package org.jeecg.modules.pdcomponentprocess.controller;
+
+
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecg.modules.pdcomponentprocess.entity.ProductComponentProcess;
+import org.jeecg.modules.pdcomponentprocess.service.IProductComponentProcessService;
+import org.jeecg.modules.pdmodulecomponent.entity.ProductModuleComponent;
+import org.jeecg.modules.pdmodulecomponent.service.IProductModuleComponentService;
+import org.jeecg.modules.product.zyproductprocess.service.IZyProductProcessService;
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+
+ /**
+ * @Description: 产品部件工序
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Api(tags="产品部件工序")
+@RestController
+@RequestMapping("/pdcomponentprocess/productComponentProcess")
+@Slf4j
+public class ProductComponentProcessController extends JeecgController {
+ @Autowired
+ private IProductComponentProcessService productComponentProcessService;
+ @Autowired
+ private IProductModuleComponentService productModuleComponentService;
+ @Autowired
+ IZyProductProcessService zyProductProcessService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param productComponentProcess
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ @AutoLog(value = "产品部件工序-分页列表查询")
+ @ApiOperation(value="产品部件工序-分页列表查询", notes="产品部件工序-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(ProductComponentProcess productComponentProcess,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+// QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(productComponentProcess, req.getParameterMap());
+ QueryWrapper queryWrapper=new QueryWrapper();
+ queryWrapper.orderByDesc("number");
+ //查询指定模块部件对应的工序
+ queryWrapper.eq("module_component_id",productComponentProcess.getModuleComponentId());
+ //根据产品编号查询
+ if(productComponentProcess.getProductComponentId()!=null&&!productComponentProcess.getProductComponentId().equals("")){
+ String s="%"+productComponentProcess.getProductComponentId()+"%";
+ List list=zyProductProcessService.findProduct(s);
+ queryWrapper.in("product_component_id",list);
+ }
+ //根据部件查询
+ if(productComponentProcess.getComponentId()!=null&&!productComponentProcess.getComponentId().equals("")){
+ String s="%"+productComponentProcess.getComponentId()+"%";
+ List list=productModuleComponentService.find(s);
+ queryWrapper.in("component_id",list);
+ }
+ //根据工序查询
+ if(productComponentProcess.getProcessId()!=null&&!productComponentProcess.getProcessId().equals("")){
+ String s="%"+productComponentProcess.getProcessId()+"%";
+ List list=zyProductProcessService.find(s);
+ queryWrapper.in("process_id",list);
+ }
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = productComponentProcessService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param productComponentProcess
+ * @return
+ */
+ @AutoLog(value = "产品部件工序-添加")
+ @ApiOperation(value="产品部件工序-添加", notes="产品部件工序-添加")
+ @PostMapping(value = "/add")
+ public Result> add(@RequestBody ProductComponentProcess productComponentProcess) {
+ ProductModuleComponent moduleComponent = productModuleComponentService.getById(productComponentProcess.getModuleComponentId());
+ if(moduleComponent!=null){
+ productComponentProcess.setProductComponentId(moduleComponent.getProductId());
+ productComponentProcess.setModuleId(moduleComponent.getModuleId());
+ productComponentProcess.setComponentId(moduleComponent.getComponentId());
+ }
+ String[] split = productComponentProcess.getProcessId().split(",");
+ for (String k : split) {
+ productComponentProcess.setProcessId(k);
+ QueryWrapper s=new QueryWrapper();
+ s.eq("module_component_id",productComponentProcess.getModuleComponentId());
+ s.eq("process_id",productComponentProcess.getComponentId());
+ int a=productComponentProcessService.count(s);
+ if(a==0)
+ productComponentProcessService.save(productComponentProcess);
+ productComponentProcess.setId(null);
+ }
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param productComponentProcess
+ * @return
+ */
+ @AutoLog(value = "产品部件工序-编辑")
+ @ApiOperation(value="产品部件工序-编辑", notes="产品部件工序-编辑")
+ @PutMapping(value = "/edit")
+ public Result> edit(@RequestBody ProductComponentProcess productComponentProcess) {
+ productComponentProcessService.updateById(productComponentProcess);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "产品部件工序-通过id删除")
+ @ApiOperation(value="产品部件工序-通过id删除", notes="产品部件工序-通过id删除")
+ @DeleteMapping(value = "/delete")
+ public Result> delete(@RequestParam(name="id",required=true) String id) {
+ productComponentProcessService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "产品部件工序-批量删除")
+ @ApiOperation(value="产品部件工序-批量删除", notes="产品部件工序-批量删除")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.productComponentProcessService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "产品部件工序-通过id查询")
+ @ApiOperation(value="产品部件工序-通过id查询", notes="产品部件工序-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result> queryById(@RequestParam(name="id",required=true) String id) {
+ ProductComponentProcess productComponentProcess = productComponentProcessService.getById(id);
+ if(productComponentProcess==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(productComponentProcess);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param productComponentProcess
+ */
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, ProductComponentProcess productComponentProcess) {
+ return super.exportXls(request, productComponentProcess, ProductComponentProcess.class, "产品部件工序");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, ProductComponentProcess.class);
+ }
+ @GetMapping(value = "/up")
+ public Result> up(@RequestParam(name="id",required=true) String id) {
+ productComponentProcessService.up(id);
+ return Result.OK("升序成功");
+ }
+ @GetMapping(value = "/down")
+ public Result> down(@RequestParam(name="id",required=true) String id) {
+ ProductComponentProcess zyProductProcess = productComponentProcessService.getById(id);
+ if(zyProductProcess==null||zyProductProcess.getNumber()==0)
+ return Result.error("当前以是最低级别!!");
+ productComponentProcessService.down(id);
+ return Result.OK("降序成功");
+ }
+
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/entity/ProductComponentProcess.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/entity/ProductComponentProcess.java
new file mode 100644
index 00000000..a5394730
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/entity/ProductComponentProcess.java
@@ -0,0 +1,74 @@
+package org.jeecg.modules.pdcomponentprocess.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 产品部件工序
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Data
+@TableName("product_component_process")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="product_component_process对象", description="产品部件工序")
+public class ProductComponentProcess implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**主键*/
+ @TableId(type = IdType.ASSIGN_ID)
+ @ApiModelProperty(value = "主键")
+ private String id;
+ /**创建人*/
+ @ApiModelProperty(value = "创建人")
+ private String createBy;
+ /**创建日期*/
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @ApiModelProperty(value = "创建日期")
+ private Date createTime;
+ /**产品id*/
+ @Excel(name = "产品id", width = 15)
+ @ApiModelProperty(value = "产品id")
+ //@Dict(dictTable = "zy_product",dicText = "product_code",dicCode = "id") 表暂未设计暂时不打开
+ private String productComponentId;
+ /**产品模块部件id*/
+ @Excel(name = "产品模块部件id", width = 15)
+ @ApiModelProperty(value = "产品模块部件id")
+ private String moduleComponentId;
+ /**模块id*/
+ @Excel(name = "模块id", width = 15)
+ @ApiModelProperty(value = "模块id")
+ @Dict(dictTable = "zy_cloths_modular",dicText = "modular_name",dicCode = "id")
+ private String moduleId;
+ /**部件id*/
+ @Excel(name = "部件id", width = 15)
+ @ApiModelProperty(value = "部件id")
+ @Dict(dictTable = "zy_cloths_component",dicText = "parts_name",dicCode = "id")
+ private String componentId;
+ /**工序id*/
+ @Excel(name = "工序id", width = 15)
+ @ApiModelProperty(value = "工序id")
+ @Dict(dictTable = "zy_process",dicText = "process_name",dicCode = "id")
+ private String processId;
+ /**序号*/
+ @Excel(name = "序号", width = 15)
+ @ApiModelProperty(value = "序号")
+ private Integer number;
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/mapper/ProductComponentProcessMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/mapper/ProductComponentProcessMapper.java
new file mode 100644
index 00000000..7339e1ad
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/mapper/ProductComponentProcessMapper.java
@@ -0,0 +1,24 @@
+package org.jeecg.modules.pdcomponentprocess.mapper;
+
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Update;
+import org.jeecg.modules.pdcomponentprocess.entity.ProductComponentProcess;
+
+/**
+ * @Description: 产品部件工序
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+public interface ProductComponentProcessMapper extends BaseMapper {
+
+ @Update("update product_component_process set number=number+1 where id=#{id}")
+ void up(String id);
+ @Update("update product_component_process set number=number-1 where id=#{id}")
+ void down(String id);
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/mapper/xml/ProductComponentProcessMapper.xml b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/mapper/xml/ProductComponentProcessMapper.xml
new file mode 100644
index 00000000..0c7e93b3
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/mapper/xml/ProductComponentProcessMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/service/IProductComponentProcessService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/service/IProductComponentProcessService.java
new file mode 100644
index 00000000..f070cea6
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/service/IProductComponentProcessService.java
@@ -0,0 +1,18 @@
+package org.jeecg.modules.pdcomponentprocess.service;
+
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.pdcomponentprocess.entity.ProductComponentProcess;
+
+/**
+ * @Description: 产品部件工序
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+public interface IProductComponentProcessService extends IService {
+
+ void up(String id);
+
+ void down(String id);
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/service/impl/ProductComponentProcessServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/service/impl/ProductComponentProcessServiceImpl.java
new file mode 100644
index 00000000..6756f146
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pdcomponentprocess/service/impl/ProductComponentProcessServiceImpl.java
@@ -0,0 +1,32 @@
+package org.jeecg.modules.pdcomponentprocess.service.impl;
+
+
+import org.jeecg.modules.pdcomponentprocess.entity.ProductComponentProcess;
+import org.jeecg.modules.pdcomponentprocess.mapper.ProductComponentProcessMapper;
+import org.jeecg.modules.pdcomponentprocess.service.IProductComponentProcessService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 产品部件工序
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Service
+public class ProductComponentProcessServiceImpl extends ServiceImpl implements IProductComponentProcessService {
+
+ @Autowired
+ ProductComponentProcessMapper productComponentProcessMapper;
+ @Override
+ public void up(String id) {
+ productComponentProcessMapper.up(id);
+ }
+
+ @Override
+ public void down(String id) {
+ productComponentProcessMapper.down(id);
+ }
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/controller/ProductAccessoriesController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/controller/ProductAccessoriesController.java
new file mode 100644
index 00000000..4904828b
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/controller/ProductAccessoriesController.java
@@ -0,0 +1,179 @@
+package org.jeecg.modules.product.pdaccessories.controller;
+
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecg.modules.product.pdaccessories.entity.ProductAccessories;
+import org.jeecg.modules.product.pdaccessories.service.IProductAccessoriesService;
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+
+ /**
+ * @Description: 产品辅料表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Api(tags="产品辅料表")
+@RestController
+@RequestMapping("/pdaccessories/productAccessories")
+@Slf4j
+public class ProductAccessoriesController extends JeecgController {
+ @Autowired
+ private IProductAccessoriesService productAccessoriesService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param productAccessories
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ @AutoLog(value = "产品辅料表-分页列表查询")
+ @ApiOperation(value="产品辅料表-分页列表查询", notes="产品辅料表-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(ProductAccessories productAccessories,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+// QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(productAccessories, req.getParameterMap());
+ QueryWrapper queryWrapper=new QueryWrapper();
+ queryWrapper.eq("product_id",productAccessories.getProductId());
+ if(productAccessories.getAccessoriesId()!=null&&!productAccessories.getAccessoriesId().equals("")){
+ String s="%"+productAccessories.getAccessoriesId()+"%";
+ List fabric = productAccessoriesService.findAll(s);
+ queryWrapper.in("accessories_id",fabric);
+ }
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = productAccessoriesService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param productAccessories
+ * @return
+ */
+ @AutoLog(value = "产品辅料表-添加")
+ @ApiOperation(value="产品辅料表-添加", notes="产品辅料表-添加")
+ @PostMapping(value = "/add")
+ public Result> add(@RequestBody ProductAccessories productAccessories) {
+ productAccessoriesService.save(productAccessories);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param productAccessories
+ * @return
+ */
+ @AutoLog(value = "产品辅料表-编辑")
+ @ApiOperation(value="产品辅料表-编辑", notes="产品辅料表-编辑")
+ @PutMapping(value = "/edit")
+ public Result> edit(@RequestBody ProductAccessories productAccessories) {
+ productAccessoriesService.updateById(productAccessories);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "产品辅料表-通过id删除")
+ @ApiOperation(value="产品辅料表-通过id删除", notes="产品辅料表-通过id删除")
+ @DeleteMapping(value = "/delete")
+ public Result> delete(@RequestParam(name="id",required=true) String id) {
+ productAccessoriesService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "产品辅料表-批量删除")
+ @ApiOperation(value="产品辅料表-批量删除", notes="产品辅料表-批量删除")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.productAccessoriesService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "产品辅料表-通过id查询")
+ @ApiOperation(value="产品辅料表-通过id查询", notes="产品辅料表-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result> queryById(@RequestParam(name="id",required=true) String id) {
+ ProductAccessories productAccessories = productAccessoriesService.getById(id);
+ if(productAccessories==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(productAccessories);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param productAccessories
+ */
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, ProductAccessories productAccessories) {
+ return super.exportXls(request, productAccessories, ProductAccessories.class, "产品辅料表");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, ProductAccessories.class);
+ }
+
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/entity/ProductAccessories.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/entity/ProductAccessories.java
new file mode 100644
index 00000000..aa010945
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/entity/ProductAccessories.java
@@ -0,0 +1,71 @@
+package org.jeecg.modules.product.pdaccessories.entity;
+
+
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 产品辅料表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Data
+@TableName("product_accessories")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="product_accessories对象", description="产品辅料表")
+public class ProductAccessories implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**主键*/
+ @TableId(type = IdType.ASSIGN_ID)
+ @ApiModelProperty(value = "主键")
+ private String id;
+ /**创建人*/
+ @ApiModelProperty(value = "创建人")
+ private String createBy;
+ /**创建日期*/
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @ApiModelProperty(value = "创建日期")
+ private Date createTime;
+ /**产品id*/
+ @Excel(name = "产品id", width = 15)
+ @ApiModelProperty(value = "产品id")
+ // @Dict(dictTable = "zy_product",dicText = "product_code",dicCode = "id") 由于当前产品还没有,需要后期打开
+ private String productId;
+ /**辅料id*/
+ @Excel(name = "辅料id", width = 15)
+ @ApiModelProperty(value = "辅料id")
+ @Dict(dictTable = "zy_accessories", dicText = "contents", dicCode = "id")
+ private String accessoriesId;
+ /**用量*/
+ @Excel(name = "用量", width = 15)
+ @ApiModelProperty(value = "用量")
+ private Double amount;
+ /**准备情况*/
+ @Excel(name = "准备情况", width = 15, dictTable = "ready", dicText = "", dicCode = "")
+ @Dict( dicText = "", dicCode = "ready")
+ @ApiModelProperty(value = "准备情况")
+ private Integer preparation;
+ /**差额*/
+ @Excel(name = "差额", width = 15)
+ @ApiModelProperty(value = "差额")
+ private Double difference;
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/mapper/ProductAccessoriesMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/mapper/ProductAccessoriesMapper.java
new file mode 100644
index 00000000..f7b96eaf
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/mapper/ProductAccessoriesMapper.java
@@ -0,0 +1,23 @@
+package org.jeecg.modules.product.pdaccessories.mapper;
+
+
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Select;
+import org.jeecg.modules.product.pdaccessories.entity.ProductAccessories;
+
+/**
+ * @Description: 产品辅料表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+public interface ProductAccessoriesMapper extends BaseMapper {
+
+ @Select("select id from zy_accessories where contents like #{s}")
+ List find(String s);
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/mapper/xml/ProductAccessoriesMapper.xml b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/mapper/xml/ProductAccessoriesMapper.xml
new file mode 100644
index 00000000..c34ee16b
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/mapper/xml/ProductAccessoriesMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/IProductAccessoriesService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/IProductAccessoriesService.java
new file mode 100644
index 00000000..cd2cda64
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/IProductAccessoriesService.java
@@ -0,0 +1,18 @@
+package org.jeecg.modules.product.pdaccessories.service;
+
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.product.pdaccessories.entity.ProductAccessories;
+
+import java.util.List;
+
+/**
+ * @Description: 产品辅料表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+public interface IProductAccessoriesService extends IService {
+
+ List findAll(String s);
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/impl/ProductAccessoriesServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/impl/ProductAccessoriesServiceImpl.java
new file mode 100644
index 00000000..26573738
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/impl/ProductAccessoriesServiceImpl.java
@@ -0,0 +1,29 @@
+package org.jeecg.modules.product.pdaccessories.service.impl;
+
+
+import org.jeecg.modules.product.pdaccessories.entity.ProductAccessories;
+import org.jeecg.modules.product.pdaccessories.mapper.ProductAccessoriesMapper;
+import org.jeecg.modules.product.pdaccessories.service.IProductAccessoriesService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+import java.util.List;
+
+/**
+ * @Description: 产品辅料表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Service
+public class ProductAccessoriesServiceImpl extends ServiceImpl implements IProductAccessoriesService {
+
+ @Autowired
+ ProductAccessoriesMapper productAccessoriesMapper;
+ @Override
+ public List findAll(String s) {
+ return productAccessoriesMapper.find(s);
+ }
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/controller/ProductFabricController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/controller/ProductFabricController.java
new file mode 100644
index 00000000..e1b164cf
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/controller/ProductFabricController.java
@@ -0,0 +1,181 @@
+package org.jeecg.modules.product.pdfabric.controller;
+
+
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecg.modules.product.pdfabric.entity.ProductFabric;
+import org.jeecg.modules.product.pdfabric.service.IProductFabricService;
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+
+ /**
+ * @Description: 产品面料表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Api(tags="产品面料表")
+@RestController
+@RequestMapping("/pdfabric/productFabric")
+@Slf4j
+public class ProductFabricController extends JeecgController {
+ @Autowired
+ private IProductFabricService productFabricService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param productFabric
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ @AutoLog(value = "产品面料表-分页列表查询")
+ @ApiOperation(value="产品面料表-分页列表查询", notes="产品面料表-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(ProductFabric productFabric,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+// QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(productFabric, req.getParameterMap());
+ QueryWrapper queryWrapper=new QueryWrapper();
+ queryWrapper.eq("product_id",productFabric.getProductId());
+ if(productFabric.getFabricId()!=null&&!productFabric.getFabricId().equals("")){
+ String s="%"+productFabric.getFabricId()+"%";
+ List fabric = productFabricService.findAll(s);
+ queryWrapper.in("fabric_id",fabric);
+ }
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = productFabricService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param productFabric
+ * @return
+ */
+ @AutoLog(value = "产品面料表-添加")
+ @ApiOperation(value="产品面料表-添加", notes="产品面料表-添加")
+ @PostMapping(value = "/add")
+ public Result> add(@RequestBody ProductFabric productFabric) {
+ productFabricService.save(productFabric);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param productFabric
+ * @return
+ */
+ @AutoLog(value = "产品面料表-编辑")
+ @ApiOperation(value="产品面料表-编辑", notes="产品面料表-编辑")
+ @PutMapping(value = "/edit")
+ public Result> edit(@RequestBody ProductFabric productFabric) {
+ productFabricService.updateById(productFabric);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "产品面料表-通过id删除")
+ @ApiOperation(value="产品面料表-通过id删除", notes="产品面料表-通过id删除")
+ @DeleteMapping(value = "/delete")
+ public Result> delete(@RequestParam(name="id",required=true) String id) {
+ productFabricService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "产品面料表-批量删除")
+ @ApiOperation(value="产品面料表-批量删除", notes="产品面料表-批量删除")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.productFabricService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "产品面料表-通过id查询")
+ @ApiOperation(value="产品面料表-通过id查询", notes="产品面料表-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result> queryById(@RequestParam(name="id",required=true) String id) {
+ ProductFabric productFabric = productFabricService.getById(id);
+ if(productFabric==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(productFabric);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param productFabric
+ */
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, ProductFabric productFabric) {
+ return super.exportXls(request, productFabric, ProductFabric.class, "产品面料表");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, ProductFabric.class);
+ }
+
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/entity/ProductFabric.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/entity/ProductFabric.java
new file mode 100644
index 00000000..b8b805f2
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/entity/ProductFabric.java
@@ -0,0 +1,71 @@
+package org.jeecg.modules.product.pdfabric.entity;
+
+
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 产品面料表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Data
+@TableName("product_fabric")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="product_fabric对象", description="产品面料表")
+public class ProductFabric implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**主键*/
+ @TableId(type = IdType.ASSIGN_ID)
+ @ApiModelProperty(value = "主键")
+ private String id;
+ /**创建人*/
+ @ApiModelProperty(value = "创建人")
+ private String createBy;
+ /**创建日期*/
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @ApiModelProperty(value = "创建日期")
+ private Date createTime;
+ /**产品id*/
+ @Excel(name = "产品id", width = 15)
+ @ApiModelProperty(value = "产品id")
+ // @Dict(dictTable = "zy_product",dicText = "product_code",dicCode = "id") 由于当前产品还没有,需要后期打开
+ private String productId;
+ /**面料id*/
+ @Excel(name = "面料id", width = 15)
+ @ApiModelProperty(value = "面料id")
+ @Dict(dictTable = "zy_fabric", dicText = "name", dicCode = "id")
+ private String fabricId;
+ /**用量*/
+ @Excel(name = "用量", width = 15)
+ @ApiModelProperty(value = "用量")
+ private Double amount;
+ /**准备情况*/
+ @Excel(name = "准备情况", width = 15)
+ @ApiModelProperty(value = "准备情况")
+ @Dict( dicText = "", dicCode = "ready")
+ private Integer preparation;
+ /**差额*/
+ @Excel(name = "差额", width = 15)
+ @ApiModelProperty(value = "差额")
+ private Double difference;
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/mapper/ProductFabricMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/mapper/ProductFabricMapper.java
new file mode 100644
index 00000000..1abfe6bd
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/mapper/ProductFabricMapper.java
@@ -0,0 +1,23 @@
+package org.jeecg.modules.product.pdfabric.mapper;
+
+
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Select;
+import org.jeecg.modules.product.pdfabric.entity.ProductFabric;
+
+/**
+ * @Description: 产品面料表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+public interface ProductFabricMapper extends BaseMapper {
+
+ @Select("select id from zy_fabric where name like #{s}")
+ List find(String s);
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/mapper/xml/ProductFabricMapper.xml b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/mapper/xml/ProductFabricMapper.xml
new file mode 100644
index 00000000..21914e0e
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/mapper/xml/ProductFabricMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/IProductFabricService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/IProductFabricService.java
new file mode 100644
index 00000000..2b942921
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/IProductFabricService.java
@@ -0,0 +1,17 @@
+package org.jeecg.modules.product.pdfabric.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.product.pdfabric.entity.ProductFabric;
+
+import java.util.List;
+
+/**
+ * @Description: 产品面料表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+public interface IProductFabricService extends IService {
+
+ List findAll(String s);
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/impl/ProductFabricServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/impl/ProductFabricServiceImpl.java
new file mode 100644
index 00000000..2910365c
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/impl/ProductFabricServiceImpl.java
@@ -0,0 +1,29 @@
+package org.jeecg.modules.product.pdfabric.service.impl;
+
+
+import org.jeecg.modules.product.pdfabric.entity.ProductFabric;
+import org.jeecg.modules.product.pdfabric.mapper.ProductFabricMapper;
+import org.jeecg.modules.product.pdfabric.service.IProductFabricService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+import java.util.List;
+
+/**
+ * @Description: 产品面料表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Service
+public class ProductFabricServiceImpl extends ServiceImpl implements IProductFabricService {
+
+ @Autowired
+ ProductFabricMapper productFabricMapper;
+ @Override
+ public List findAll(String s) {
+ return productFabricMapper.find(s);
+ }
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/controller/ProductMachineController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/controller/ProductMachineController.java
new file mode 100644
index 00000000..cd26dd82
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/controller/ProductMachineController.java
@@ -0,0 +1,194 @@
+package org.jeecg.modules.product.pdmachine.controller;
+
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecg.modules.product.pdmachine.entity.ProductMachine;
+import org.jeecg.modules.product.pdmachine.service.IProductMachineService;
+import org.jeecg.modules.product.zyproductprocess.entity.ZyProductProcess;
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+
+ /**
+ * @Description: 产品设备表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Api(tags="产品设备表")
+@RestController
+@RequestMapping("/pdmachine/productMachine")
+@Slf4j
+public class ProductMachineController extends JeecgController {
+ @Autowired
+ private IProductMachineService productMachineService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param productMachine
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ @AutoLog(value = "产品设备表-分页列表查询")
+ @ApiOperation(value="产品设备表-分页列表查询", notes="产品设备表-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(ProductMachine productMachine,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+// QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(productMachine, req.getParameterMap());
+ QueryWrapper queryWrapper=new QueryWrapper();
+ queryWrapper.orderByDesc("sort");
+ queryWrapper.eq("product_id",productMachine.getProductId());
+ if(productMachine.getMachineId()!=null&&!productMachine.getMachineId().equals("")){
+ String s="%"+productMachine.getMachineId()+"%";
+ List fabric = productMachineService.findAll(s);
+ queryWrapper.in("machine_id",fabric);
+ }
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = productMachineService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param productMachine
+ * @return
+ */
+ @AutoLog(value = "产品设备表-添加")
+ @ApiOperation(value="产品设备表-添加", notes="产品设备表-添加")
+ @PostMapping(value = "/add")
+ public Result> add(@RequestBody ProductMachine productMachine) {
+ productMachineService.save(productMachine);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param productMachine
+ * @return
+ */
+ @AutoLog(value = "产品设备表-编辑")
+ @ApiOperation(value="产品设备表-编辑", notes="产品设备表-编辑")
+ @PutMapping(value = "/edit")
+ public Result> edit(@RequestBody ProductMachine productMachine) {
+ productMachineService.updateById(productMachine);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "产品设备表-通过id删除")
+ @ApiOperation(value="产品设备表-通过id删除", notes="产品设备表-通过id删除")
+ @DeleteMapping(value = "/delete")
+ public Result> delete(@RequestParam(name="id",required=true) String id) {
+ productMachineService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "产品设备表-批量删除")
+ @ApiOperation(value="产品设备表-批量删除", notes="产品设备表-批量删除")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.productMachineService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "产品设备表-通过id查询")
+ @ApiOperation(value="产品设备表-通过id查询", notes="产品设备表-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result> queryById(@RequestParam(name="id",required=true) String id) {
+ ProductMachine productMachine = productMachineService.getById(id);
+ if(productMachine==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(productMachine);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param productMachine
+ */
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, ProductMachine productMachine) {
+ return super.exportXls(request, productMachine, ProductMachine.class, "产品设备表");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, ProductMachine.class);
+ }
+ @GetMapping(value = "/up")
+ public Result> up(@RequestParam(name="id",required=true) String id) {
+ productMachineService.up(id);
+ return Result.OK("升序成功");
+ }
+ @GetMapping(value = "/down")
+ public Result> down(@RequestParam(name="id",required=true) String id) {
+ ProductMachine zyProductProcess = productMachineService.getById(id);
+ if(zyProductProcess==null||zyProductProcess.getSort()==0)
+ return Result.error("当前以是最低级别!!");
+ productMachineService.down(id);
+ return Result.OK("降序成功");
+ }
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/entity/ProductMachine.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/entity/ProductMachine.java
new file mode 100644
index 00000000..05e7ec14
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/entity/ProductMachine.java
@@ -0,0 +1,63 @@
+package org.jeecg.modules.product.pdmachine.entity;
+
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 产品设备表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Data
+@TableName("product_machine")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="product_machine对象", description="产品设备表")
+public class ProductMachine implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**主键*/
+ @TableId(type = IdType.ASSIGN_ID)
+ @ApiModelProperty(value = "主键")
+ private String id;
+ /**创建日期*/
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @ApiModelProperty(value = "创建日期")
+ private Date createTime;
+ /**产品id*/
+ @Excel(name = "产品id", width = 15)
+ @ApiModelProperty(value = "产品id")
+ // @Dict(dictTable = "zy_product",dicText = "product_code",dicCode = "id") 由于当前产品还没有,需要后期打开
+ private String productId;
+ /**设备d*/
+ @Excel(name = "设备d", width = 15)
+ @ApiModelProperty(value = "设备d")
+ @Dict(dictTable = "zy_devicetype", dicText = "name", dicCode = "id")
+ private String machineId;
+ /**序号*/
+ @Excel(name = "序号", width = 15)
+ @ApiModelProperty(value = "序号")
+ private Integer sort;
+ /**准备情况*/
+ @Excel(name = "准备情况", width = 15)
+ @ApiModelProperty(value = "准备情况")
+ @Dict( dicText = "", dicCode = "ready")
+ private Integer preparation;
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/mapper/ProductMachineMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/mapper/ProductMachineMapper.java
new file mode 100644
index 00000000..9584a5b0
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/mapper/ProductMachineMapper.java
@@ -0,0 +1,28 @@
+package org.jeecg.modules.product.pdmachine.mapper;
+
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+import org.jeecg.modules.product.pdmachine.entity.ProductMachine;
+
+/**
+ * @Description: 产品设备表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+public interface ProductMachineMapper extends BaseMapper {
+
+ @Select("select id from zy_devicetype where name like #{s}")
+ List find(String s);
+
+ @Update("update product_machine set sort=sort+1 where id=#{id}")
+ void up(String id);
+ @Update("update product_machine set sort=sort-1 where id=#{id}")
+ void down(String id);
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/mapper/xml/ProductMachineMapper.xml b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/mapper/xml/ProductMachineMapper.xml
new file mode 100644
index 00000000..1b92ee6f
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/mapper/xml/ProductMachineMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/IProductMachineService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/IProductMachineService.java
new file mode 100644
index 00000000..79c7ad40
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/IProductMachineService.java
@@ -0,0 +1,22 @@
+package org.jeecg.modules.product.pdmachine.service;
+
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.product.pdmachine.entity.ProductMachine;
+
+import java.util.List;
+
+/**
+ * @Description: 产品设备表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+public interface IProductMachineService extends IService {
+
+ List findAll(String s);
+
+ void up(String id);
+
+ void down(String id);
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/impl/ProductMachineServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/impl/ProductMachineServiceImpl.java
new file mode 100644
index 00000000..929178c6
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/impl/ProductMachineServiceImpl.java
@@ -0,0 +1,39 @@
+package org.jeecg.modules.product.pdmachine.service.impl;
+
+
+import org.jeecg.modules.product.pdmachine.entity.ProductMachine;
+import org.jeecg.modules.product.pdmachine.mapper.ProductMachineMapper;
+import org.jeecg.modules.product.pdmachine.service.IProductMachineService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+import java.util.List;
+
+/**
+ * @Description: 产品设备表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Service
+public class ProductMachineServiceImpl extends ServiceImpl implements IProductMachineService {
+
+ @Autowired
+ ProductMachineMapper productMachineMapper;
+ @Override
+ public List findAll(String s) {
+ return productMachineMapper.find(s);
+ }
+
+ @Override
+ public void up(String id) {
+ productMachineMapper.up(id);
+ }
+
+ @Override
+ public void down(String id) {
+ productMachineMapper.down(id);
+ }
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/controller/ProductOperationtoolController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/controller/ProductOperationtoolController.java
new file mode 100644
index 00000000..09bab0d3
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/controller/ProductOperationtoolController.java
@@ -0,0 +1,195 @@
+package org.jeecg.modules.product.pdoperationtool.controller;
+
+
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecg.modules.product.pdmachine.entity.ProductMachine;
+import org.jeecg.modules.product.pdoperationtool.entity.ProductOperationtool;
+import org.jeecg.modules.product.pdoperationtool.service.IProductOperationtoolService;
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+
+ /**
+ * @Description: 产品工具表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Api(tags="产品工具表")
+@RestController
+@RequestMapping("/pdoperationtool/productOperationtool")
+@Slf4j
+public class ProductOperationtoolController extends JeecgController {
+ @Autowired
+ private IProductOperationtoolService productOperationtoolService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param productOperationtool
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ @AutoLog(value = "产品工具表-分页列表查询")
+ @ApiOperation(value="产品工具表-分页列表查询", notes="产品工具表-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(ProductOperationtool productOperationtool,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+// QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(productOperationtool, req.getParameterMap());
+ QueryWrapper queryWrapper=new QueryWrapper();
+ queryWrapper.eq("product_id",productOperationtool.getProductId());
+ queryWrapper.orderByDesc("sort");
+ if(productOperationtool.getOperationtoolId()!=null&&!productOperationtool.getOperationtoolId().equals("")){
+ String s="%"+productOperationtool.getOperationtoolId()+"%";
+ List fabric = productOperationtoolService.findAll(s);
+ queryWrapper.in("machine_id",fabric);
+ }
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = productOperationtoolService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param productOperationtool
+ * @return
+ */
+ @AutoLog(value = "产品工具表-添加")
+ @ApiOperation(value="产品工具表-添加", notes="产品工具表-添加")
+ @PostMapping(value = "/add")
+ public Result> add(@RequestBody ProductOperationtool productOperationtool) {
+ productOperationtoolService.save(productOperationtool);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param productOperationtool
+ * @return
+ */
+ @AutoLog(value = "产品工具表-编辑")
+ @ApiOperation(value="产品工具表-编辑", notes="产品工具表-编辑")
+ @PutMapping(value = "/edit")
+ public Result> edit(@RequestBody ProductOperationtool productOperationtool) {
+ productOperationtoolService.updateById(productOperationtool);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "产品工具表-通过id删除")
+ @ApiOperation(value="产品工具表-通过id删除", notes="产品工具表-通过id删除")
+ @DeleteMapping(value = "/delete")
+ public Result> delete(@RequestParam(name="id",required=true) String id) {
+ productOperationtoolService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "产品工具表-批量删除")
+ @ApiOperation(value="产品工具表-批量删除", notes="产品工具表-批量删除")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.productOperationtoolService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "产品工具表-通过id查询")
+ @ApiOperation(value="产品工具表-通过id查询", notes="产品工具表-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result> queryById(@RequestParam(name="id",required=true) String id) {
+ ProductOperationtool productOperationtool = productOperationtoolService.getById(id);
+ if(productOperationtool==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(productOperationtool);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param productOperationtool
+ */
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, ProductOperationtool productOperationtool) {
+ return super.exportXls(request, productOperationtool, ProductOperationtool.class, "产品工具表");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, ProductOperationtool.class);
+ }
+ @GetMapping(value = "/up")
+ public Result> up(@RequestParam(name="id",required=true) String id) {
+ productOperationtoolService.up(id);
+ return Result.OK("升序成功");
+ }
+ @GetMapping(value = "/down")
+ public Result> down(@RequestParam(name="id",required=true) String id) {
+ ProductOperationtool zyProductProcess = productOperationtoolService.getById(id);
+ if(zyProductProcess==null||zyProductProcess.getSort()==0)
+ return Result.error("当前以是最低级别!!");
+ productOperationtoolService.down(id);
+ return Result.OK("降序成功");
+ }
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/entity/ProductOperationtool.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/entity/ProductOperationtool.java
new file mode 100644
index 00000000..0fa100c2
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/entity/ProductOperationtool.java
@@ -0,0 +1,64 @@
+package org.jeecg.modules.product.pdoperationtool.entity;
+
+
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 产品工具表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Data
+@TableName("product_operationtool")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="product_operationtool对象", description="产品工具表")
+public class ProductOperationtool implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**主键*/
+ @TableId(type = IdType.ASSIGN_ID)
+ @ApiModelProperty(value = "主键")
+ private String id;
+ /**创建日期*/
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @ApiModelProperty(value = "创建日期")
+ private Date createTime;
+ /**产品id*/
+ @Excel(name = "产品id", width = 15)
+ @ApiModelProperty(value = "产品id")
+ // @Dict(dictTable = "zy_product",dicText = "product_code",dicCode = "id") 由于当前产品还没有,需要后期打开
+ private String productId;
+ /**工具id*/
+ @Excel(name = "工具id", width = 15)
+ @ApiModelProperty(value = "工具id")
+ @Dict(dictTable = "zy_tool", dicText = "name", dicCode = "id")
+ private String operationtoolId;
+ /**序号*/
+ @Excel(name = "序号", width = 15)
+ @ApiModelProperty(value = "序号")
+ private Integer sort;
+ /**准备情况*/
+ @Excel(name = "准备情况", width = 15)
+ @ApiModelProperty(value = "准备情况")
+ @Dict(dicCode = "ready")
+ private Integer preparation;
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/mapper/ProductOperationtoolMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/mapper/ProductOperationtoolMapper.java
new file mode 100644
index 00000000..2e51c5bb
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/mapper/ProductOperationtoolMapper.java
@@ -0,0 +1,28 @@
+package org.jeecg.modules.product.pdoperationtool.mapper;
+
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+import org.jeecg.modules.product.pdoperationtool.entity.ProductOperationtool;
+
+/**
+ * @Description: 产品工具表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+public interface ProductOperationtoolMapper extends BaseMapper {
+
+ @Select("select id from zy_tool where name like #{s}")
+ List find(String s);
+
+ @Update("update product_operationtool set sort=sort+1 where id=#{id}")
+ void up(String id);
+ @Update("update product_operationtool set sort=sort-1 where id=#{id}")
+ void down(String id);
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/mapper/xml/ProductOperationtoolMapper.xml b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/mapper/xml/ProductOperationtoolMapper.xml
new file mode 100644
index 00000000..6092f5f8
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/mapper/xml/ProductOperationtoolMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/service/IProductOperationtoolService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/service/IProductOperationtoolService.java
new file mode 100644
index 00000000..90316338
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/service/IProductOperationtoolService.java
@@ -0,0 +1,22 @@
+package org.jeecg.modules.product.pdoperationtool.service;
+
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.product.pdoperationtool.entity.ProductOperationtool;
+
+import java.util.List;
+
+/**
+ * @Description: 产品工具表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+public interface IProductOperationtoolService extends IService {
+
+ List findAll(String s);
+
+ void up(String id);
+
+ void down(String id);
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/service/impl/ProductOperationtoolServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/service/impl/ProductOperationtoolServiceImpl.java
new file mode 100644
index 00000000..64e20e52
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/service/impl/ProductOperationtoolServiceImpl.java
@@ -0,0 +1,37 @@
+package org.jeecg.modules.product.pdoperationtool.service.impl;
+
+
+import org.jeecg.modules.product.pdoperationtool.entity.ProductOperationtool;
+import org.jeecg.modules.product.pdoperationtool.mapper.ProductOperationtoolMapper;
+import org.jeecg.modules.product.pdoperationtool.service.IProductOperationtoolService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+import java.util.List;
+
+/**
+ * @Description: 产品工具表
+ * @Author: jeecg-boot
+ * @Date: 2022-12-20
+ * @Version: V1.0
+ */
+@Service
+public class ProductOperationtoolServiceImpl extends ServiceImpl implements IProductOperationtoolService {
+
+ @Autowired
+ ProductOperationtoolMapper productOperationtoolMapper;
+ @Override
+ public List findAll(String s) {
+ return productOperationtoolMapper.find(s);
+ }
+ @Override
+ public void up(String s) {
+ productOperationtoolMapper.up(s);
+ }
+ @Override
+ public void down(String s) {
+ productOperationtoolMapper.down(s);
+ }
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/controller/ZyProductProcessController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/controller/ZyProductProcessController.java
index ab701e08..0f8ef059 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/controller/ZyProductProcessController.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/controller/ZyProductProcessController.java
@@ -17,6 +17,14 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
+import org.jeecg.modules.product.pdaccessories.entity.ProductAccessories;
+import org.jeecg.modules.product.pdaccessories.service.IProductAccessoriesService;
+import org.jeecg.modules.product.pdfabric.entity.ProductFabric;
+import org.jeecg.modules.product.pdfabric.service.IProductFabricService;
+import org.jeecg.modules.product.pdmachine.entity.ProductMachine;
+import org.jeecg.modules.product.pdmachine.service.IProductMachineService;
+import org.jeecg.modules.product.pdoperationtool.entity.ProductOperationtool;
+import org.jeecg.modules.product.pdoperationtool.service.IProductOperationtoolService;
import org.jeecg.modules.product.zyproductprocess.entity.ZyProductProcess;
import org.jeecg.modules.product.zyproductprocess.service.IZyProductProcessService;
import org.jeecgframework.poi.excel.ExcelImportUtil;
@@ -48,8 +56,16 @@ import org.jeecg.common.aspect.annotation.AutoLog;
public class ZyProductProcessController extends JeecgController {
@Autowired
private IZyProductProcessService zyProductProcessService;
-
- /**
+ @Autowired
+ private IProductFabricService productFabricService;
+ @Autowired
+ private IProductAccessoriesService productAccessoriesService;
+ @Autowired
+ private IProductMachineService productMachineService;
+ @Autowired
+ private IProductOperationtoolService productOperationtoolService;
+
+ /**
* 分页列表查询
*
* @param zyProductProcess
@@ -97,8 +113,49 @@ public class ZyProductProcessController extends JeecgController listfabric =zyProductProcessService.findAllFabric(zyProductProcess.getProcessId());
+ if(listfabric!=null&&listfabric.size()>0)
+ for (String s1 : listfabric) {
+ ProductFabric productFabric=new ProductFabric();
+ productFabric.setFabricId(s1);
+ productFabric.setProductId(zyProductProcess.getProductId());
+ productFabric.setId(null);
+ productFabricService.save(productFabric);
+ }
+ //辅料
+ List listAccessories =zyProductProcessService.findAllAccessories(zyProductProcess.getProcessId());
+ if(listAccessories!=null&&listAccessories.size()>0)
+ for (String listAccessory : listAccessories) {
+ ProductAccessories productAccessories=new ProductAccessories();
+ productAccessories.setAccessoriesId(listAccessory);
+ productAccessories.setProductId(zyProductProcess.getProductId());
+ productAccessories.setId(null);
+ productAccessoriesService.save(productAccessories);
+ }
+ //工具
+ List listOperationtool =zyProductProcessService.findAllOperationtool(zyProductProcess.getProcessId());
+ if(listOperationtool!=null&&listOperationtool.size()>0)
+ for (String s1 : listOperationtool) {
+ ProductOperationtool productOperationtool=new ProductOperationtool();
+ productOperationtool.setOperationtoolId(s1);
+ productOperationtool.setProductId(zyProductProcess.getProductId());
+ productOperationtool.setId(null);
+ productOperationtoolService.save(productOperationtool);
+ }
+ //设备
+ List listMachine =zyProductProcessService.findAllMachine(zyProductProcess.getProcessId());
+ if(listMachine!=null&&listMachine.size()>0)
+ for (String s1 : listMachine) {
+ ProductMachine productMachine=new ProductMachine();
+ productMachine.setMachineId(s1);
+ productMachine.setProductId(zyProductProcess.getProductId());
+ productMachine.setId(null);
+ productMachineService.save(productMachine);
+ }
+ }
zyProductProcess.setId(null);
}
return Result.OK("添加成功!");
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/mapper/ZyProductProcessMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/mapper/ZyProductProcessMapper.java
index ff07e99e..9f38001c 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/mapper/ZyProductProcessMapper.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/mapper/ZyProductProcessMapper.java
@@ -27,4 +27,16 @@ public interface ZyProductProcessMapper extends BaseMapper {
@Select("select id from zy_product where product_code like #{s}")
List findProduct(String s);
+//面料
+ @Select("select fabric_id from zy_process_fabric where process_id =#{processId}")
+ List findAllFabric(String processId);
+ //辅料
+ @Select("select accessories_id from zy_process_accessories where process_id =#{processId}")
+ List findAllAccessories(String processId);
+ //工具
+ @Select("select toolid from zy_operationtool where operationid =#{processId}")
+ List findAllOperationtool(String processId);
+ //设备
+ @Select("select machine_id from zy_process_machine where process_id =#{processId}")
+ List findAllMachine(String processId);
}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/service/IZyProductProcessService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/service/IZyProductProcessService.java
index da88cbb4..fe538ad6 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/service/IZyProductProcessService.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/service/IZyProductProcessService.java
@@ -21,4 +21,12 @@ public interface IZyProductProcessService extends IService {
List find(String s);
List findProduct(String s);
+
+ List findAllFabric(String processId);
+
+ List findAllAccessories(String processId);
+
+ List findAllOperationtool(String processId);
+
+ List findAllMachine(String processId);
}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/service/impl/ZyProductProcessServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/service/impl/ZyProductProcessServiceImpl.java
index f7079f5e..4c0df1b4 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/service/impl/ZyProductProcessServiceImpl.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/service/impl/ZyProductProcessServiceImpl.java
@@ -41,4 +41,24 @@ public class ZyProductProcessServiceImpl extends ServiceImpl findProduct(String s) {
return zyProductProcessMapper.findProduct(s);
}
+
+ @Override
+ public List findAllFabric(String processId) {
+ return zyProductProcessMapper.findAllFabric(processId);
+ }
+
+ @Override
+ public List findAllAccessories(String processId) {
+ return zyProductProcessMapper.findAllAccessories(processId);
+ }
+
+ @Override
+ public List findAllOperationtool(String processId) {
+ return zyProductProcessMapper.findAllOperationtool(processId);
+ }
+
+ @Override
+ public List findAllMachine(String processId) {
+ return zyProductProcessMapper.findAllMachine(processId);
+ }
}