更新
This commit is contained in:
@@ -478,15 +478,20 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
}
|
||||
//将之前的托盘信息删除
|
||||
// groupTable.delete("vehicle_code='" + vehicle_code + "' and task_id <>'" + 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);
|
||||
// 如果是送料任务需要反向组盘
|
||||
if (SendMaterialTask.class.getName().equals(taskobj.getString("handle_class"))) {
|
||||
JSONObject groupObj = groupTable.query("task_id='" + task_id + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(groupObj)) {
|
||||
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);
|
||||
} else {
|
||||
String msg = "未找到任务号为" + task_code + "的组盘信息";
|
||||
log.error(msg);
|
||||
throw new BadRequestException(msg);
|
||||
}
|
||||
}
|
||||
|
||||
//更新入库单单据的托盘条码
|
||||
|
||||
Reference in New Issue
Block a user