采购入库-代码同步

This commit is contained in:
mzr 2025-11-14 10:54:48 +08:00
parent 568d2b84b7
commit af944a833c
1 changed files with 4 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public class APIPurchaseInMaitainImpl implements IAPIPurchaseInMaitain {
public PurchaseInVO[] save(List<Map<String, Object>> paramList) throws BusinessException {
// MapList转聚合VOList
List<PurchaseInVO> aggVOList = TransferMapToVOTool.transferMapToAggVO(paramList, PurchaseInVO.class);
//检查是否满足wms组织条件
// 检查是否满足wms组织条件
UFBoolean isWmsOrg = checkWmsOrg(aggVOList);
String creatorCode = aggVOList.get(0).getHead().getCreator();
PurchaseInVO[] vos = aggVOList.toArray(new PurchaseInVO[aggVOList.size()]);
@ -64,9 +64,11 @@ public class APIPurchaseInMaitainImpl implements IAPIPurchaseInMaitain {
// 2025年4月23日15点10分 采购入库单接口项目字段为波浪则清空 sdlizheng --start
for (PurchaseInVO vo : vos) {
PurchaseInBodyVO[] bodys = vo.getBodys();
vo.getHead().setStatus(VOStatus.NEW);
if (bodys != null && bodys.length > 0) {
String[] attributeNames = bodys[0].getAttributeNames();
for (PurchaseInBodyVO body : bodys) {
body.setStatus(VOStatus.NEW);
for (String fildName : attributeNames) {
if (body.getAttributeValue(fildName) != null && "~".equals(body.getAttributeValue(fildName))) {
body.setAttributeValue(fildName, null);
@ -135,7 +137,7 @@ public class APIPurchaseInMaitainImpl implements IAPIPurchaseInMaitain {
if (orgItem == null || orgItem.length < 1) {
throw new BusinessException("WMSORG全局参数解析失败请检查");
}
//使用Stream将orgItem转成list
// 使用Stream将orgItem转成list
List<String> orgList = Arrays.asList(orgItem);
String pkOrg = paramList.get(0).getHead().getPk_org();
if (orgList.contains(pkOrg)) {