Merge branch 'test6.9.16' of http://git.yoho.cn/ufo/yohoufo-fore into test6.9.16
Showing
5 changed files
with
26 additions
and
8 deletions
@@ -9,6 +9,7 @@ import com.yohoufo.order.model.request.PaymentRequest; | @@ -9,6 +9,7 @@ import com.yohoufo.order.model.request.PaymentRequest; | ||
9 | import com.yohoufo.order.service.IPaymentService; | 9 | import com.yohoufo.order.service.IPaymentService; |
10 | import com.yohoufo.order.utils.LoggerUtils; | 10 | import com.yohoufo.order.utils.LoggerUtils; |
11 | import org.slf4j.Logger; | 11 | import org.slf4j.Logger; |
12 | +import org.slf4j.LoggerFactory; | ||
12 | import org.springframework.beans.factory.annotation.Autowired; | 13 | import org.springframework.beans.factory.annotation.Autowired; |
13 | import org.springframework.stereotype.Service; | 14 | import org.springframework.stereotype.Service; |
14 | 15 | ||
@@ -18,7 +19,7 @@ import org.springframework.stereotype.Service; | @@ -18,7 +19,7 @@ import org.springframework.stereotype.Service; | ||
18 | @Service | 19 | @Service |
19 | public class PayRefundService { | 20 | public class PayRefundService { |
20 | 21 | ||
21 | - private static final Logger logger = LoggerUtils.getPayConfirmLogger(); | 22 | + private static final Logger logger = LoggerFactory.getLogger(PayRefundService.class); |
22 | 23 | ||
23 | @Autowired | 24 | @Autowired |
24 | private IPaymentService paymentService; | 25 | private IPaymentService paymentService; |
@@ -66,6 +66,7 @@ import com.yohoufo.order.utils.LoggerUtils; | @@ -66,6 +66,7 @@ import com.yohoufo.order.utils.LoggerUtils; | ||
66 | import com.yohoufo.order.utils.PaymentHelper; | 66 | import com.yohoufo.order.utils.PaymentHelper; |
67 | import org.apache.commons.lang3.StringUtils; | 67 | import org.apache.commons.lang3.StringUtils; |
68 | import org.slf4j.Logger; | 68 | import org.slf4j.Logger; |
69 | +import org.slf4j.LoggerFactory; | ||
69 | import org.springframework.beans.factory.annotation.Autowired; | 70 | import org.springframework.beans.factory.annotation.Autowired; |
70 | import org.springframework.stereotype.Service; | 71 | import org.springframework.stereotype.Service; |
71 | 72 | ||
@@ -97,8 +98,7 @@ public class PaymentServiceImpl implements IPaymentService { | @@ -97,8 +98,7 @@ public class PaymentServiceImpl implements IPaymentService { | ||
97 | } | 98 | } |
98 | } | 99 | } |
99 | 100 | ||
100 | - private static final Logger logger = LoggerUtils.getPayConfirmLogger(); | ||
101 | - | 101 | + private static final Logger logger = LoggerFactory.getLogger(PaymentServiceImpl.class); |
102 | 102 | ||
103 | @Autowired | 103 | @Autowired |
104 | OrderPaymentServiceFactory orderPaymentServiceFactory; | 104 | OrderPaymentServiceFactory orderPaymentServiceFactory; |
@@ -20,9 +20,9 @@ public class LoggerUtils { | @@ -20,9 +20,9 @@ public class LoggerUtils { | ||
20 | return buildByName("mqProducerLog"); | 20 | return buildByName("mqProducerLog"); |
21 | } | 21 | } |
22 | 22 | ||
23 | - public static Logger getPayConfirmLogger(){ | ||
24 | - return buildByName("payConfirmLog"); | ||
25 | - } | 23 | +// public static Logger getPayConfirmLogger(){ |
24 | +// return buildByName("payConfirmLog"); | ||
25 | +// } | ||
26 | 26 | ||
27 | public static Logger getSellerOrderLogger(){ | 27 | public static Logger getSellerOrderLogger(){ |
28 | return buildByName("sellerOrderLog"); | 28 | return buildByName("sellerOrderLog"); |
@@ -16,7 +16,7 @@ public final class SearchConstants { | @@ -16,7 +16,7 @@ public final class SearchConstants { | ||
16 | */ | 16 | */ |
17 | String PRODUCT_ID = "id"; | 17 | String PRODUCT_ID = "id"; |
18 | 18 | ||
19 | - String PRODUCT_ID_FILTER = "isIdFilter"; | 19 | + String PRODUCT_ID_FILTER = "isIdFilter"; // 搜索不支持此参数,UFO内部使用 |
20 | 20 | ||
21 | 21 | ||
22 | /** | 22 | /** |
@@ -99,6 +99,23 @@ public final class SearchConstants { | @@ -99,6 +99,23 @@ public final class SearchConstants { | ||
99 | 99 | ||
100 | String EXCLUDE_LIMIT = "isFilterLimitSale"; | 100 | String EXCLUDE_LIMIT = "isFilterLimitSale"; |
101 | 101 | ||
102 | + | ||
103 | + String showChannel = "showChannel"; | ||
102 | } | 104 | } |
103 | 105 | ||
106 | + | ||
107 | + public enum ShowChannelEnum { | ||
108 | + SHOW_CHANNEL_UFO(0, "ufo有货商城"), | ||
109 | + SHOW_CHANNEL_XIANYU(1, "闲鱼商城") | ||
110 | + ; | ||
111 | + | ||
112 | + private Integer value; | ||
113 | + | ||
114 | + private String desc; | ||
115 | + | ||
116 | + ShowChannelEnum(Integer value, String desc){ | ||
117 | + this.value = value; | ||
118 | + this.desc = desc; | ||
119 | + } | ||
120 | + } | ||
104 | } | 121 | } |
@@ -226,7 +226,7 @@ public class ProductSearchReq { | @@ -226,7 +226,7 @@ public class ProductSearchReq { | ||
226 | } | 226 | } |
227 | 227 | ||
228 | public ProductSearchReq setIsIdFilter(Integer type) { | 228 | public ProductSearchReq setIsIdFilter(Integer type) { |
229 | - if (type != null && type.equals(Integer.valueOf(7))) { | 229 | + if (type != null && type.equals(Integer.valueOf(7))) { // 收藏,根据商品列表查询商品列表 |
230 | this.isIdFilter = "Y"; | 230 | this.isIdFilter = "Y"; |
231 | } | 231 | } |
232 | return this; | 232 | return this; |
-
Please register or login to post a comment