Commit dca0d12b by liuyang

2024-07-25 修复实时库存存货类型大类

parent 36fb83f6
......@@ -213,6 +213,7 @@ public class ServiceHGKC010 extends ServiceBase {
String inventType = "";
String inventCode = "";
String inventName = "";
Integer inventTypeDetail = 0;
EiInfo inInfo = new EiInfo();
try {
inInfo.set(HGKC010.FIELD_WH_CODE, hpkc010.getWhCode());
......@@ -236,6 +237,7 @@ public class ServiceHGKC010 extends ServiceBase {
inventType = hppz005.getInventType();
inventCode = hppz005.getInventCode();
inventName = hppz005.getInventName();
inventTypeDetail = hppz005.getInventTypeDetail();
}catch (Exception e){
LogUtils.setDetailMsg(inInfo, e, "库存更新失败!");
throw new PlatException("存货档案ID异常,找不到对应的存货档案!");
......@@ -244,6 +246,7 @@ public class ServiceHGKC010 extends ServiceBase {
hpkc010.setInventType(inventType.toString());
hpkc010.setInventCode(inventCode);
hpkc010.setInventName(inventName);
hpkc010.setInventTypeDetail(inventTypeDetail);
//hpkc010.setVersion(new Integer(1));
}
......
......@@ -318,6 +318,7 @@ public class HGKCUtils {
newKc010.setMaterial(dbPz005.getMaterial());
newKc010.setUnit(dbPz005.getUnit());
newKc010.setDeleteFlag(DeleteFlagEnum.UN_REMOVE.getCode());
newKc010.setInventTypeDetail(dbPz005.getInventTypeDetail());
DaoUtils.insert(HGKC010.INSERT, newKc010);
}
......
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