Authored by unknown

fix

@@ -41,6 +41,7 @@ public class CacheCleaner { @@ -41,6 +41,7 @@ public class CacheCleaner {
41 */ 41 */
42 public void delete(List<RedisKeyBuilder> keyBuilders) { 42 public void delete(List<RedisKeyBuilder> keyBuilders) {
43 try { 43 try {
  44 + logger.info("delete keys {}", keyBuilders);
44 redis.delete(keyBuilders); 45 redis.delete(keyBuilders);
45 } catch (Exception ex) { 46 } catch (Exception ex) {
46 logger.warn("call redis delete error,key is {}", keyBuilders, ex); 47 logger.warn("call redis delete error,key is {}", keyBuilders, ex);
@@ -218,8 +218,8 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi @@ -218,8 +218,8 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi
218 throw new ServiceException(ServiceError.EARNESTMONEY_ORDER_CREATE_FAIL); 218 throw new ServiceException(ServiceError.EARNESTMONEY_ORDER_CREATE_FAIL);
219 } 219 }
220 220
221 - boolean syncPrdFlag = productProxyService.syncSkup(context.getSellerOrderGoods(), SkupStatus.CAN_NOT_SELL);  
222 - log.info("publish finish, syncPrdFlag {}, req {}, orderCode {}", syncPrdFlag, req, orderCode); 221 + boolean syncPrdFlag = productProxyService.syncFullSkup(context.getSellerOrderGoods(), SkupStatus.CAN_NOT_SELL);
  222 + log.info("publish finish, syncFullSkup {}, req {}, orderCode {}", syncPrdFlag, req, orderCode);
223 //发布支付超时取消消息 223 //发布支付超时取消消息
224 pushAutoCancelEvent(context); 224 pushAutoCancelEvent(context);
225 225
@@ -101,7 +101,19 @@ public class ProductProxyService { @@ -101,7 +101,19 @@ public class ProductProxyService {
101 101
102 return apiResponse; 102 return apiResponse;
103 } 103 }
104 - 104 + public boolean syncFullSkup(SellerOrderGoods goods, SkupStatus skupStatus){
  105 + boolean result = false;
  106 + switch (skupStatus){
  107 + //一开始未支付时调用
  108 + case CAN_NOT_SELL:
  109 + result = doSyncSkup(goods, skupStatus);
  110 + break;
  111 + default:
  112 + logger.warn("no no no crazy");
  113 + break;
  114 + }
  115 + return result;
  116 + }
105 /** 117 /**
106 * 1:可售(支付保证金),2:取消支付保证金,3:超时未支付保证金,4:支付保证金后取消售卖 118 * 1:可售(支付保证金),2:取消支付保证金,3:超时未支付保证金,4:支付保证金后取消售卖
107 * @param goods 119 * @param goods
@@ -116,8 +128,9 @@ public class ProductProxyService { @@ -116,8 +128,9 @@ public class ProductProxyService {
116 switch (skupStatus){ 128 switch (skupStatus){
117 //一开始未支付时调用 129 //一开始未支付时调用
118 case CAN_NOT_SELL: 130 case CAN_NOT_SELL:
119 - result = doSyncSkup(goods, skupStatus);  
120 - return result; 131 + //result = doSyncSkup(goods, skupStatus);
  132 + logger.warn("god cannot save a bad brain");
  133 + break;
121 case CAN_SELL: 134 case CAN_SELL:
122 status = 1; 135 status = 1;
123 break; 136 break;