Browse Source

FQC 标签修改

master
DouDou 1 year ago
parent
commit
4f3c007dab
  1. 7
      src/main/java/com/spring/modules/schedule/service/impl/ScheduleServiceImpl.java

7
src/main/java/com/spring/modules/schedule/service/impl/ScheduleServiceImpl.java

@ -540,6 +540,8 @@ public class ScheduleServiceImpl<main> implements ScheduleService {
String fqcBy = String.valueOf(resultMap.get("fqcBy")); String fqcBy = String.valueOf(resultMap.get("fqcBy"));
String orderNo = String.valueOf(resultMap.get("orderNo")); String orderNo = String.valueOf(resultMap.get("orderNo"));
String rawMaterialType = String.valueOf(resultMap.get("rawMaterialType")); String rawMaterialType = String.valueOf(resultMap.get("rawMaterialType"));
//2024-08-09 后加的字段
String sysBatchTime = String.valueOf(resultMap.get("sysBatchTime"));
//设置可以直接获取的时间参数 //设置可以直接获取的时间参数
printMap.put("stockTime", stockTime); printMap.put("stockTime", stockTime);
@ -559,7 +561,7 @@ public class ScheduleServiceImpl<main> implements ScheduleService {
if(null == systemBatchNo || "".equals(systemBatchNo) || null == rawMaterialBatchNo || "".equals(rawMaterialBatchNo)){ if(null == systemBatchNo || "".equals(systemBatchNo) || null == rawMaterialBatchNo || "".equals(rawMaterialBatchNo)){
//查询当前卷信息 //查询当前卷信息
//获取时间的部分编码 //获取时间的部分编码
String sixTimeCode = this.getFqcSixTimeCode(stockTime);
String sixTimeCode = this.getFqcSixTimeCode(sysBatchTime);
String newSystemBatchNo = "WM"+sixTimeCode+"30"+projectCode+primaryMaterial; String newSystemBatchNo = "WM"+sixTimeCode+"30"+projectCode+primaryMaterial;
//获取三位流水号 //获取三位流水号
String serialNo = this.getCustomerSerialNo("ALL", "FQCLabel", newSystemBatchNo, 3); String serialNo = this.getCustomerSerialNo("ALL", "FQCLabel", newSystemBatchNo, 3);
@ -646,7 +648,8 @@ public class ScheduleServiceImpl<main> implements ScheduleService {
public static String getFqcSixTimeCode(String stockTime) { public static String getFqcSixTimeCode(String stockTime) {
String sixTimeCode = stockTime.substring(2, 10); String sixTimeCode = stockTime.substring(2, 10);
///替换成空字符串 ///替换成空字符串
sixTimeCode = sixTimeCode.replace("/", "");
sixTimeCode = sixTimeCode.replace("-", "");
//sixTimeCode = sixTimeCode.replace("/", "");
return sixTimeCode; return sixTimeCode;
} }

Loading…
Cancel
Save