From 0ea0a7181d8024e6597d514049a74bcb70ce0192 Mon Sep 17 00:00:00 2001
From: mengjiao <3338049200@qq,com>
Date: Mon, 29 Jan 2024 14:22:45 +0800
Subject: [PATCH 1/6] =?UTF-8?q?wms=E5=87=BA=E5=BA=93=E8=BF=87=E8=B4=A6?=
=?UTF-8?q?=E4=BF=AE=E6=94=B924=E9=A1=B5=E9=9D=A2=E6=9F=A5=E8=AF=A2?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mapper/wms/OdsProcureOutOrderMapper.xml | 50 +++++++++++++++++--
1 file changed, 47 insertions(+), 3 deletions(-)
diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml
index 39c851edd..b14b8f023 100644
--- a/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml
+++ b/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml
@@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ods_procure_out_order
WHERE
Active = '1'
- and Produce_Code = #{produceCode}
+ and Produce_Code like concat('%', #{produceCode}, '%')
and User_Defined1 = #{userDefined1}
AND User_Defined3 !='x'
@@ -76,12 +76,56 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ods_procure_out_order
WHERE
Active = '1'
- and Produce_Code = #{produceCode}
+ and Produce_Code like concat('%', #{produceCode}, '%')
and User_Defined1 = #{userDefined1}
AND User_Defined3 ='x'
+
From 2931ab8646a7ac8c913259a84c0af064b109e2f9 Mon Sep 17 00:00:00 2001
From: mengjiao <3338049200@qq,com>
Date: Mon, 26 Feb 2024 10:12:59 +0800
Subject: [PATCH 3/6] =?UTF-8?q?wms=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E4=BF=AE=E6=94=B92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/resources/mapper/wms/OdsProcureOutOrderMapper.xml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml
index f87df4290..a3c495cb3 100644
--- a/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml
+++ b/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml
@@ -50,7 +50,8 @@
@@ -282,21 +285,32 @@
- select be.equipment_code,be.equipment_name,be.equipment_type_code,be.equipment_type_name,be.workshop_name
+ select be.equipment_code,be.equipment_name,be.equipment_type_code,be.equipment_type_name,be.workshop_name,be.equipment_category
from base_equipment be
- and equipment_code like concat('%',
- #{equipmentCode}, '%')
-
- and equipment_name like concat('%',
- #{equipmentName}, '%')
-
+ and equipment_code like concat('%',#{equipmentCode}, '%')
+ and equipment_name like concat('%',#{equipmentName}, '%')
+ and equipment_type_code = #{equipmentTypeCode}
and be.del_flag = '0'
- and be.equipment_code in (select bae.auxiliary_equipment_code
- from equ_bind_auxiliary_equipment bae
- where bae.equipment_code = #{groupLine}
+ and be.equipment_code in
+ (select bae.auxiliary_equipment_code
+ from equ_bind_auxiliary_equipment bae
+
+ and bae.equipment_code like concat('%',#{groupLine}, '%')
+
)
+
+ select be.equipment_code,be.equipment_name,be.equipment_type_code,be.equipment_type_name,be.workshop_name,be.equipment_category
+ from base_equipment be
+
+ and equipment_code like concat('%',#{equipmentCode}, '%')
+ and equipment_type_code = #{equipmentTypeCode}
+ and equipment_name like concat('%',#{equipmentName}, '%')
+ and be.del_flag = '0'
+
+
+
From 3f7ec60948158ece78d3ce8ed77d021250d3620b Mon Sep 17 00:00:00 2001
From: Yangwl <1726150332@qq.com>
Date: Tue, 27 Feb 2024 14:42:27 +0800
Subject: [PATCH 6/6] =?UTF-8?q?=E8=AE=A1=E4=BB=B6=E5=B7=A5=E8=B5=84?=
=?UTF-8?q?=E7=BB=9F=E8=AE=A1=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../MesUnitPriceReportController.java | 12 ++---
.../com/op/mes/domain/MesUnitpriceReport.java | 51 +++++++++++--------
.../mapper/mes/MesUnitpriceReportMapper.xml | 10 +++-
3 files changed, 45 insertions(+), 28 deletions(-)
diff --git a/op-modules/op-mes/src/main/java/com/op/mes/controller/MesUnitPriceReportController.java b/op-modules/op-mes/src/main/java/com/op/mes/controller/MesUnitPriceReportController.java
index aaf942d28..548bda2d9 100644
--- a/op-modules/op-mes/src/main/java/com/op/mes/controller/MesUnitPriceReportController.java
+++ b/op-modules/op-mes/src/main/java/com/op/mes/controller/MesUnitPriceReportController.java
@@ -38,7 +38,7 @@ public class MesUnitPriceReportController extends BaseController {
/**
* 查询计件工资统计列表
*/
- @RequiresPermissions("system:report:list")
+ @RequiresPermissions("unitPriceReport:report:list")
@GetMapping("/list")
public TableDataInfo list(MesUnitpriceReport mesUnitpriceReport) {
startPage();
@@ -49,7 +49,7 @@ public class MesUnitPriceReportController extends BaseController {
/**
* 导出计件工资统计列表
*/
- @RequiresPermissions("system:report:export")
+ @RequiresPermissions("unitPriceReport:report:export")
@Log(title = "计件工资统计", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MesUnitpriceReport mesUnitpriceReport) {
@@ -61,7 +61,7 @@ public class MesUnitPriceReportController extends BaseController {
/**
* 获取计件工资统计详细信息
*/
- @RequiresPermissions("system:report:query")
+ @RequiresPermissions("unitPriceReport:report:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id) {
return success(mesUnitpriceReportService.selectMesUnitpriceReportById(id));
@@ -70,7 +70,7 @@ public class MesUnitPriceReportController extends BaseController {
/**
* 新增计件工资统计
*/
- @RequiresPermissions("system:report:add")
+ @RequiresPermissions("unitPriceReport:report:add")
@Log(title = "计件工资统计", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MesUnitpriceReport mesUnitpriceReport) {
@@ -80,7 +80,7 @@ public class MesUnitPriceReportController extends BaseController {
/**
* 修改计件工资统计
*/
- @RequiresPermissions("system:report:edit")
+ @RequiresPermissions("unitPriceReport:report:edit")
@Log(title = "计件工资统计", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MesUnitpriceReport mesUnitpriceReport) {
@@ -90,7 +90,7 @@ public class MesUnitPriceReportController extends BaseController {
/**
* 删除计件工资统计
*/
- @RequiresPermissions("system:report:remove")
+ @RequiresPermissions("unitPriceReport:report:remove")
@Log(title = "计件工资统计", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids) {
diff --git a/op-modules/op-mes/src/main/java/com/op/mes/domain/MesUnitpriceReport.java b/op-modules/op-mes/src/main/java/com/op/mes/domain/MesUnitpriceReport.java
index a77d0560d..893eee6ec 100644
--- a/op-modules/op-mes/src/main/java/com/op/mes/domain/MesUnitpriceReport.java
+++ b/op-modules/op-mes/src/main/java/com/op/mes/domain/MesUnitpriceReport.java
@@ -32,63 +32,72 @@ public class MesUnitpriceReport extends BaseEntity {
*/
@Excel(name = "SAP订单编码")
private String workorderCodeSap;
-
+ /**
+ * 产品编号
+ */
+ @Excel(name = "产品编号")
+ private String productCode;
/**
* 产品名称
*/
@Excel(name = "产品名称")
private String productName;
- /**
- * 产品编号
- */
- @Excel(name = "产品编号")
- private String productCode;
+ @Excel(name = "产线编码")
private String lineCode;
+ @Excel(name = "产线名称")
private String equipmentName;
+ /**
+ * 用户昵称
+ */
+ @Excel(name = "操作者")
+ private String nickName;
+ /**
+ * 子工序名称
+ */
+ @Excel(name = "子工序名称")
+ private String childprocessName;
+ @Excel(name = "工序单价")
+ private String attr1;
+ @Excel(name = "件数")
private String totalQuantity;
+ @Excel(name = " 薪酬(元)")
private BigDecimal result;
+ @Excel(name = "人数")
private String headCount;
+ @Excel(name = "平均工资")
private String avgResult;
+ @Excel(name = "实际工资")
private String realWages;
/**
* 用户账号
*/
- @Excel(name = "用户账号")
+ // @Excel(name = "用户账号")
private String userName;
- /**
- * 用户昵称
- */
- @Excel(name = "用户昵称")
- private String nickName;
+
/**
* 子工序编码
*/
- @Excel(name = "子工序编码")
+ //@Excel(name = "子工序编码")
private String childprocessCode;
- /**
- * 子工序名称
- */
- @Excel(name = "子工序名称")
- private String childprocessName;
+
/**
* $column.columnComment
*/
- @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
- private String attr1;
+
/**
* $column.columnComment
*/
- @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+ // @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String attr2;
public String getRealWages() {
diff --git a/op-modules/op-mes/src/main/resources/mapper/mes/MesUnitpriceReportMapper.xml b/op-modules/op-mes/src/main/resources/mapper/mes/MesUnitpriceReportMapper.xml
index c0e2c26a7..fcbd41450 100644
--- a/op-modules/op-mes/src/main/resources/mapper/mes/MesUnitpriceReportMapper.xml
+++ b/op-modules/op-mes/src/main/resources/mapper/mes/MesUnitpriceReportMapper.xml
@@ -72,7 +72,9 @@
and mur.product_name like concat('%', #{productName},
'%')
- and mur.product_code = #{productCode}
+ and mur.product_code like concat('%', #{productCode},
+ '%')
+
and user_name like concat('%', #{userName}, '%')
and nick_name like concat('%', #{nickName}, '%')
and childprocess_code =
@@ -81,6 +83,12 @@
and childprocess_name like concat('%',
#{childprocessName}, '%')
+ and mur.line_code like concat('%',
+ #{lineCode}, '%')
+
+ and be.equipment_name like concat('%',
+ #{equipmentName}, '%')
+
and attr1 = #{attr1}
and attr2 = #{attr2}
and attr3 = #{attr3}