Merge branch 'master' of http://121.40.234.130:8899/root/lanzhouhailiang_one
This commit is contained in:
@@ -446,7 +446,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
jsonMap.put("flag", "1");
|
||||
jsonMap.put("material_id", dtl.getString("material_id"));
|
||||
jsonMap.put("sale_order_name", dtl.getString("source_bill_code"));
|
||||
jsonMap.put("sect_id", whereJson.getString("sect_id"));
|
||||
jsonMap.put("sect_id", RegionTypeEnum.ZC01.getId());
|
||||
|
||||
JSONObject jsonOneIvt = WQL.getWO("ST_OUTIVT01").addParamMap(jsonMap).process().uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonOneIvt)) throw new BadRequestException("库存不足");
|
||||
@@ -655,7 +655,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
jsonMap.put("flag", "1");
|
||||
jsonMap.put("material_id", dtl.getString("material_id"));
|
||||
jsonMap.put("sale_order_name", dtl.getString("source_bill_code"));
|
||||
jsonMap.put("sect_id", whereJson.getString("sect_id"));
|
||||
jsonMap.put("sect_id", RegionTypeEnum.ZC01.getId());
|
||||
|
||||
JSONObject jsonOneIvt = WQL.getWO("ST_OUTIVT01").addParamMap(jsonMap).process().uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonOneIvt)) throw new BadRequestException("库存不足");
|
||||
@@ -1804,10 +1804,14 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
jsonDis.put("work_status", "99");
|
||||
wo_dis.update(jsonDis);
|
||||
|
||||
// 更新明细为完成
|
||||
// 判断此明细下是否还有未完成的分配明细
|
||||
JSONObject jsonDtl = wo_dtl.query("iostorinvdtl_id = '" + jsonDis.getString("iostorinvdtl_id") + "'").uniqueResult(0);
|
||||
jsonDtl.put("bill_status", "99");
|
||||
wo_dtl.update(jsonDtl);
|
||||
JSONArray disArr2 = wo_dis.query("iostorinvdtl_id = '" + jsonDtl.getString("iostorinvdtl_id") + "' and work_status <> '99'").getResultJSONArray(0);
|
||||
if (ObjectUtil.isEmpty(disArr2)) {
|
||||
// 更新明细为完成
|
||||
jsonDtl.put("bill_status", "99");
|
||||
wo_dtl.update(jsonDtl);
|
||||
}
|
||||
}
|
||||
|
||||
//判断是否还有未完成的明细
|
||||
|
||||
Reference in New Issue
Block a user