ic_采购入库新增接口清空字段为~的值
This commit is contained in:
parent
45b8f4c7a2
commit
9169a5cb9a
|
@ -38,12 +38,10 @@ import nccloud.openapi.scmpub.pub.TransferCodeToPKTool;
|
||||||
import nccloud.openapi.scmpub.pub.TransferMapToVOTool;
|
import nccloud.openapi.scmpub.pub.TransferMapToVOTool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @version NCC1909
|
||||||
* @Description: 库存采购入库单维护接口实现类
|
* @Description: 库存采购入库单维护接口实现类
|
||||||
*
|
|
||||||
* @author: 刘伟
|
* @author: 刘伟
|
||||||
* @date: 2019-5-7 下午3:22:00
|
* @date: 2019-5-7 下午3:22:00
|
||||||
* @version NCC1909
|
|
||||||
*/
|
*/
|
||||||
public class APIPurchaseInMaitainImpl implements IAPIPurchaseInMaitain {
|
public class APIPurchaseInMaitainImpl implements IAPIPurchaseInMaitain {
|
||||||
|
|
||||||
|
@ -59,7 +57,22 @@ public class APIPurchaseInMaitainImpl implements IAPIPurchaseInMaitain {
|
||||||
// 1、传入数据基本非空校验
|
// 1、传入数据基本非空校验
|
||||||
BillVOsCheckRule checker =
|
BillVOsCheckRule checker =
|
||||||
new BillVOsCheckRule(new CheckPurchaseInSaveValidator());
|
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);
|
fillHeadDataBeforeCheck(vos);
|
||||||
checker.check(vos);
|
checker.check(vos);
|
||||||
|
@ -143,8 +156,7 @@ public class APIPurchaseInMaitainImpl implements IAPIPurchaseInMaitain {
|
||||||
throw new BusinessException(
|
throw new BusinessException(
|
||||||
nc.vo.ml.NCLangRes4VoTransl.getNCLangRes().getStrByID("4008027_0",
|
nc.vo.ml.NCLangRes4VoTransl.getNCLangRes().getStrByID("4008027_0",
|
||||||
"04008027-0381")/* @res "没找到要修改的入库单信息,请检查数据的表头主键cgeneralhid。" */);
|
"04008027-0381")/* @res "没找到要修改的入库单信息,请检查数据的表头主键cgeneralhid。" */);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
List<String> headProFields =
|
List<String> headProFields =
|
||||||
CheckProhibitUpdateFields.getHeadProhibitFields("45");
|
CheckProhibitUpdateFields.getHeadProhibitFields("45");
|
||||||
List<String> bodyProFields =
|
List<String> bodyProFields =
|
||||||
|
|
Loading…
Reference in New Issue