From a1caec6ae31fe58841eeb16a3a536c746191efee Mon Sep 17 00:00:00 2001
From: mengjiao <3338049200@qq,com>
Date: Mon, 30 Dec 2024 20:41:18 +0800
Subject: [PATCH 1/4] =?UTF-8?q?wms=E7=99=BD=E8=83=9A=E5=8E=9F=E6=9D=90?=
=?UTF-8?q?=E6=96=99=E5=BA=93=E5=AD=98=E6=9F=A5=E8=AF=A2=EF=BC=8C=E5=A6=82?=
=?UTF-8?q?=E6=9E=9Camount=5Freal=E4=B8=BAnull=E5=B0=B1=E6=9F=A5=E8=AF=A2?=
=?UTF-8?q?=E4=B8=BA0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mapper/wms/BpRawMaterialInMapper.xml | 34 +++++++++++++++----
1 file changed, 27 insertions(+), 7 deletions(-)
diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/BpRawMaterialInMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/BpRawMaterialInMapper.xml
index c13df621e..41a0e2c1a 100644
--- a/op-modules/op-wms/src/main/resources/mapper/wms/BpRawMaterialInMapper.xml
+++ b/op-modules/op-wms/src/main/resources/mapper/wms/BpRawMaterialInMapper.xml
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
+
@@ -27,12 +27,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- select id, factory_code, wa_code, wl_code, material_code, material_name, unit, supply_name, amnount_plan, amount_real, user_defined1, user_defined2, user_defined3, user_defined4, user_defined5, create_by, gmt_create, modified_by, gmt_modified from bp_raw_material_in
+ SELECT
+ id,
+ factory_code,
+ wa_code,
+ wl_code,
+ material_code,
+ material_name,
+ unit,
+ supply_name,
+ amnount_plan,
+ COALESCE(amount_real, 0) AS amount_real, -- 使用COALESCE函数处理NULL值
+ user_defined1,
+ user_defined2,
+ user_defined3,
+ user_defined4,
+ user_defined5,
+ create_by,
+ gmt_create,
+ modified_by,
+ gmt_modified
+ FROM
+ bp_raw_material_in
-
-
+
\ No newline at end of file
+
From 8e093d7a3059224a9656313e9fc1c83a00fdd88d Mon Sep 17 00:00:00 2001
From: mengjiao <3338049200@qq,com>
Date: Mon, 6 Jan 2025 17:01:06 +0800
Subject: [PATCH 2/4] =?UTF-8?q?wms=E6=89=8B=E6=8C=81=E6=89=B9=E6=9D=A1?=
=?UTF-8?q?=E4=BB=B6=E7=AD=9B=E9=80=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../op/wms/controller/WmsToWCSmissionController.java | 11 ++++++++++-
.../java/com/op/wms/domain/WmsProductPutTrayCode.java | 10 ++++++++++
.../wms/service/impl/OdsProcureOrderServiceImpl.java | 7 ++++++-
.../op/wms/service/impl/WmsProductPutServiceImpl.java | 3 ++-
.../resources/mapper/wms/WmsFpStorageNewsSnMapper.xml | 4 +++-
5 files changed, 31 insertions(+), 4 deletions(-)
diff --git a/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java b/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java
index 1b088f0fd..fe7b24c87 100644
--- a/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java
+++ b/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java
@@ -498,7 +498,16 @@ public class WmsToWCSmissionController {
*/
@PostMapping("/ScanCodeWholePallet")
public AjaxResult ScanCodeWholePallet(@RequestBody WmsProductPutTrayCode wmsProductPutTrayCode) {
- return AjaxResult.success(wmsProductPutService.ScanCodeWholePallet(wmsProductPutTrayCode));
+ List wmsFpStorageNewsSns= wmsProductPutService.ScanCodeWholePallet(wmsProductPutTrayCode);
+ if (wmsFpStorageNewsSns!=null&&wmsFpStorageNewsSns.size()>0){
+ WmsFpStorageNewsSn wmsFpStorageNewsSn1= wmsFpStorageNewsSns.get(0);
+ if( wmsFpStorageNewsSn1.getBatchNumber().contains(wmsProductPutTrayCode.getBatchNumber())){
+ return AjaxResult.success(wmsFpStorageNewsSns);
+ }else {
+ return AjaxResult.error("请查看批次是否与订单相同");
+ }
+ }
+ return AjaxResult.success(wmsFpStorageNewsSns);
}
/**
* 成品销售出库----单箱扫码
diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/WmsProductPutTrayCode.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/WmsProductPutTrayCode.java
index 9f4dc49ea..c18b2f70e 100644
--- a/op-modules/op-wms/src/main/java/com/op/wms/domain/WmsProductPutTrayCode.java
+++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/WmsProductPutTrayCode.java
@@ -31,6 +31,16 @@ public class WmsProductPutTrayCode extends BaseEntity {
*/
@Excel(name = "箱码")
private String barcode;
+ @Excel(name = "批次号")
+ private String batchNumber;
+
+ public String getBatchNumber() {
+ return batchNumber;
+ }
+
+ public void setBatchNumber(String batchNumber) {
+ this.batchNumber = batchNumber;
+ }
/**
* 库位
diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java
index 6993b06e6..e53a28163 100644
--- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java
+++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java
@@ -2102,7 +2102,8 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
return result;
}
- public void OutboundPostingzcSAPGY(List orderList) {
+ public String OutboundPostingzcSAPGY(List orderList) {
+ String TEM="操作成功";
//先根据出库单获取
// * 退料的移动类型为 262
// * 领料的移动类型为 261-- and wms_ods_procure_out_order.Order_Status='3'
@@ -2183,6 +2184,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
order.setUserDefined10("3");//失败
odsProcureOutOrderMapper.updateWMSOdsProcureOutOrderByids(order, orderList2);
}
+ TEM=msg;
}
if (sapMaterialPostingFCList.size() > 0) {
//反冲过账
@@ -2218,11 +2220,14 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
}
}
} else {//
+
order.setUserDefined9("");
order.setUserDefined10("3");//失败
odsProcureOutOrderMapper.updateWMSOdsProcureOutOrderByids(order, orderList2FC);
}
+ TEM=msg;
}
+ return TEM;
}
diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java
index baafad3c6..146b19e35 100644
--- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java
+++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java
@@ -913,7 +913,8 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService {
WmsFpStorageNewsSn wmsFpStorageNewsSn=new WmsFpStorageNewsSn();
wmsFpStorageNewsSn.setSn(wmsProductPutTrayCode.getSn());
wmsFpStorageNewsSn.setActiveFlag("1");
- List wmsFpStorageNewsSns= wmsFpStorageNewsSnMapper.selectWmsFpStorageNewsSnSTList(wmsFpStorageNewsSn);
+ List wmsFpStorageNewsSns = wmsFpStorageNewsSnMapper.selectWmsFpStorageNewsSnSTList(wmsFpStorageNewsSn);
+
return wmsFpStorageNewsSns;
}
diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/WmsFpStorageNewsSnMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/WmsFpStorageNewsSnMapper.xml
index d11b4c92c..b72a035f2 100644
--- a/op-modules/op-wms/src/main/resources/mapper/wms/WmsFpStorageNewsSnMapper.xml
+++ b/op-modules/op-wms/src/main/resources/mapper/wms/WmsFpStorageNewsSnMapper.xml
@@ -531,6 +531,7 @@
sap_factory_code
FROM
wms_fp_storage_news_sn
+
and wh_code = #{whCode}
and wa_code = #{waCode}
@@ -544,7 +545,8 @@
and sn = #{sn}
and bar_code = #{barCode}
and amount = #{amount}
- and batch_number = #{batchNumber}
+ and batch_number like concat('%',#{batchNumber} ,
+ '%')
and user_defined2 = #{userDefined2}
and user_defined3 = #{userDefined3}
and user_defined4 = #{userDefined4}
From a2ff4b3ecddf72eb6fa9b5a20c34f33a7f6c6361 Mon Sep 17 00:00:00 2001
From: mengjiao <3338049200@qq,com>
Date: Tue, 7 Jan 2025 10:24:57 +0800
Subject: [PATCH 3/4] =?UTF-8?q?wms=E6=89=8B=E6=8C=81=E6=89=B9=E6=9D=A1?=
=?UTF-8?q?=E4=BB=B6=E7=AD=9B=E9=80=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../com/op/wms/controller/WmsToWCSmissionController.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java b/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java
index fe7b24c87..db7e7ed42 100644
--- a/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java
+++ b/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java
@@ -502,12 +502,12 @@ public class WmsToWCSmissionController {
if (wmsFpStorageNewsSns!=null&&wmsFpStorageNewsSns.size()>0){
WmsFpStorageNewsSn wmsFpStorageNewsSn1= wmsFpStorageNewsSns.get(0);
if( wmsFpStorageNewsSn1.getBatchNumber().contains(wmsProductPutTrayCode.getBatchNumber())){
- return AjaxResult.success(wmsFpStorageNewsSns);
+ return AjaxResult.success("扫描成功",wmsFpStorageNewsSns);
}else {
- return AjaxResult.error("请查看批次是否与订单相同");
+ return AjaxResult.success("请查看批次是否与订单相同");
}
}
- return AjaxResult.success(wmsFpStorageNewsSns);
+ return AjaxResult.success("扫描成功",wmsFpStorageNewsSns);
}
/**
* 成品销售出库----单箱扫码
From 2cdae7a0fa2e9d0e6b6a91ed4eadc48f81b66805 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=85=83=E6=B0=94=E6=BB=A1=E6=BB=A1=28jgy=29?=
Date: Tue, 7 Jan 2025 15:17:26 +0800
Subject: [PATCH 4/4] =?UTF-8?q?2025-1-7=20MES-=E4=BA=A7=E5=93=81=E9=A6=96?=
=?UTF-8?q?=E6=A3=80=E8=AE=B0=E5=BD=95=E8=A1=A8=E3=80=81=E8=87=AA=E6=A3=80?=
=?UTF-8?q?=E4=BA=92=E6=A3=80=E8=AE=B0=E5=BD=95=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../MesInspectionReportController.java | 25 ++
.../op/mes/domain/MesInspectionReport.java | 130 +++++++++-
.../mes/mapper/MesInspectionReportMapper.java | 18 +-
.../service/IMesInspectionReportService.java | 8 +
.../impl/MesInspectionReportServiceImpl.java | 226 ++++++++++++++----
.../mapper/mes/MesInspectionReportMapper.xml | 153 ++++++++----
6 files changed, 461 insertions(+), 99 deletions(-)
diff --git a/op-modules/op-mes/src/main/java/com/op/mes/controller/MesInspectionReportController.java b/op-modules/op-mes/src/main/java/com/op/mes/controller/MesInspectionReportController.java
index b7078cb72..9907e72cd 100644
--- a/op-modules/op-mes/src/main/java/com/op/mes/controller/MesInspectionReportController.java
+++ b/op-modules/op-mes/src/main/java/com/op/mes/controller/MesInspectionReportController.java
@@ -1,7 +1,12 @@
package com.op.mes.controller;
import com.op.common.core.web.controller.BaseController;
+import com.op.common.core.web.domain.AjaxResult;
+import com.op.common.log.annotation.Log;
+import com.op.common.log.enums.BusinessType;
+import com.op.common.security.annotation.RequiresPermissions;
import com.op.mes.domain.MesInspectionReport;
+import com.op.mes.domain.ProOrderWorkorder;
import com.op.mes.service.IMesInspectionReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -27,6 +32,12 @@ public class MesInspectionReportController extends BaseController {
return iMesInspectionReportService.selfMutualInspectionData(mesInspectionReport);
}
+ //修改表头表位内容
+ @PutMapping("/updateTable")
+ public AjaxResult updateTable(@RequestBody MesInspectionReport mesInspectionReport) {
+ return iMesInspectionReportService.updateTable(mesInspectionReport);
+ }
+
//查询产线
@GetMapping("/getLineCodeList")
public List getLineCodeList() {
@@ -34,6 +45,20 @@ public class MesInspectionReportController extends BaseController {
return list;
}
+ //查询产品列表
+ @GetMapping("/getProductList")
+ public List getProductList(MesInspectionReport mesInspectionReport) {
+ List list = iMesInspectionReportService.getProductList(mesInspectionReport);
+ return list;
+ }
+
+ //通过查询工单列表查询日期码
+ @GetMapping("/getWorkList")
+ public List getWorkList(MesInspectionReport mesInspectionReport) {
+ List list = iMesInspectionReportService.getWorkList(mesInspectionReport);
+ return list;
+ }
+
//首检记录 左侧报表 主体 查询
@GetMapping("/listFirstInspectionLeft")
public List firstInspectionLeftList(MesInspectionReport mesInspectionReport) {
diff --git a/op-modules/op-mes/src/main/java/com/op/mes/domain/MesInspectionReport.java b/op-modules/op-mes/src/main/java/com/op/mes/domain/MesInspectionReport.java
index 2cc552980..5dcccac9a 100644
--- a/op-modules/op-mes/src/main/java/com/op/mes/domain/MesInspectionReport.java
+++ b/op-modules/op-mes/src/main/java/com/op/mes/domain/MesInspectionReport.java
@@ -3,6 +3,11 @@ package com.op.mes.domain;
import com.op.common.core.annotation.Excel;
import com.op.common.core.web.domain.BaseEntity;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.LinkedHashMap;
+import java.util.List;
+
//MES自检互检
public class MesInspectionReport extends BaseEntity {
private static final long serialVersionUID = 1L;
@@ -45,7 +50,7 @@ public class MesInspectionReport extends BaseEntity {
private String productDate;
@Excel(name = "检查日期")
- private String checkDate;
+ private Date checkDate;
@Excel(name = "产品编码")
private String productCode;
@@ -67,6 +72,8 @@ public class MesInspectionReport extends BaseEntity {
//项目名
private String projectName;
+ //项目名
+ private String projectCode;
//线体名
private String lineName;
@@ -78,12 +85,6 @@ public class MesInspectionReport extends BaseEntity {
//班组
private String team;
- //动态增加字段
-// private Map dynamicTime;
-//
-// public void setDynamicTime(String dynamicTimeName, String value) { dynamicTime.put(dynamicTimeName,value); }
-// public String getDynamicTime(String dynamicTimeName) { return dynamicTime.get(dynamicTimeName); }
-
public void setId(String id) { this.id = id; }
public String getId() { return id; }
@@ -121,8 +122,8 @@ public class MesInspectionReport extends BaseEntity {
public void setProductDate(String productDate) { this.productDate = productDate; }
public String getProductDate() { return productDate; }
- public void setCheckDate(String checkDate) { this.checkDate = checkDate; }
- public String getCheckDate() { return checkDate; }
+ public void setCheckDate(Date checkDate) { this.checkDate = checkDate; }
+ public Date getCheckDate() { return checkDate; }
public void setProductCode(String productCode) { this.productCode = productCode; }
public String getProductCode() { return productCode; }
@@ -145,6 +146,9 @@ public class MesInspectionReport extends BaseEntity {
public void setProjectName(String projectName) { this.projectName = projectName; }
public String getProjectName() { return projectName; }
+ public void setProjectCode(String projectCode) { this.projectCode = projectCode; }
+ public String getProjectCode() { return projectCode; }
+
public void setOpenLine(String openLine) { this.openLine = openLine; }
public String getOpenLine() { return openLine; }
@@ -156,4 +160,112 @@ public class MesInspectionReport extends BaseEntity {
public void setLineName(String lineName) { this.lineName = lineName; }
public String getLineName() { return lineName; }
+
+ private Integer row;//行
+ private Integer col;//列
+ private String type;//项目名、日期、对错号码
+ private String data;
+ private Date time;
+
+ // row的set和get方法
+ public void setRow(Integer row) {
+ this.row = row;
+ }
+
+ public Integer getRow() {
+ return row;
+ }
+
+ // col的set和get方法
+ public void setCol(Integer col) {
+ this.col = col;
+ }
+
+ public Integer getCol() {
+ return col;
+ }
+
+ // type的set和get方法
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ // data的set和get方法
+ public void setData(String data) {
+ this.data = data;
+ }
+
+ public String getData() {
+ return data;
+ }
+
+ // time的set和get方法
+ public void setTime(Date time) {
+ this.time = time;
+ }
+
+ public Date getTime() {
+ return time;
+ }
+
+ //产线列表
+ public List productList;
+ //日期码列表
+ public List dateCodeList;
+
+ // productList的get方法
+ public List getProductList() {
+ return productList;
+ }
+
+ // productList的set方法
+ public void setProductList(List productList) {
+ this.productList = productList;
+ }
+
+ // dateCodeList的get方法
+ public List getDateCodeList() {
+ return dateCodeList;
+ }
+
+ // dateCodeList的set方法
+ public void setDateCodeList(List dateCodeList) {
+ this.dateCodeList = dateCodeList;
+ }
+
+ private String workorderId;//工单号
+ // get方法,用于获取工单号的值
+ public String getWorkorderId() {
+ return workorderId;
+ }
+
+ // set方法,用于设置工单号的值
+ public void setWorkorderId(String workorderId) {
+ this.workorderId = workorderId;
+ }
+
+ private ArrayList>> tableData;
+
+ public ArrayList>> getTableData() {
+ return tableData;
+ }
+
+ public void setTableData(ArrayList>> tableData) {
+ this.tableData = tableData;
+ }
+
+ private String factoryCode;
+
+ // row的set和get方法
+ public void setFactoryCode(String factoryCode) {
+ this.factoryCode = factoryCode;
+ }
+
+ public String getFactoryCode() {
+ return factoryCode;
+ }
}
diff --git a/op-modules/op-mes/src/main/java/com/op/mes/mapper/MesInspectionReportMapper.java b/op-modules/op-mes/src/main/java/com/op/mes/mapper/MesInspectionReportMapper.java
index c2cb67c85..3d50bd83c 100644
--- a/op-modules/op-mes/src/main/java/com/op/mes/mapper/MesInspectionReportMapper.java
+++ b/op-modules/op-mes/src/main/java/com/op/mes/mapper/MesInspectionReportMapper.java
@@ -1,13 +1,15 @@
package com.op.mes.mapper;
import com.op.mes.domain.MesInspectionReport;
+import com.op.mes.domain.ProOrderWorkorder;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface MesInspectionReportMapper {
List selectSelfMutualInspectionList(MesInspectionReport mesInspectionReport);//查询自检互检列表
- List selectProjectName(String param);//自检互检左侧项目
- List selectTimeArray(MesInspectionReport mesInspectionReport);//查询所有时间
+ List selectProjectName(String param);//自检互检左侧项目
+ List selectTimeArray(MesInspectionReport mesInspectionReport);//查询所有时间
MesInspectionReport selectSelfMutualInspectionData(MesInspectionReport mesInspectionReport);
List getLineCodeList();
@@ -15,4 +17,16 @@ public interface MesInspectionReportMapper {
List selectTeamArray(MesInspectionReport mesInspectionReport);//班组
List selectCheckBoxList(MesInspectionReport mesInspectionReport);
+ List getProductList(MesInspectionReport mesInspectionReport);//查询产品列表
+ List getDataCodeList(MesInspectionReport data);
+
+ void updateHeaderFooter(MesInspectionReport mesInspectionReport);
+
+ void updateTableBody(MesInspectionReport mesInspectionReport);
+
+ void updateBatch(@Param("list")List updateList);
+
+ void addBatch(@Param("list")List updateList);
+
+ List getWorkList(MesInspectionReport mesInspectionReport);
}
diff --git a/op-modules/op-mes/src/main/java/com/op/mes/service/IMesInspectionReportService.java b/op-modules/op-mes/src/main/java/com/op/mes/service/IMesInspectionReportService.java
index 0f2942181..7f055178b 100644
--- a/op-modules/op-mes/src/main/java/com/op/mes/service/IMesInspectionReportService.java
+++ b/op-modules/op-mes/src/main/java/com/op/mes/service/IMesInspectionReportService.java
@@ -1,6 +1,8 @@
package com.op.mes.service;
+import com.op.common.core.web.domain.AjaxResult;
import com.op.mes.domain.MesInspectionReport;
+import com.op.mes.domain.ProOrderWorkorder;
import java.util.List;
@@ -18,4 +20,10 @@ public interface IMesInspectionReportService {
List selectPointInspectionList(MesInspectionReport mesInspectionReport);//产品转换/完产清线点检表
List selectCheckBoxList(MesInspectionReport mesInspectionReport);//点检上方备选框
+
+ List getProductList(MesInspectionReport mesInspectionReport);//查询产线
+
+ AjaxResult updateTable(MesInspectionReport mesInspectionReport);//修改表头 表尾部 表主体
+
+ List getWorkList(MesInspectionReport mesInspectionReport);
}
diff --git a/op-modules/op-mes/src/main/java/com/op/mes/service/impl/MesInspectionReportServiceImpl.java b/op-modules/op-mes/src/main/java/com/op/mes/service/impl/MesInspectionReportServiceImpl.java
index e72c0ee92..be04086a9 100644
--- a/op-modules/op-mes/src/main/java/com/op/mes/service/impl/MesInspectionReportServiceImpl.java
+++ b/op-modules/op-mes/src/main/java/com/op/mes/service/impl/MesInspectionReportServiceImpl.java
@@ -3,8 +3,13 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.parser.Feature;
import com.baomidou.dynamic.datasource.annotation.DS;
+import com.op.common.core.context.SecurityContextHolder;
+import com.op.common.core.utils.DateUtils;
import com.op.common.core.utils.StringUtils;
+import com.op.common.core.utils.uuid.IdUtils;
+import com.op.common.core.web.domain.AjaxResult;
import com.op.mes.domain.MesInspectionReport;
+import com.op.mes.domain.ProOrderWorkorder;
import com.op.mes.mapper.MesInspectionReportMapper;
import com.op.mes.service.IMesInspectionReportService;
import org.slf4j.Logger;
@@ -26,35 +31,82 @@ public class MesInspectionReportServiceImpl implements IMesInspectionReportServi
@Override
@DS("#header.poolName")
public List selectSelfMutualInspectionList(MesInspectionReport mesInspectionReport) {
- mesInspectionReport.setReportName("ConversionReport");
+ //mesInspectionReport.setReportName("ConversionReport");
List list = mesInspectionReportMapper.selectSelfMutualInspectionList(mesInspectionReport);
//1.查询左侧边 列 存入
- String param = "self_mutual_inspection";
- List projectNames = mesInspectionReportMapper.selectProjectName(param);
- List timeArray = mesInspectionReportMapper.selectTimeArray(mesInspectionReport);
+ String param = "";
+ if(mesInspectionReport.getReportName().equals("ConversionReport")){
+ param = "self_mutual_inspection";
+ }else if(mesInspectionReport.getReportName().equals("ConversionReportLeft")){
+ param = "first_inspection_left";
+ }
+
+ MesInspectionReport buildDTO = new MesInspectionReport();
+ buildDTO.setCheckTimeS("");
+ buildDTO.setCheckTimeE("");
+
+ List projectNames = mesInspectionReportMapper.selectProjectName(param);
+ List timeArray = mesInspectionReportMapper.selectTimeArray(mesInspectionReport);
List