修改bug

master
ljl 12 months ago
parent 4ee3bb3b5f
commit b1438c3226

@ -1,19 +1,15 @@
package com.ms.api.queue.consumer;
import com.alibaba.fastjson.JSON;
import com.doudian.open.api.order_searchList.data.OrderSearchListData;
import com.doudian.open.api.order_searchList.param.OrderSearchListParam;
import com.jinritemai.cloud.base.core.util.AuthThreadLocalUtil;
import com.jinritemai.cloud.base.core.util.LogUtils;
import com.ms.api.bo.ShopBO;
import com.ms.api.queue.ConsumerListener;
import com.ms.api.queue.Group;
import com.ms.api.queue.Topic;
import com.ms.api.queue.message.RsyncOrderMessage;
import com.ms.api.queue.message.RsyncOrderPageMessage;
import com.ms.api.service.RsyncOrderService;
import com.ms.api.service.ShopService;
import com.ms.api.util.DDApi;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext;
import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus;

@ -147,9 +147,9 @@ public class OutstorageServiceImpl implements OutstorageService {
param.setPackList(itemList);
request.setParam(param);
log.error("OrderLogisticsAddMultiPackRequest: " + request);
log.info("OrderLogisticsAddMultiPackRequest: " + request);
OrderLogisticsAddMultiPackResponse response = request.execute();
log.error("OrderLogisticsAddMultiPackResponse: " + response);
log.info("OrderLogisticsAddMultiPackResponse: " + response);
if (!response.isSuccess()) {
// 模拟成功
if (Objects.equals(response.getCode(), "30002") && Objects.equals(response.getSubCode(), "isv.test-order-permissions-insufficient")) {

@ -125,6 +125,9 @@ public class RsyncOrderServiceImpl implements RsyncOrderService {
if (!Arrays.asList(1, 3, 7, 15, 20, 30).contains(rsyncOrderDate)) {
throw new RuntimeException("参数不合法");
}
if (rsyncOrderDate > 7) {
rsyncOrderDate = 7;
}
OpOrderRsyncInfo rsyncInfo = opOrderRsyncInfoMapper.getByShopId(shopId);
Date lastRsyncOrderTime = null;
if (ObjectUtil.isNotNull(rsyncInfo)) {

Loading…
Cancel
Save