Authored by mali

Merge branch 'test6.9.10' of http://git.yoho.cn/ufo/yohoufo-fore into test6.9.10

@@ -12,4 +12,15 @@ public interface SellerConfig { @@ -12,4 +12,15 @@ public interface SellerConfig {
12 String DELIVER2DEPOTTIPS4DEPOSITGOODS = "此商品买家选择寄存在UFO仓库,所以需要您将该商品发送至UFO南京鉴定中心"; 12 String DELIVER2DEPOTTIPS4DEPOSITGOODS = "此商品买家选择寄存在UFO仓库,所以需要您将该商品发送至UFO南京鉴定中心";
13 13
14 String FORCENOTICE_ADDRESS_TITLE = "发货地址提醒"; 14 String FORCENOTICE_ADDRESS_TITLE = "发货地址提醒";
  15 +
  16 + interface DeliverDesc{
  17 + String SELLER_DEPOSIT_ORDER =
  18 + "1.36小时内需填写运单号,填写后24小时内需有物流信息信息,否则视为未发货或虚假发货;同时该笔寄售订单将被关闭,保证金将原路退还。累计3次未发货或者虚假发货,平台有权对卖家账号进行处理。\n" +
  19 + "2.仅支持顺丰寄付,并填写正确的运单号。如因填写错误或者虚假发货导致包裹丢失,平台不负责丢失包裹赔偿;不支持子母单发货,平台有权拒收所有商品。\n" +
  20 + "3.每件商品建议卖家绑定自有掉包扣,确保寄出商品与实际商品一致。\n" +
  21 + "4.球鞋类商品进行加固包装,若直接套袋邮寄将做拒收处理。若商品不符合平台验收标准,将被顺丰到付寄回。";
  22 + String COMMON = "1.请使用顺丰速运发货,平台有权拒收非顺丰速运及顺丰到货的快递,请慎重发货\n" +
  23 + "2.未按照《UFO卖家商品质检标准》发货,UFO有权取消订单并扣除保证金赔偿给买家";
  24 + }
  25 +
15 } 26 }
@@ -49,6 +49,10 @@ public class AppraiseAddressResp { @@ -49,6 +49,10 @@ public class AppraiseAddressResp {
49 @Setter 49 @Setter
50 private String tips; 50 private String tips;
51 51
  52 + @Getter
  53 + @Setter
  54 + private String deliverDesc;
  55 +
52 public Integer getType() { 56 public Integer getType() {
53 return type; 57 return type;
54 } 58 }
@@ -100,10 +100,6 @@ public class SellerEnterTypeChangeEventHandler implements IEventHandler<SellerEn @@ -100,10 +100,6 @@ public class SellerEnterTypeChangeEventHandler implements IEventHandler<SellerEn
100 //处理下个周期的数据 100 //处理下个周期的数据
101 nextPeriodUpdate(sellerUid, entrySellerType, 0, configuration); 101 nextPeriodUpdate(sellerUid, entrySellerType, 0, configuration);
102 }); 102 });
103 -  
104 - configurations.forEach(configuration -> {  
105 -  
106 - });  
107 } 103 }
108 104
109 private void nextPeriodUpdate(int sellerUid, EntrySellerType entrySellerType, Integer quantity, SellerOrderStatsConfiguration configuration) { 105 private void nextPeriodUpdate(int sellerUid, EntrySellerType entrySellerType, Integer quantity, SellerOrderStatsConfiguration configuration) {
@@ -775,7 +775,7 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { @@ -775,7 +775,7 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
775 775
776 /** 776 /**
777 * 根据状态获取物流类型 777 * 根据状态获取物流类型
778 - * @param status 778 + * @param appraiseOrder
779 * @return 779 * @return
780 */ 780 */
781 private List<Integer> getAppraiseExpressType(AppraiseOrder appraiseOrder) { 781 private List<Integer> getAppraiseExpressType(AppraiseOrder appraiseOrder) {
@@ -1347,12 +1347,15 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { @@ -1347,12 +1347,15 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
1347 throwServiceException(400, "订单类型错误"); 1347 throwServiceException(400, "订单类型错误");
1348 } 1348 }
1349 resp = appraiseAddressService.findByDepotType(depotType.getCode()); 1349 resp = appraiseAddressService.findByDepotType(depotType.getCode());
  1350 + resp.setDeliverDesc(SellerConfig.DeliverDesc.SELLER_DEPOSIT_ORDER);
1350 return resp; 1351 return resp;
1351 } 1352 }
1352 1353
1353 1354
1354 if (isHKLargeSettlementSuper(uid)) { 1355 if (isHKLargeSettlementSuper(uid)) {
1355 - return appraiseAddressService.queryHKAppraiseAddress(); 1356 + resp = appraiseAddressService.queryHKAppraiseAddress();
  1357 + resp.setDeliverDesc(SellerConfig.DeliverDesc.COMMON);
  1358 + return resp;
1356 } 1359 }
1357 1360
1358 1361
@@ -1360,7 +1363,9 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { @@ -1360,7 +1363,9 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
1360 boolean orderCodeIsNull = (null == orderCode); 1363 boolean orderCodeIsNull = (null == orderCode);
1361 if (skupIsNull && orderCodeIsNull) { 1364 if (skupIsNull && orderCodeIsNull) {
1362 LOGGER.warn("queryAppraiseAddress can not save back, all key info are null, uid {}", uid); 1365 LOGGER.warn("queryAppraiseAddress can not save back, all key info are null, uid {}", uid);
1363 - return appraiseAddressService.queryInitAddress(); 1366 + resp = appraiseAddressService.queryInitAddress();
  1367 + resp.setDeliverDesc(SellerConfig.DeliverDesc.COMMON);
  1368 + return resp;
1364 } 1369 }
1365 1370
1366 //寄存订单 1371 //寄存订单
@@ -1368,12 +1373,13 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { @@ -1368,12 +1373,13 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
1368 //防止较早版本出错 1373 //防止较早版本出错
1369 if (Objects.nonNull(buyerOrder)) { 1374 if (Objects.nonNull(buyerOrder)) {
1370 if (OrderAttributes.DEPOSITE.getCode() == buyerOrder.getAttributes()) { 1375 if (OrderAttributes.DEPOSITE.getCode() == buyerOrder.getAttributes()) {
1371 - return appraiseAddressService.findByDepotType(DepotType.NJ.getCode()); 1376 + resp = appraiseAddressService.findByDepotType(DepotType.NJ.getCode());
  1377 + resp.setDeliverDesc(SellerConfig.DeliverDesc.COMMON);
  1378 + return resp;
1372 } 1379 }
1373 } 1380 }
1374 1381
1375 AddressInfo buyerAddress = findSellerAddressInfo(uid, skup); 1382 AddressInfo buyerAddress = findSellerAddressInfo(uid, skup);
1376 -  
1377 LOGGER.info("in queryAppraiseAddress get Address {} orderCode {}, skup {}", buyerAddress, orderCode, skup); 1383 LOGGER.info("in queryAppraiseAddress get Address {} orderCode {}, skup {}", buyerAddress, orderCode, skup);
1378 1384
1379 // 根据用户id查询默认地址的省份 1385 // 根据用户id查询默认地址的省份
@@ -1382,7 +1388,9 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { @@ -1382,7 +1388,9 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
1382 resp = appraiseAddressService.queryAddressByAreaCode(buyerAddress.getAreaCode()); 1388 resp = appraiseAddressService.queryAddressByAreaCode(buyerAddress.getAreaCode());
1383 } 1389 }
1384 // 匹配不了,给个娄底的 1390 // 匹配不了,给个娄底的
1385 - return resp == null ? appraiseAddressService.queryInitAddress() : resp; 1391 + resp = resp == null ? appraiseAddressService.queryInitAddress() : resp;
  1392 + resp.setDeliverDesc(SellerConfig.DeliverDesc.COMMON);
  1393 + return resp;
1386 } 1394 }
1387 1395
1388 /** 1396 /**
@@ -10,10 +10,7 @@ import com.yohobuy.ufo.model.order.constants.DepotType; @@ -10,10 +10,7 @@ import com.yohobuy.ufo.model.order.constants.DepotType;
10 import com.yohobuy.ufo.model.order.constants.SkupType; 10 import com.yohobuy.ufo.model.order.constants.SkupType;
11 import com.yohobuy.ufo.model.order.req.SellerDepositOrderDetailReq; 11 import com.yohobuy.ufo.model.order.req.SellerDepositOrderDetailReq;
12 import com.yohobuy.ufo.model.order.req.SellerDepositOrderPrdListReq; 12 import com.yohobuy.ufo.model.order.req.SellerDepositOrderPrdListReq;
13 -import com.yohobuy.ufo.model.order.resp.AppraiseAddressInfo;  
14 -import com.yohobuy.ufo.model.order.resp.OrderDetailInfo;  
15 -import com.yohobuy.ufo.model.order.resp.PageResp;  
16 -import com.yohobuy.ufo.model.order.resp.SellerDepositOrderDetailResp; 13 +import com.yohobuy.ufo.model.order.resp.*;
17 import com.yohobuy.ufo.model.order.vo.AddressInfo; 14 import com.yohobuy.ufo.model.order.vo.AddressInfo;
18 import com.yohobuy.ufo.model.order.vo.ProductVo; 15 import com.yohobuy.ufo.model.order.vo.ProductVo;
19 import com.yohoufo.common.utils.BigDecimalHelper; 16 import com.yohoufo.common.utils.BigDecimalHelper;
@@ -33,6 +30,7 @@ import org.springframework.beans.factory.annotation.Autowired; @@ -33,6 +30,7 @@ import org.springframework.beans.factory.annotation.Autowired;
33 import org.springframework.stereotype.Service; 30 import org.springframework.stereotype.Service;
34 31
35 import java.util.List; 32 import java.util.List;
  33 +import java.util.Objects;
36 34
37 @Service 35 @Service
38 public class SellerDepositOrderDetailService extends AbsOrderViewService { 36 public class SellerDepositOrderDetailService extends AbsOrderViewService {
@@ -96,14 +94,15 @@ public class SellerDepositOrderDetailService extends AbsOrderViewService { @@ -96,14 +94,15 @@ public class SellerDepositOrderDetailService extends AbsOrderViewService {
96 // 94 //
97 TimeoutBo timeout = calTimeout(TabType.BUY, uid, orderCode, pao.getStatus(), 95 TimeoutBo timeout = calTimeout(TabType.BUY, uid, orderCode, pao.getStatus(),
98 pao.getCreateTime(), oa); 96 pao.getCreateTime(), oa);
99 - boolean expressShow = showEXpressInfoStatusList.contains(pao.getStatus()); 97 +
  98 + ExpressInfoDetail lastExpressInfoDetail = expressInfoService.getLastExpressInfoDetail(pao);
100 // 99 //
101 AppraiseOrderStatus aos = AppraiseOrderStatus.getByCode(pao.getStatus()); 100 AppraiseOrderStatus aos = AppraiseOrderStatus.getByCode(pao.getStatus());
102 OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail 101 OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail
103 .builder() 102 .builder()
104 .statuStr(aos.statusStr(oa)) 103 .statuStr(aos.statusStr(oa))
105 .detailDesc(aos.detailDesc(oa)) 104 .detailDesc(aos.detailDesc(oa))
106 - .expressShow(expressShow) 105 + .expressShow(Objects.isNull(lastExpressInfoDetail) ? false : true)
107 .build(); 106 .build();
108 // 107 //
109 AppraiseAddressInfo appraiseAddressInfo = null; 108 AppraiseAddressInfo appraiseAddressInfo = null;
@@ -137,7 +136,7 @@ public class SellerDepositOrderDetailService extends AbsOrderViewService { @@ -137,7 +136,7 @@ public class SellerDepositOrderDetailService extends AbsOrderViewService {
137 .appraiseAddress(appraiseAddressInfo) 136 .appraiseAddress(appraiseAddressInfo)
138 .addressUpgradable(addressUpgradable) 137 .addressUpgradable(addressUpgradable)
139 .buttons(aos.detailButtons(oa)) 138 .buttons(aos.detailButtons(oa))
140 - .lastExpressInfoDetail(expressInfoService.getLastExpressInfoDetail(pao)) 139 + .lastExpressInfoDetail(lastExpressInfoDetail)
141 .appraiseProgress(orderStatisticInfo) 140 .appraiseProgress(orderStatisticInfo)
142 .build() 141 .build()
143 ; 142 ;