库存异动修改

This commit is contained in:
sez 2025-11-07 15:44:48 +08:00
parent d16059f517
commit e67ea06df3
2 changed files with 6 additions and 2 deletions

View File

@ -428,7 +428,7 @@ public class WMSAdjustBillController {
} }
String itemId = ckObj.getString("itemId");//仓储系统商品ID-条件必填 String itemId = ckObj.getString("itemId");//仓储系统商品ID-条件必填
String inventoryType = ckObj.getString("inventoryType");//库存类型-ZP=正品, CC=残次,JS=机损, XS= 箱损, ZT=在途库存DJ=冻结 String inventoryType = ckObj.getString("inventoryType");//库存类型-ZP=正品, CC=残次,JS=机损, XS= 箱损, ZT=在途库存DJ=冻结
String quantity = ckObj.getString("quantity");//异动数量-必填有正负 int quantity = ckObj.getIntValue("quantity");//异动数量-必填有正负
if (ApiResultExt.validateRequired(quantity, "int")) { if (ApiResultExt.validateRequired(quantity, "int")) {
errormsg = errormsg.append("").append("传入参数 quantity 为空"); errormsg = errormsg.append("").append("传入参数 quantity 为空");
} }
@ -470,7 +470,7 @@ public class WMSAdjustBillController {
Date expireDate_e = rkObj.getDate("expireDate"); Date expireDate_e = rkObj.getDate("expireDate");
//调整后商品 //调整后商品
DynamicObject iGoods = null; DynamicObject iGoods = null;
DynamicObject[] iGoodsArr = BaseDataMatchUtils.materialMatchGoods(itemCode, batchCode_e, productDate, expireDate, true); DynamicObject[] iGoodsArr = BaseDataMatchUtils.materialMatchGoods(itemCode, batchCode_e, productDate_e, expireDate_e, true);
if(iGoodsArr != null && iGoodsArr.length > 0){ if(iGoodsArr != null && iGoodsArr.length > 0){
iGoods = iGoodsArr[0]; iGoods = iGoodsArr[0];
}else{ }else{

View File

@ -252,6 +252,10 @@ public class ApiResultExt implements Serializable {
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
return true; // 无法转为BigDecimal返回 true return true; // 无法转为BigDecimal返回 true
} }
case "int":
case "Date":
return false;
default: default:
return true; // 如果没有匹配的类型返回 true return true; // 如果没有匹配的类型返回 true
} }