代码更新
This commit is contained in:
@@ -4099,9 +4099,15 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
//更新改切子卷为该子卷的分切计划
|
||||
JSONObject source_dtl = WQLObject.getWQLObject("st_ivt_iostorinvdtl").query("iostorinv_id = '" + iostorinv_id + "' AND IFNULL(source_billdtl_id,'') <> ''").uniqueResult(0);
|
||||
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
map.put("is_parent_ok", "1");
|
||||
WQLObject.getWQLObject("PDM_BI_SlittingProductionPlan").update(map, "restruct_container_name = '" + source_dtl.getString("pcsn") + "'");
|
||||
JSONObject jsonPlan = WQLObject.getWQLObject("PDM_BI_SlittingProductionPlan").query("package_box_sn = '" + source_dtl.getString("box_no") + "'").uniqueResult(0);
|
||||
|
||||
if (ObjectUtil.isEmpty(jsonPlan)) throw new BadRequestException("未找到对应改制计划");
|
||||
|
||||
JSONObject map = new JSONObject();
|
||||
map.put("is_parent_ok","1");
|
||||
|
||||
WQLObject.getWQLObject("PDM_BI_SlittingProductionPlan").update(map,"package_box_sn = '"+source_dtl.getString("box_no")+"'");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user