fix:任务拆解
This commit is contained in:
@@ -44,6 +44,11 @@
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.nl.cloud</groupId>
|
||||
<artifactId>nl-spring-boot-starter-execute</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -20,19 +20,17 @@ public enum TransportTaskStatusEnum {
|
||||
|
||||
EXECUTING("60", "执行中"),
|
||||
|
||||
PICKED("61", "已取货搬运中"),
|
||||
PICKED("65", "已取货搬运中"),
|
||||
|
||||
FINISHED_CALLBACK_PENDING("67", "外部完成待业务处理"),
|
||||
FINISHED_CALLBACK_PENDING("75", "外部完成待业务处理"),
|
||||
|
||||
CANCEL_EXTERNAL_PENDING("68", "外部取消中"),
|
||||
CANCEL_CALLBACK_PENDING("85", "外部取消待业务处理"),
|
||||
|
||||
CANCEL_CALLBACK_PENDING("69", "外部取消待业务处理"),
|
||||
FINISHED("79", "完成"),
|
||||
|
||||
FINISHED("70", "完成"),
|
||||
CANCELLED("89", "取消"),
|
||||
|
||||
CANCELLED("80", "取消"),
|
||||
|
||||
FAILED("90", "失败");
|
||||
FAILED("99", "失败");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class TaskEventProducer {
|
||||
message.setEventId(UUID.randomUUID().toString());
|
||||
}
|
||||
|
||||
String destination = TOPIC + ":" + message.getOwnerService();
|
||||
String destination = TOPIC + "_" + message.getOwnerService();
|
||||
try {
|
||||
rocketMQTemplate.syncSend(destination, message);
|
||||
log.info("MQ 发送成功, destination={}, taskId={}, eventType={}",
|
||||
|
||||
@@ -105,6 +105,7 @@ public class TransportTaskFeedbackServiceImpl implements TransportTaskFeedbackSe
|
||||
|
||||
/**
|
||||
* 处理取货完成(61):更新状态 + 同步 HTTP 回调 LMS/WMS
|
||||
* ownerService: 服务提供商
|
||||
*/
|
||||
private void handlePicked(TransportTaskDO task, AcsFeedbackReqDTO reqDTO) {
|
||||
if (!isAllowedFrom(task.getTaskStatus(), "60", "61")) {
|
||||
|
||||
Reference in New Issue
Block a user