From cda170c249a49ebf9c1547f6290bb4f9e2499165 Mon Sep 17 00:00:00 2001 From: wangh <123456> Date: Wed, 13 Dec 2023 09:40:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20-=20=E8=B4=A8=E6=A3=80?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/controller/PdaApiController.java | 12 ++-- .../aucma/api/domain/dto/CheckInfoDto.java | 63 ++++++++++--------- .../resources/mapper/PdaBindingMapper.xml | 3 +- .../domain/ReportQualityInspection.java | 19 ++++++ .../report/ReportQualityInspectionMapper.xml | 7 +++ 5 files changed, 68 insertions(+), 36 deletions(-) diff --git a/aucma-api/src/main/java/com/aucma/api/controller/PdaApiController.java b/aucma-api/src/main/java/com/aucma/api/controller/PdaApiController.java index 221f300..7fef004 100644 --- a/aucma-api/src/main/java/com/aucma/api/controller/PdaApiController.java +++ b/aucma-api/src/main/java/com/aucma/api/controller/PdaApiController.java @@ -84,14 +84,18 @@ public class PdaApiController { for (int i = 0; i < size; i++) { ReportQualityInspection inspection = new ReportQualityInspection(); inspection.setBarCode(checkInfo.getCode()); -// inspection.setMaterialName(boxName); - inspection.setTreatmentMeasure(checkInfo.getMeasure()); - inspection.setProcessResult(checkInfo.getMeasureName()); - + inspection.setMaterialName(checkInfo.getName()); + String measure = checkInfo.getMeasure(); + inspection.setTreatmentMeasure(measure); + if (measure.equals("3")){ inspection.setIsFlag(1L);} + //检测人 inspection.setInspectorCode(checkInfo.getUserName()); inspection.setInspectorTime(new Date()); + inspection.setStationCode(checkInfo.getStationCode()); assert list != null; if (!list.isEmpty()) { + CheckInfoDto.DefectBeen defectBeen = list.get(i); + inspection.setSubmitQualtyId(defectBeen.getObjId()); inspection.setTestItemCode(list.get(i).getStationCode()); inspection.setQualityDefectCode(list.get(i).getQualityDefectCode()); inspection.setQualityDefectName(list.get(i).getQualityDefectName()); diff --git a/aucma-api/src/main/java/com/aucma/api/domain/dto/CheckInfoDto.java b/aucma-api/src/main/java/com/aucma/api/domain/dto/CheckInfoDto.java index 037f77d..a5f0fdf 100644 --- a/aucma-api/src/main/java/com/aucma/api/domain/dto/CheckInfoDto.java +++ b/aucma-api/src/main/java/com/aucma/api/domain/dto/CheckInfoDto.java @@ -8,28 +8,18 @@ import java.util.List; */ public class CheckInfoDto { private String code;//产品条码 - + private String name;//产品型号 + private String measure;//处置措施 3=放行,1=返修 private List list;//缺陷列表 - private String measure;//处理措施TREATMENT_MEASURE - private String measureName;//处理措施TREATMENT_MEASURE - private String offline; - private String processCode; + private String stationCode; private String userName; - public String getProcessCode() { - return processCode; - } - - public void setProcessCode(String processCode) { - this.processCode = processCode; - } - - public String getUserName() { - return userName; + public String getMeasure() { + return measure; } - public void setUserName(String userName) { - this.userName = userName; + public void setMeasure(String measure) { + this.measure = measure; } public String getCode() { @@ -40,12 +30,12 @@ public class CheckInfoDto { this.code = code; } - public String getMeasureName() { - return measureName; + public String getName() { + return name; } - public void setMeasureName(String measureName) { - this.measureName = measureName; + public void setName(String name) { + this.name = name; } public List getList() { @@ -56,32 +46,43 @@ public class CheckInfoDto { this.list = list; } - public String getMeasure() { - return measure; + public String getStationCode() { + return stationCode; } - public void setMeasure(String measure) { - this.measure = measure; + public void setStationCode(String stationCode) { + this.stationCode = stationCode; } - public String getOffline() { - return offline; + public String getUserName() { + return userName; } - public void setOffline(String offline) { - this.offline = offline; + public void setUserName(String userName) { + this.userName = userName; } - public static class DefectBeen { + private int objId; private String qualityDefectCode; private String qualityDefectName; - private String stationCode; public DefectBeen() { } + public int getObjId() { + return objId; + } + + public void setObjId(int objId) { + this.objId = objId; + } + + public void setStationCode(String stationCode) { + this.stationCode = stationCode; + } + public String getQualityDefectCode() { return qualityDefectCode; } diff --git a/aucma-api/src/main/resources/mapper/PdaBindingMapper.xml b/aucma-api/src/main/resources/mapper/PdaBindingMapper.xml index 1e1b7c8..8cec07e 100644 --- a/aucma-api/src/main/resources/mapper/PdaBindingMapper.xml +++ b/aucma-api/src/main/resources/mapper/PdaBindingMapper.xml @@ -51,11 +51,12 @@ \ No newline at end of file diff --git a/aucma-report/src/main/java/com/aucma/report/domain/ReportQualityInspection.java b/aucma-report/src/main/java/com/aucma/report/domain/ReportQualityInspection.java index ffb8f15..cf0a2db 100644 --- a/aucma-report/src/main/java/com/aucma/report/domain/ReportQualityInspection.java +++ b/aucma-report/src/main/java/com/aucma/report/domain/ReportQualityInspection.java @@ -119,6 +119,9 @@ public class ReportQualityInspection extends BaseEntity { */ @Excel(name = "更新人") private String updatedBy; + //新增字段 + private String stationCode; + private int submitQualtyId; /** * 更新时间 @@ -139,6 +142,14 @@ public class ReportQualityInspection extends BaseEntity { this.barCode = barCode; } + public int getSubmitQualtyId() { + return submitQualtyId; + } + + public void setSubmitQualtyId(int submitQualtyId) { + this.submitQualtyId = submitQualtyId; + } + public String getBarCode() { return barCode; } @@ -147,6 +158,14 @@ public class ReportQualityInspection extends BaseEntity { this.materialName = materialName; } + public String getStationCode() { + return stationCode; + } + + public void setStationCode(String stationCode) { + this.stationCode = stationCode; + } + public String getMaterialName() { return materialName; } diff --git a/aucma-report/src/main/resources/mapper/report/ReportQualityInspectionMapper.xml b/aucma-report/src/main/resources/mapper/report/ReportQualityInspectionMapper.xml index e46d708..cba1c54 100644 --- a/aucma-report/src/main/resources/mapper/report/ReportQualityInspectionMapper.xml +++ b/aucma-report/src/main/resources/mapper/report/ReportQualityInspectionMapper.xml @@ -23,6 +23,8 @@ + + @@ -108,6 +110,9 @@ is_flag, updated_by, updated_time, + updated_time, + STATION_CODE, + SUBMINT_QUALTY_ID, #{objId}, @@ -128,6 +133,8 @@ #{isFlag}, #{updatedBy}, #{updatedTime}, + #{stationCode}, + #{submitQualtyId},