fix:退货入库桁架优化
This commit is contained in:
@@ -319,8 +319,21 @@ public class InBoxManageServiceImpl implements InBoxManageService {
|
||||
/*
|
||||
* 查询mes木箱信息,插入木箱信息表
|
||||
*/
|
||||
|
||||
JSONArray resultJSONArray = WQLObject.getWQLObject("pdm_bi_subpackagerelation").query("package_box_sn = '" + whereJson.getString("box_no") + "' AND status = '0'").getResultJSONArray(0);
|
||||
if (ObjectUtil.isEmpty(resultJSONArray)) {
|
||||
throw new BadRequestException("未查询到子卷包装信息!");
|
||||
}
|
||||
|
||||
lmsToMesService.momGetPackingInfo(whereJson);
|
||||
|
||||
//判断当前点位是否存在任务,如果存在则不生成任务
|
||||
WQLObject wo_Task = WQLObject.getWQLObject("SCH_BASE_Task");
|
||||
JSONObject jsonObject = wo_Task.query("point_code1 = '" + whereJson.getString("point_code") + "' AND task_status < '07' AND is_delete = '0'").uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(jsonObject)) {
|
||||
throw new BadRequestException("点位【" + jsonObject.getString("point_code1") + "】存在未完成的任务!");
|
||||
}
|
||||
|
||||
|
||||
//查询对应的木箱信息
|
||||
// 查询木箱信息
|
||||
|
||||
Reference in New Issue
Block a user