|
@@ -58,12 +58,11 @@ import com.sd.business.service.statement.StatementOfAccountService;
|
|
|
import com.sd.business.util.CodeEnum;
|
|
|
import com.sd.framework.util.Assert;
|
|
|
import com.sd.mq.config.ArtworkConfig;
|
|
|
-import com.sd.mq.entity.ArtworkMessage;
|
|
|
+import com.sd.mq.entity.TempArtworkMessage;
|
|
|
import com.sd.mq.util.RabbitMqUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.io.File;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
|
import java.util.function.Function;
|
|
@@ -1119,25 +1118,11 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, OrderInfo> implem
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- String pathPrefix = "临时文件" + File.separator;
|
|
|
-
|
|
|
- ArtworkMessage artworkMessage = new ArtworkMessage();
|
|
|
- artworkMessage.setImgPath(pathPrefix + orderSkuDto.getBlueprint()
|
|
|
- .replace("https://os.winfaster.cn/sd/", "")
|
|
|
- .replace("test/", "")
|
|
|
- .replace("prod/", "")
|
|
|
- .replace("dev/", ""));
|
|
|
- artworkMessage.setFilePath(pathPrefix + orderSkuDto.getProductionDocument()
|
|
|
- .replace("https://os.winfaster.cn/sd/", "")
|
|
|
- .replace("test/", "")
|
|
|
- .replace("prod/", "")
|
|
|
- .replace("dev/", ""));
|
|
|
- artworkMessage.setImgUrl(orderSkuDto.getBlueprint());
|
|
|
- artworkMessage.setFileUrl(orderSkuDto.getProductionDocument());
|
|
|
- artworkMessage.setRetryCount(0);
|
|
|
- artworkMessage.setType(1);
|
|
|
-
|
|
|
- RabbitMqUtil.send(ArtworkConfig.DIRECT_EXCHANGE_NAME, ArtworkConfig.QUEUE_NAME, artworkMessage);
|
|
|
+ TempArtworkMessage tempArtworkMessage = new TempArtworkMessage();
|
|
|
+ tempArtworkMessage.setImgUrl(orderSkuDto.getBlueprint());
|
|
|
+ tempArtworkMessage.setFileUrl(orderSkuDto.getProductionDocument());
|
|
|
+
|
|
|
+ RabbitMqUtil.send(ArtworkConfig.DIRECT_EXCHANGE_NAME, ArtworkConfig.TEMP_QUEUE_NAME, tempArtworkMessage);
|
|
|
}
|
|
|
}
|
|
|
|