Authored by unknown

fix

... ... @@ -41,6 +41,7 @@ public class CacheCleaner {
*/
public void delete(List<RedisKeyBuilder> keyBuilders) {
try {
logger.info("delete keys {}", keyBuilders);
redis.delete(keyBuilders);
} catch (Exception ex) {
logger.warn("call redis delete error,key is {}", keyBuilders, ex);
... ...
... ... @@ -218,8 +218,8 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi
throw new ServiceException(ServiceError.EARNESTMONEY_ORDER_CREATE_FAIL);
}
boolean syncPrdFlag = productProxyService.syncSkup(context.getSellerOrderGoods(), SkupStatus.CAN_NOT_SELL);
log.info("publish finish, syncPrdFlag {}, req {}, orderCode {}", syncPrdFlag, req, orderCode);
boolean syncPrdFlag = productProxyService.syncFullSkup(context.getSellerOrderGoods(), SkupStatus.CAN_NOT_SELL);
log.info("publish finish, syncFullSkup {}, req {}, orderCode {}", syncPrdFlag, req, orderCode);
//发布支付超时取消消息
pushAutoCancelEvent(context);
... ...
... ... @@ -101,7 +101,19 @@ public class ProductProxyService {
return apiResponse;
}
public boolean syncFullSkup(SellerOrderGoods goods, SkupStatus skupStatus){
boolean result = false;
switch (skupStatus){
//一开始未支付时调用
case CAN_NOT_SELL:
result = doSyncSkup(goods, skupStatus);
break;
default:
logger.warn("no no no crazy");
break;
}
return result;
}
/**
* 1:可售(支付保证金),2:取消支付保证金,3:超时未支付保证金,4:支付保证金后取消售卖
* @param goods
... ... @@ -116,8 +128,9 @@ public class ProductProxyService {
switch (skupStatus){
//一开始未支付时调用
case CAN_NOT_SELL:
result = doSyncSkup(goods, skupStatus);
return result;
//result = doSyncSkup(goods, skupStatus);
logger.warn("god cannot save a bad brain");
break;
case CAN_SELL:
status = 1;
break;
... ...