From d3f05a4b9cd1fb37de52be2ab60b8b1203b44b9e Mon Sep 17 00:00:00 2001
From: lenovo <123>
Date: Sun, 29 Jan 2023 17:03:25 +0800
Subject: [PATCH] =?UTF-8?q?2023-1-29=E4=BA=A7=E5=93=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pdaccessories/ProductAccessoriesList.vue | 20 ++++++++++-
.../product/pdfabric/ProductFabricList.vue | 21 ++++++++++-
.../productProcess/ZyProductProcessList.vue | 32 +++++++++++++----
.../src/views/zyWorkProduct/ZyProductList.vue | 36 +++++++++----------
.../ProductAccessoriesController.java | 16 ++++-----
.../entity/ProductAccessories.java | 4 ++-
.../mapper/ProductAccessoriesMapper.java | 4 +++
.../service/IProductAccessoriesService.java | 4 +++
.../impl/ProductAccessoriesServiceImpl.java | 15 ++++++++
.../controller/ProductFabricController.java | 16 ++++-----
.../pdfabric/entity/ProductFabric.java | 4 ++-
.../pdfabric/mapper/ProductFabricMapper.java | 5 +++
.../service/IProductFabricService.java | 4 +++
.../impl/ProductFabricServiceImpl.java | 15 ++++++++
.../ZyProductProcessController.java | 18 +++++-----
.../entity/ZyProductProcess.java | 5 ++-
.../mapper/ZyProductProcessMapper.java | 5 +++
.../service/IZyProductProcessService.java | 4 +++
.../impl/ZyProductProcessServiceImpl.java | 16 +++++++++
19 files changed, 189 insertions(+), 55 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/product/pdaccessories/ProductAccessoriesList.vue b/ant-design-vue-jeecg/src/views/product/pdaccessories/ProductAccessoriesList.vue
index 80d3b134..17a12e2c 100644
--- a/ant-design-vue-jeecg/src/views/product/pdaccessories/ProductAccessoriesList.vue
+++ b/ant-design-vue-jeecg/src/views/product/pdaccessories/ProductAccessoriesList.vue
@@ -5,6 +5,11 @@
+
+
+
+
+
@@ -120,6 +125,7 @@
return {
description: '产品辅料表管理页面',
accessoriesId:'',
+ nums:'',
biaoTi: '',
// 表头
columns: [
@@ -141,10 +147,20 @@
{
title:'产品编号',
align:"center",
+ dataIndex: 'productCode'
+ },
+ {
+ title:'产品名称',
+ align:"center",
dataIndex: 'productId_dictText'
},
{
- title:'辅料',
+ title:'辅料编号',
+ align:"center",
+ dataIndex: 'nums'
+ },
+ {
+ title:'辅料名称',
align:"center",
dataIndex: 'accessoriesId_dictText'
},
@@ -262,10 +278,12 @@
//param.id=this.id;
param.productId = this.$route.query.id;
param.accessoriesId=this.accessoriesId;
+ param.nums=this.nums;
return filterObj(param);
},
searchReset() {
this.accessoriesId = ''
+ this.nums = ''
this.loadData(1);
},
handleDetail(id){
diff --git a/ant-design-vue-jeecg/src/views/product/pdfabric/ProductFabricList.vue b/ant-design-vue-jeecg/src/views/product/pdfabric/ProductFabricList.vue
index a485c5fc..ca848817 100644
--- a/ant-design-vue-jeecg/src/views/product/pdfabric/ProductFabricList.vue
+++ b/ant-design-vue-jeecg/src/views/product/pdfabric/ProductFabricList.vue
@@ -5,11 +5,17 @@
+
+
+
+
+
+
查询
@@ -119,6 +125,7 @@
return {
description: '产品面料表管理页面',
fabricId:'',
+ fabricNumber:'',
biaoTi: '',
// 表头
columns: [
@@ -135,10 +142,20 @@
{
title:'产品编号',
align:"center",
+ dataIndex: 'productCode'
+ },
+ {
+ title:'产品名称',
+ align:"center",
dataIndex: 'productId_dictText'
},
{
- title:'面料',
+ title:'面料编号',
+ align:"center",
+ dataIndex: 'fabricNumber'
+ },
+ {
+ title:'面料名称',
align:"center",
dataIndex: 'fabricId_dictText'
},
@@ -256,10 +273,12 @@
//param.id=this.id;
param.productId = this.$route.query.id;
param.fabricId=this.fabricId;
+ param.fabricNumber=this.fabricNumber;
return filterObj(param);
},
searchReset() {
this.fabricId = ''
+ this.fabricNumber=''
this.loadData(1);
},
handleDetail(id,name){
diff --git a/ant-design-vue-jeecg/src/views/product/productProcess/ZyProductProcessList.vue b/ant-design-vue-jeecg/src/views/product/productProcess/ZyProductProcessList.vue
index 7fba391a..903dff23 100644
--- a/ant-design-vue-jeecg/src/views/product/productProcess/ZyProductProcessList.vue
+++ b/ant-design-vue-jeecg/src/views/product/productProcess/ZyProductProcessList.vue
@@ -5,6 +5,11 @@
+
+
+
+
+
@@ -30,13 +35,13 @@
-
-
-
- 删除
-
- 批量操作
-
+
+
+
+
+
+
+
@@ -120,6 +125,7 @@
return {
description: '产品工序管理页面',
processId:'',
+ processCode:'',
biaoTi:'',
// 表头
columns: [
@@ -136,8 +142,18 @@
{
title:'产品编号',
align:"center",
+ dataIndex: 'productCode'
+ },
+ {
+ title:'产品名称',
+ align:"center",
dataIndex: 'productId_dictText'
},
+ {
+ title:'工序编号',
+ align:"center",
+ dataIndex: 'processCode'
+ },
{
title:'工序名称',
align:"center",
@@ -265,10 +281,12 @@
//param.id=this.id;
param.productId = this.$route.query.id;
param.processId=this.processId;
+ param.processCode=this.processCode;
return filterObj(param);
},
searchReset() {
this.processId = ''
+ this.processCode = ''
this.loadData(1);
},
fanhui(){
diff --git a/ant-design-vue-jeecg/src/views/zyWorkProduct/ZyProductList.vue b/ant-design-vue-jeecg/src/views/zyWorkProduct/ZyProductList.vue
index 1c853513..8a3ad848 100644
--- a/ant-design-vue-jeecg/src/views/zyWorkProduct/ZyProductList.vue
+++ b/ant-design-vue-jeecg/src/views/zyWorkProduct/ZyProductList.vue
@@ -118,16 +118,16 @@
- 工序
+ 工序
模块
- 面料
+ 面料
- 辅料
+ 辅料
设备
@@ -358,11 +358,11 @@
jumpProcesses(record)
{
this.$router.push({
- path: '/src/views/product/productProcess/ZyProductProcessList',
- // query: { // 路由携带参数
- // 'pid': record.id,
- // 'tname': record.name,
- // }
+ path: '/product/productProcess/ZyProductProcessList',
+ query: { // 路由携带参数
+ 'productName': record.productName,
+ 'id': record.id,
+ }
});
},
//跳转-模块
@@ -380,22 +380,22 @@
jumpFabrics(record)
{
this.$router.push({
- path: '/src/views/product/pdfabric/ProductFabricList',
- // query: { // 路由携带参数
- // 'pid': record.id,
- // 'tname': record.name,
- // }
+ path: '/product/pdfabric/ProductFabricList',
+ query: { // 路由携带参数
+ 'productName': record.productName,
+ 'id': record.id,
+ }
});
},
//跳转-辅料
jumpAccessories(record)
{
this.$router.push({
- path: '/src/views/duct/pdaccessories/ProductAccessoriesList',
- // query: { // 路由携带参数
- // 'pid': record.id,
- // 'tname': record.name,
- // }
+ path: '/product/pdaccessories/ProductAccessoriesList',
+ query: { // 路由携带参数
+ 'productName': record.productName,
+ 'id': record.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
index 4904828b..a714aa3f 100644
--- 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
@@ -68,15 +68,15 @@ public class ProductAccessoriesController extends JeecgController 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);
- }
+// 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);
+ IPage pageList = productAccessoriesService.page1(page, productAccessories);
return Result.OK(pageList);
}
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
index 583ca4bc..0a8bfd61 100644
--- 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
@@ -48,7 +48,7 @@ public class ProductAccessories implements Serializable {
/**产品id*/
@Excel(name = "产品id", width = 15)
@ApiModelProperty(value = "产品id")
- @Dict(dictTable = "zy_product",dicText = "product_code",dicCode = "id")
+ @Dict(dictTable = "zy_product",dicText = "product_name",dicCode = "id")
private String productId;
/**辅料id*/
@Excel(name = "辅料id", width = 15)
@@ -68,4 +68,6 @@ public class ProductAccessories implements Serializable {
@Excel(name = "差额", width = 15)
@ApiModelProperty(value = "差额")
private Double difference;
+ private String nums;
+ private String productCode;
}
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
index fba9f874..2ac630bd 100644
--- 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
@@ -4,6 +4,8 @@ package org.jeecg.modules.product.pdaccessories.mapper;
import java.util.List;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
@@ -24,4 +26,6 @@ public interface ProductAccessoriesMapper extends BaseMapper
@Delete("delete from product_accessories where product_id=#{pd} and accessories_id=#{access}")
void deleteAccessories(@Param("pd") String productId, @Param("access") String listAccessory);
+ @Select("")
+ IPage page1(Page page, @Param("productId") String productId, @Param("id") String accessoriesId, @Param("number") String nums);
}
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
index 1d63d862..914750a5 100644
--- 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
@@ -1,6 +1,8 @@
package org.jeecg.modules.product.pdaccessories.service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.product.pdaccessories.entity.ProductAccessories;
@@ -17,4 +19,6 @@ public interface IProductAccessoriesService extends IService
List findAll(String s);
void deleteAccessories(String productId, String listAccessory);
+
+ IPage page1(Page page, ProductAccessories productAccessories);
}
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
index 0310a358..96c626e8 100644
--- 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
@@ -1,6 +1,8 @@
package org.jeecg.modules.product.pdaccessories.service.impl;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.product.pdaccessories.entity.ProductAccessories;
import org.jeecg.modules.product.pdaccessories.mapper.ProductAccessoriesMapper;
import org.jeecg.modules.product.pdaccessories.service.IProductAccessoriesService;
@@ -31,4 +33,17 @@ public class ProductAccessoriesServiceImpl extends ServiceImpl page1(Page page, ProductAccessories productAccessories) {
+ if(productAccessories.getNums()!=null){
+ String s="%"+productAccessories.getNums()+"%";
+ productAccessories.setNums(s);
+ }
+ if(productAccessories.getAccessoriesId()!=null){
+ String s="%"+productAccessories.getAccessoriesId()+"%";
+ productAccessories.setAccessoriesId(s);
+ }
+ return productAccessoriesMapper.page1(page,productAccessories.getProductId(),productAccessories.getAccessoriesId(),productAccessories.getNums());
+ }
}
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
index e1b164cf..c80964b6 100644
--- 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
@@ -70,15 +70,15 @@ public class ProductFabricController extends JeecgController 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);
- }
+// 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);
+ IPage pageList = productFabricService.page1(page, productFabric);
return Result.OK(pageList);
}
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
index b55eff14..1b432d9a 100644
--- 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
@@ -48,7 +48,7 @@ public class ProductFabric implements Serializable {
/**产品id*/
@Excel(name = "产品id", width = 15)
@ApiModelProperty(value = "产品id")
- @Dict(dictTable = "zy_product",dicText = "product_code",dicCode = "id")
+ @Dict(dictTable = "zy_product",dicText = "product_name",dicCode = "id")
private String productId;
/**面料id*/
@Excel(name = "面料id", width = 15)
@@ -68,4 +68,6 @@ public class ProductFabric implements Serializable {
@Excel(name = "差额", width = 15)
@ApiModelProperty(value = "差额")
private Double difference;
+ private String fabricNumber;
+ private String productCode;
}
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
index ac597696..b3945e26 100644
--- 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
@@ -4,6 +4,8 @@ package org.jeecg.modules.product.pdfabric.mapper;
import java.util.List;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
@@ -24,4 +26,7 @@ public interface ProductFabricMapper extends BaseMapper {
@Delete("delete from product_fabric where product_id=#{productId} and fabric_id=#{s1}")
void deleteFabric(@Param("productId") String productId, @Param("s1") String s1);
+
+ @Select("")
+ IPage page1(Page page,@Param("productId") String productId, @Param("id") String fabricId, @Param("number") String fabricNumber);
}
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
index e2db1039..3a957e09 100644
--- 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
@@ -1,5 +1,7 @@
package org.jeecg.modules.product.pdfabric.service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.product.pdfabric.entity.ProductFabric;
@@ -16,4 +18,6 @@ public interface IProductFabricService extends IService {
List findAll(String s);
void deleteFabric(String productId, String s1);
+
+ IPage page1(Page page, ProductFabric productFabric);
}
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
index 84a3ff88..73c46170 100644
--- 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
@@ -1,6 +1,8 @@
package org.jeecg.modules.product.pdfabric.service.impl;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.product.pdfabric.entity.ProductFabric;
import org.jeecg.modules.product.pdfabric.mapper.ProductFabricMapper;
import org.jeecg.modules.product.pdfabric.service.IProductFabricService;
@@ -31,4 +33,17 @@ public class ProductFabricServiceImpl extends ServiceImpl page1(Page page, ProductFabric productFabric) {
+ if(productFabric.getFabricId()!=null){
+ String s="%"+productFabric.getFabricId();
+ productFabric.setFabricId(s);
+ }
+ if(productFabric.getFabricNumber()!=null){
+ String s="%"+productFabric.getFabricNumber();
+ productFabric.setFabricNumber(s);
+ }
+ return productFabricMapper.page1(page,productFabric.getProductId(),productFabric.getFabricId(),productFabric.getFabricNumber());
+ }
}
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 8d0f1c31..01537584 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
@@ -82,17 +82,17 @@ public class ZyProductProcessController extends JeecgController queryWrapper = QueryGenerator.initQueryWrapper(zyProductProcess, req.getParameterMap());
- QueryWrapper queryWrapper=new QueryWrapper();
- queryWrapper.orderByDesc("number");
- queryWrapper.eq("product_id",zyProductProcess.getProductId());
- if(zyProductProcess.getProcessId()!=null&&!zyProductProcess.getProcessId().equals("")){
- String s="%"+zyProductProcess.getProcessId()+"%";
- List list=zyProductProcessService.find(s);
- queryWrapper.in("process_id",list);
- }
+// QueryWrapper queryWrapper=new QueryWrapper();
+// queryWrapper.orderByDesc("number");
+// queryWrapper.eq("product_id",zyProductProcess.getProductId());
+// if(zyProductProcess.getProcessId()!=null&&!zyProductProcess.getProcessId().equals("")){
+// String s="%"+zyProductProcess.getProcessId()+"%";
+// List list=zyProductProcessService.find(s);
+// queryWrapper.in("process_id",list);
+// }
Page page = new Page(pageNo, pageSize);
- IPage pageList = zyProductProcessService.page(page, queryWrapper);
+ IPage pageList = zyProductProcessService.page1(page,zyProductProcess);
return Result.OK(pageList);
}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/entity/ZyProductProcess.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/entity/ZyProductProcess.java
index 9a3c84a0..bef04f79 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/entity/ZyProductProcess.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/entity/ZyProductProcess.java
@@ -56,7 +56,7 @@ public class ZyProductProcess implements Serializable {
/**产品id*/
@Excel(name = "产品id", width = 15)
@ApiModelProperty(value = "产品id")
- @Dict(dictTable = "zy_product",dicText = "product_code",dicCode = "id")
+ @Dict(dictTable = "zy_product",dicText = "product_name",dicCode = "id")
private String productId;
/**工序id*/
@Excel(name = "工序id", width = 15)
@@ -68,4 +68,7 @@ public class ZyProductProcess implements Serializable {
@Excel(name = "序号", width = 15)
@ApiModelProperty(value = "序号")
private Integer number;
+
+ private String productCode;
+ private String processCode;
}
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 9f38001c..1deb9c49 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
@@ -2,6 +2,8 @@ package org.jeecg.modules.product.zyproductprocess.mapper;
import java.util.List;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@@ -39,4 +41,7 @@ public interface ZyProductProcessMapper extends BaseMapper {
//设备
@Select("select machine_id from zy_process_machine where process_id =#{processId}")
List findAllMachine(String processId);
+ //按照number降序排列,通过产品id筛选,然后通过processId和processCode筛选
+ @Select("")
+ IPage page1(Page page, @Param("productId") String productId, @Param("process") String processId, @Param("code") String processCode);
}
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 fe538ad6..42de9f93 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
@@ -1,6 +1,8 @@
package org.jeecg.modules.product.zyproductprocess.service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.product.zyproductprocess.entity.ZyProductProcess;
@@ -29,4 +31,6 @@ public interface IZyProductProcessService extends IService {
List findAllOperationtool(String processId);
List findAllMachine(String processId);
+
+ IPage page1(Page page, ZyProductProcess zyProductProcess);
}
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 4c0df1b4..e2044d35 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
@@ -1,6 +1,8 @@
package org.jeecg.modules.product.zyproductprocess.service.impl;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.product.zyproductprocess.entity.ZyProductProcess;
import org.jeecg.modules.product.zyproductprocess.mapper.ZyProductProcessMapper;
import org.jeecg.modules.product.zyproductprocess.service.IZyProductProcessService;
@@ -61,4 +63,18 @@ public class ZyProductProcessServiceImpl extends ServiceImpl findAllMachine(String processId) {
return zyProductProcessMapper.findAllMachine(processId);
}
+
+ @Override
+ public IPage page1(Page page, ZyProductProcess zyProductProcess) {
+
+ if(zyProductProcess.getProcessId()!=null){
+ String s="%"+zyProductProcess.getProcessId()+"%";
+ zyProductProcess.setProcessId(s);
+ }
+ if(zyProductProcess.getProcessCode()!=null){
+ String s="%"+zyProductProcess.getProcessCode()+"%";
+ zyProductProcess.setProcessCode(s);
+ } System.err.println(zyProductProcess);
+ return zyProductProcessMapper.page1(page,zyProductProcess.getProductId(),zyProductProcess.getProcessId(),zyProductProcess.getProcessCode());
+ }
}