|
@@ -13,7 +13,6 @@ import com.fdkk.sxz.webApi.service.IRenovationPartsDetailService;
|
|
|
import com.fdkk.sxz.webApi.service.custom.ICustomComponentService;
|
|
|
import com.fdkk.sxz.webApi.service.custom.ICustomProductService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.slf4j.MDC;
|
|
|
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
|
|
|
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -54,7 +53,7 @@ public class Model3dBuild {
|
|
|
@RabbitListener(queues = TopicRabbitConfig.MODEL_BIZ_3D)
|
|
|
public void modelBiz3d(Message<RequestQueue> message) {
|
|
|
Model3dBuild.log.info("modelBiz3d同步消息开始:" + message + ",开始同步");
|
|
|
- String token = RedisUtil.tryLock("modelBiz3d:" + message.getPayload().getName().toString(), 60 * 60 * 1000);
|
|
|
+ String token = RedisUtil.tryLock("modelBiz3d:" + message.getPayload().getName(), 60 * 60 * 1000);
|
|
|
try {
|
|
|
if (token != null) {
|
|
|
modelBiz3dHandler(message.getPayload());
|
|
@@ -62,9 +61,8 @@ public class Model3dBuild {
|
|
|
} catch (InterruptedException e) {
|
|
|
e.printStackTrace();
|
|
|
} finally {
|
|
|
- MDC.clear();
|
|
|
if (token != null) {
|
|
|
- RedisUtil.unlock(message.getPayload().getTaskId().toString(), token);
|
|
|
+ RedisUtil.unlock("modelBiz3d:" + message.getPayload().getName(), token);
|
|
|
}
|
|
|
}
|
|
|
|