信息缺失修复
This commit is contained in:
@@ -476,19 +476,19 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
} else {
|
||||
throw new BadRequestException("未找到指令号'" + task_id);
|
||||
}
|
||||
if ("RYSMW01".equals(device_code)) {
|
||||
//将之前的托盘信息删除
|
||||
//将之前的托盘信息删除
|
||||
// groupTable.delete("vehicle_code='" + vehicle_code + "' and task_id <>'" + task_id + "'");
|
||||
JSONObject groupObj = groupTable.query("task_id='" + task_id + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(groupObj)) {
|
||||
throw new BadRequestException("未找到指令号为'" + task_id + "'的组盘信息!");
|
||||
}
|
||||
JSONObject groupObj = groupTable.query("task_id='" + task_id + "'").uniqueResult(0);
|
||||
// 根据任务标识查询组盘,如果不存在表示已经走过下面的反向组盘过程,如果存在则需要走一遍反向组盘过程
|
||||
if (ObjectUtil.isNotEmpty(groupObj)) {
|
||||
groupObj.put("task_id", "");
|
||||
groupObj.put("vehicle_code", vehicle_code);
|
||||
groupObj.put("update_optid", SecurityUtils.getCurrentUserId());
|
||||
groupObj.put("update_optname", SecurityUtils.getNickName());
|
||||
groupObj.put("update_time", DateUtil.now());
|
||||
groupTable.update(groupObj);
|
||||
}
|
||||
|
||||
//更新入库单单据的托盘条码
|
||||
WQLObject iosTable = WQLObject.getWQLObject("ST_IVT_workProcedureIOS");
|
||||
JSONObject iosObj = iosTable.query("task_id ='" + task_id + "'").uniqueResult(0);
|
||||
|
||||
Reference in New Issue
Block a user