ic_采购入库新增接口清空字段为~的值

This commit is contained in:
李正@用友 2025-04-23 15:18:14 +08:00
parent 45b8f4c7a2
commit 9169a5cb9a
1 changed files with 34 additions and 22 deletions

View File

@ -38,12 +38,10 @@ import nccloud.openapi.scmpub.pub.TransferCodeToPKTool;
import nccloud.openapi.scmpub.pub.TransferMapToVOTool;
/**
*
* @version NCC1909
* @Description: 库存采购入库单维护接口实现类
*
* @author: 刘伟
* @date: 2019-5-7 下午3:22:00
* @version NCC1909
*/
public class APIPurchaseInMaitainImpl implements IAPIPurchaseInMaitain {
@ -59,7 +57,22 @@ public class APIPurchaseInMaitainImpl implements IAPIPurchaseInMaitain {
// 1传入数据基本非空校验
BillVOsCheckRule checker =
new BillVOsCheckRule(new CheckPurchaseInSaveValidator());
//2025年4月23日15点10分 采购入库单接口项目字段为波浪则清空 sdlizheng --start
for (PurchaseInVO vo : vos) {
PurchaseInBodyVO[] bodys = vo.getBodys();
if (bodys != null && bodys.length > 0) {
String[] attributeNames = bodys[0].getAttributeNames();
for (PurchaseInBodyVO body : bodys) {
for (String fildName : attributeNames) {
if (body.getAttributeValue(fildName) != null && "~".equals(body.getAttributeValue(fildName))) {
body.setAttributeValue(fildName, null);
}
}
}
}
}
//2025年4月23日15点10分 采购入库单接口项目字段为波浪则清空 sdlizheng --end
//添加供应商和交易类型为空赋值
fillHeadDataBeforeCheck(vos);
checker.check(vos);
@ -143,8 +156,7 @@ public class APIPurchaseInMaitainImpl implements IAPIPurchaseInMaitain {
throw new BusinessException(
nc.vo.ml.NCLangRes4VoTransl.getNCLangRes().getStrByID("4008027_0",
"04008027-0381")/* @res "没找到要修改的入库单信息请检查数据的表头主键cgeneralhid。" */);
}
else {
} else {
List<String> headProFields =
CheckProhibitUpdateFields.getHeadProhibitFields("45");
List<String> bodyProFields =