fix:jo_in添加判断
This commit is contained in:
@@ -229,6 +229,7 @@ public class StorPublicServiceImpl implements StorPublicService {
|
|||||||
|
|
||||||
// 获取仓位物料信息
|
// 获取仓位物料信息
|
||||||
JSONObject jo_in = wql.query(sql_where.toString()).uniqueResult(0);
|
JSONObject jo_in = wql.query(sql_where.toString()).uniqueResult(0);
|
||||||
|
if (jo_in != null) {
|
||||||
//TODO:兼容小数点不一致问题:后续有问题保留三位处理
|
//TODO:兼容小数点不一致问题:后续有问题保留三位处理
|
||||||
jo_in.put("canuse_qty",new BigDecimal(jo_in.getDoubleValue("canuse_qty")).setScale(3, RoundingMode.HALF_UP));
|
jo_in.put("canuse_qty",new BigDecimal(jo_in.getDoubleValue("canuse_qty")).setScale(3, RoundingMode.HALF_UP));
|
||||||
jo_in.put("frozen_qty",new BigDecimal(jo_in.getDoubleValue("frozen_qty")).setScale(3, RoundingMode.HALF_UP));
|
jo_in.put("frozen_qty",new BigDecimal(jo_in.getDoubleValue("frozen_qty")).setScale(3, RoundingMode.HALF_UP));
|
||||||
@@ -239,6 +240,7 @@ public class StorPublicServiceImpl implements StorPublicService {
|
|||||||
throw new BadRequestException("库存 stockrecord_id:"+jo_in.getString("stockrecord_id")+"可用数加冻结数不等于总数");
|
throw new BadRequestException("库存 stockrecord_id:"+jo_in.getString("stockrecord_id")+"可用数加冻结数不等于总数");
|
||||||
}
|
}
|
||||||
jo_in.put("warehousing_qty",new BigDecimal(jo_in.getDoubleValue("warehousing_qty")).setScale(3, RoundingMode.HALF_UP));
|
jo_in.put("warehousing_qty",new BigDecimal(jo_in.getDoubleValue("warehousing_qty")).setScale(3, RoundingMode.HALF_UP));
|
||||||
|
}
|
||||||
switch (change_type_scode) {
|
switch (change_type_scode) {
|
||||||
case "11": //11加冻结、减可用:出库分配、移库移出
|
case "11": //11加冻结、减可用:出库分配、移库移出
|
||||||
if (jo_in != null) {
|
if (jo_in != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user