This commit is contained in:
2023-02-20 13:41:01 +08:00
12 changed files with 42 additions and 26 deletions

View File

@@ -135,6 +135,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
result.put("message", "任务状态反馈成功!");
result.put("data", new JSONObject());
result.put("errArr", errArr);
log.info("receiveTaskStatusAcs返回参数--------------------------------------" + result.toString());
return result;
}
@@ -493,6 +494,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
}
result.put("status", HttpStatus.OK.value());
result.put("message", "下发成功!");
log.info("apply返回参数---------------------------------------------" + result.toString());
return result;
}
} finally {
@@ -502,6 +504,8 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
}
result.put("status", HttpStatus.BAD_REQUEST.value());
result.put("message", "申请任务超时!" + type);
log.info("apply返回参数---------------------------------------------" + result.toString());
return result;
}
@@ -602,7 +606,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
lock.unlock();
}
}
log.info("deviceApply返回参数---------------------------------------------" + result.toString());
return result;
}

View File

@@ -6,7 +6,6 @@ import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.nl.modules.logging.annotation.Log;
import org.nl.wms.pda.mps.service.CasingService;
import org.nl.wms.pda.mps.service.OutService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;

View File

@@ -73,6 +73,8 @@ public class SendOutTask extends AbstractAcsTask {
JSONObject jsonPoint2 = pointTab.query("point_code = '" + jsonTask.getString("point_code2") + "'").uniqueResult(0);
jsonPoint2.put("lock_type", "1");
jsonPoint2.put("vehicle_code", "");
jsonPoint2.put("point_status", "1");
pointTab.update(jsonPoint2);
}

View File

@@ -292,7 +292,7 @@ public class HandMoveStorServiceImpl implements HandMoveStorService {
storPublicService.IOStor(jo, "31");
//锁定起点点位、仓位
JSONObject from_start = new JSONObject();
from_start.put("lock_type", "03");
from_start.put("lock_type", "6");
from_start.put("struct_id", jo.getString("turnout_struct_id"));
from_start.put("inv_type", jo_mst.getString("bill_type"));
from_start.put("inv_id", jo_mst.getString("moveinv_id"));
@@ -303,6 +303,7 @@ public class HandMoveStorServiceImpl implements HandMoveStorService {
storPublicService.updateStructAndPoint(from_start);
//锁定终点点位、仓位
from_start.put("struct_id", turnin_struct_id);
from_start.put("lock_type", "7");
storPublicService.updateStructAndPoint(from_start);
}
ret.put("total_qty", total_qty);

View File

@@ -89,7 +89,7 @@ public class HandMoveStorAcsTask extends AbstractAcsTask {
if(TaskStatusEnum.EXECUTING.getCode().equals(status)){
map.put("work_status","02");
wo_dtl.update(map,"task_id='"+task_id+"'");
map.put("task_status","03");
map.put("task_status",TaskStatusEnum.EXECUTING.getCode());
map.put("update_optid",currentUserId+"");
map.put("update_optname",nickName);
map.put("update_time",now);