Commit 27366746 by liuyang

2024-10-09 办公用品入库状态和领用状态调整

parent 1a347479
...@@ -16,6 +16,7 @@ import com.baosight.iplat4j.core.ei.EiInfo; ...@@ -16,6 +16,7 @@ import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.service.impl.ServiceEPBase; import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -60,6 +61,7 @@ public class ServiceHPBG004 extends ServiceEPBase { ...@@ -60,6 +61,7 @@ public class ServiceHPBG004 extends ServiceEPBase {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
// 写入数据 // 写入数据
List<HPBG004> hpbg004s = new ArrayList<>();
for (Map resultRow : resultRows) { for (Map resultRow : resultRows) {
HPBG004 hpbg004 = new HPBG004(); HPBG004 hpbg004 = new HPBG004();
hpbg004.fromMap(resultRow); hpbg004.fromMap(resultRow);
...@@ -68,7 +70,9 @@ public class ServiceHPBG004 extends ServiceEPBase { ...@@ -68,7 +70,9 @@ public class ServiceHPBG004 extends ServiceEPBase {
} else { } else {
this.modify(hpbg004); this.modify(hpbg004);
} }
hpbg004s.add(hpbg004);
} }
inInfo.getBlock(EiConstant.resultBlock).setRows(hpbg004s);
inInfo.setStatus(EiConstant.STATUS_DEFAULT); inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据保存成功!"); inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据保存成功!");
} catch (Exception e) { } catch (Exception e) {
......
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