Commit 4fb39777 by liuyang

2024-04-30 采购批量提交添加过滤

parent fbb4ed95
......@@ -196,7 +196,17 @@ public class ServiceHPCG001 extends ServiceEPBase {
hpcg001.fromMap(value);
//添加采购计划详情
HPCG002A hpcg002a = new HPCG002A();
// 检查存货名称是新增还是已存在
HPPZ006 fPz006 = new HPPZ006();
fPz006.fromMap(value);
if (StringUtils.isBlank(hpcg001.getInventCode())) {
String inventCode = HPPZTools.HpPz004.checkAndSave(hpcg001.getInventType(), hpcg001.getInventName());
fPz006.setInventCode(inventCode);
}
// 检查规格是否已存在,不存在就新增
HPPZ006 dbPz006 = HPPZTools.HpPz006.checkAndSave(fPz006);
hpcg002a.fromMap(value);
hpcg002a.setInventRecordId(dbPz006.getId());
hpcg002a.setParentId(list1.get(0).getId());
hpcg002a.setApplyUnitWeight(hpcg001.getUnitWeight());
hpcg002a.setApplyWeight(hpcg001.getWeight());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment