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 0f9dc8a..96abd80 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 @@ -101,6 +101,13 @@ public class PdaApiController { } //检验前一工位是否已完成质检 if (StringUtils.isNotEmpty(station)){ + //箱体发泡检验01工位 对 壳胆绑定进行验证 + if (station.equals("2003")){ + String result = service.checkShellBinding(code, station); + if (StringUtils.isNotNull(result)){ + return error(result); + } + } String result = qualityService.checkBeforeStationInspection(code, station); if (StringUtils.isNotNull(result)){ return error(result); diff --git a/aucma-api/src/main/java/com/aucma/api/mapper/PdaBindingMapper.java b/aucma-api/src/main/java/com/aucma/api/mapper/PdaBindingMapper.java index e2ae92d..7433307 100644 --- a/aucma-api/src/main/java/com/aucma/api/mapper/PdaBindingMapper.java +++ b/aucma-api/src/main/java/com/aucma/api/mapper/PdaBindingMapper.java @@ -78,5 +78,5 @@ public interface PdaBindingMapper { @DataSource(value = DataSourceType.SLAVE) int insertCodeBinding(@Param("boxCode") String boxCode); - + List> checkShellBinding(@Param("boxCode") String boxCode); } diff --git a/aucma-api/src/main/java/com/aucma/api/service/IPdaBindingService.java b/aucma-api/src/main/java/com/aucma/api/service/IPdaBindingService.java index d8f7b10..1d754af 100644 --- a/aucma-api/src/main/java/com/aucma/api/service/IPdaBindingService.java +++ b/aucma-api/src/main/java/com/aucma/api/service/IPdaBindingService.java @@ -76,4 +76,11 @@ public interface IPdaBindingService { */ List selectExceptionProcessList(String inspectionUserFlag); + /** + * 箱体发泡检验01工位 对 壳胆绑定进行验证 + * @param code + * @param station + * @return + */ + String checkShellBinding(String code, String station); } diff --git a/aucma-api/src/main/java/com/aucma/api/service/impl/PdaServiceImpl.java b/aucma-api/src/main/java/com/aucma/api/service/impl/PdaServiceImpl.java index 6f4563f..258c604 100644 --- a/aucma-api/src/main/java/com/aucma/api/service/impl/PdaServiceImpl.java +++ b/aucma-api/src/main/java/com/aucma/api/service/impl/PdaServiceImpl.java @@ -18,6 +18,8 @@ import org.springframework.stereotype.Service; import java.util.HashMap; import java.util.List; +import static com.aucma.common.utils.SecurityUtils.getUsername; + /** * @author wanghao * @date 2023/11/14 9:56 @@ -152,6 +154,7 @@ public class PdaServiceImpl implements IPdaBindingService { // 维护条码补打记录表 for (HashMap map : barcodeList) { map.put("print_reason", printReason); + map.put("CREATE_BY", getUsername()); } mapper.printSupplementBarcode(barcodeList.get(0)); } @@ -243,4 +246,20 @@ public class PdaServiceImpl implements IPdaBindingService { return recordExceptionProcessService.selectRecordExceptionProcessList(process); } + /** + * 箱体发泡检验01工位 对 壳胆绑定进行验证 + * @param code + * @param station + * @return + */ + @Override + public String checkShellBinding(String code, String station) { + String result = null; + List> mapList = mapper.checkShellBinding(code); + if (mapList.size() == 0){ + result = "该箱体未绑定内胆码!"; + } + return result; + } + } diff --git a/aucma-api/src/main/resources/mapper/PdaBindingMapper.xml b/aucma-api/src/main/resources/mapper/PdaBindingMapper.xml index 54916c1..3ba125b 100644 --- a/aucma-api/src/main/resources/mapper/PdaBindingMapper.xml +++ b/aucma-api/src/main/resources/mapper/PdaBindingMapper.xml @@ -121,6 +121,18 @@ AND rep.QUALITY_MANAGER_TIME > (SYSDATE - 5.25) AND (rep.INSPECTION_USER_CODE IS NULL OR rep.INSPECTION_USER_CODE NOT LIKE '%' || #{userName} || '%') + @@ -140,6 +152,7 @@ PRINT_BARTYPE, PRINT_NAME, print_reason, + CREATE_BY, #{ORDER_CODE}, @@ -149,6 +162,7 @@ #{PRINT_BARTYPE}, #{PRINT_NAME}, #{print_reason}, + #{CREATE_BY}, diff --git a/aucma-report/src/main/java/com/aucma/report/domain/BoxTurnoverTraceabilityReport.java b/aucma-report/src/main/java/com/aucma/report/domain/BoxTurnoverTraceabilityReport.java index c825265..b3f512d 100644 --- a/aucma-report/src/main/java/com/aucma/report/domain/BoxTurnoverTraceabilityReport.java +++ b/aucma-report/src/main/java/com/aucma/report/domain/BoxTurnoverTraceabilityReport.java @@ -77,6 +77,13 @@ public class BoxTurnoverTraceabilityReport extends BaseEntity { @JsonProperty("BOX_CODE") private String BOX_CODE; + /** + * 内胆码 + */ + @Excel(name = "内胆码") + @JsonProperty("LINER_CODE") + private String LINER_CODE; + /** * MES码打印时间 */ @@ -85,6 +92,14 @@ public class BoxTurnoverTraceabilityReport extends BaseEntity { @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private String PRINT_TIME; + public String getLINER_CODE() { + return LINER_CODE; + } + + public void setLINER_CODE(String LINER_CODE) { + this.LINER_CODE = LINER_CODE; + } + public String getPRODUCT_LINE_CODE() { return PRODUCT_LINE_CODE; } diff --git a/aucma-report/src/main/java/com/aucma/report/service/impl/RecordSwitchOrderServiceImpl.java b/aucma-report/src/main/java/com/aucma/report/service/impl/RecordSwitchOrderServiceImpl.java index ffe8f58..1af9cb7 100644 --- a/aucma-report/src/main/java/com/aucma/report/service/impl/RecordSwitchOrderServiceImpl.java +++ b/aucma-report/src/main/java/com/aucma/report/service/impl/RecordSwitchOrderServiceImpl.java @@ -98,6 +98,7 @@ public class RecordSwitchOrderServiceImpl implements IRecordSwitchOrderService { // 维护条码补打记录表 for (HashMap map : barcodeList) { map.put("print_reason", "切换订单"); + map.put("CREATE_BY", getUsername()); } recordSwitchOrderMapper.printSupplementBarcode(barcodeList.get(0)); } catch (Exception e) { diff --git a/aucma-report/src/main/java/com/aucma/report/service/impl/ReportQualityInspectionServiceImpl.java b/aucma-report/src/main/java/com/aucma/report/service/impl/ReportQualityInspectionServiceImpl.java index a6cc00b..9210ab4 100644 --- a/aucma-report/src/main/java/com/aucma/report/service/impl/ReportQualityInspectionServiceImpl.java +++ b/aucma-report/src/main/java/com/aucma/report/service/impl/ReportQualityInspectionServiceImpl.java @@ -139,7 +139,7 @@ public class ReportQualityInspectionServiceImpl implements IReportQualityInspect markLocation = i; } } - if (markLocation <= 2){ + if (markLocation <= 1){ return null; } BaseProductLine productLineInfo = productLineList.get(markLocation - 1); diff --git a/aucma-report/src/main/resources/mapper/report/GeneralReportMapper.xml b/aucma-report/src/main/resources/mapper/report/GeneralReportMapper.xml index 0413411..dd3ea3e 100644 --- a/aucma-report/src/main/resources/mapper/report/GeneralReportMapper.xml +++ b/aucma-report/src/main/resources/mapper/report/GeneralReportMapper.xml @@ -520,13 +520,14 @@