refactor(uapbd): 修改推送启源物料数据批次编号生成逻辑
-移除了固定的批次编号"10001" - 使用当前时间戳作为批次编号,确保唯一性和可追溯性 - 优化了代码结构,提高了代码的可读性和可维护性
This commit is contained in:
parent
5600f4a391
commit
d449c36194
|
@ -22,7 +22,6 @@ import nc.vo.pub.BusinessException;
|
|||
import nccloud.baseapp.core.log.NCCForUAPLogger;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -111,7 +110,9 @@ public class MaterialToQmsListener implements IBusinessListener {
|
|||
String statusCode = (3 == enablestate) ? "1" : "0";
|
||||
// 组装数据
|
||||
JSONObject singleObj = new JSONObject();
|
||||
singleObj.put("batchid", "10001");// 批次编号,用于唯一标识当前传输的物料数据批次,便于追溯和批量处理
|
||||
// 批次编号,用于唯一标识当前传输的物料数据批次,便于追溯和批量处理
|
||||
long cts = System.currentTimeMillis();
|
||||
singleObj.put("batchid", cts);
|
||||
JSONObject contentObj = new JSONObject();
|
||||
contentObj.put("meswlbh", vo.getCode()); // 启源物料编码
|
||||
contentObj.put("bipwlbh", vo.getCode()); // BIP物料编码
|
||||
|
|
Loading…
Reference in New Issue