Authored by chenchao

add least price of hk prd

@@ -78,6 +78,7 @@ public class SellerOrderViewService { @@ -78,6 +78,7 @@ public class SellerOrderViewService {
78 prdPrice.setSuggestMaxPrice(storage.getSuggestHighPrice()); 78 prdPrice.setSuggestMaxPrice(storage.getSuggestHighPrice());
79 prdPrice.setLeastPrice(storage.getLeastPrice()); 79 prdPrice.setLeastPrice(storage.getLeastPrice());
80 prdPrice.setPreSaleLeastPrice(storage.getPreSaleLeastPrice()); 80 prdPrice.setPreSaleLeastPrice(storage.getPreSaleLeastPrice());
  81 + prdPrice.setHkLeasePrice(storage.getHkLeastPrice());
81 }catch (Exception ex){ 82 }catch (Exception ex){
82 prdPrice = new PrdPrice(); 83 prdPrice = new PrdPrice();
83 logger.warn("in getPrdPrice fail, storageId {}", storageId); 84 logger.warn("in getPrdPrice fail, storageId {}", storageId);
@@ -129,6 +129,7 @@ public class ProductProxyService extends AbsProxyService{ @@ -129,6 +129,7 @@ public class ProductProxyService extends AbsProxyService{
129 PrdPrice prdPrice = PrdPrice.builder() 129 PrdPrice prdPrice = PrdPrice.builder()
130 .leastPrice(storage.getLeastPrice()) 130 .leastPrice(storage.getLeastPrice())
131 .preSaleLeastPrice(storage.getPreSaleLeastPrice()) 131 .preSaleLeastPrice(storage.getPreSaleLeastPrice())
  132 + .hkLeasePrice(storage.getHkLeastPrice())
132 .build(); 133 .build();
133 goodsInfo.setPrdPrice(prdPrice); 134 goodsInfo.setPrdPrice(prdPrice);
134 } 135 }
@@ -168,6 +169,7 @@ public class ProductProxyService extends AbsProxyService{ @@ -168,6 +169,7 @@ public class ProductProxyService extends AbsProxyService{
168 .suggestMinPrice(storage.getSuggestLowPrice()) 169 .suggestMinPrice(storage.getSuggestLowPrice())
169 .leastPrice(storage.getLeastPrice()) 170 .leastPrice(storage.getLeastPrice())
170 .preSaleLeastPrice(storage.getPreSaleLeastPrice()) 171 .preSaleLeastPrice(storage.getPreSaleLeastPrice())
  172 + .hkLeasePrice(storage.getHkLeastPrice())
171 .goodsPaymentRate(productInfo.getSellerServiceFeeRate()) 173 .goodsPaymentRate(productInfo.getSellerServiceFeeRate())
172 .canPublish(productInfo.isSellerCanPublish()) 174 .canPublish(productInfo.isSellerCanPublish())
173 .build(); 175 .build();
@@ -204,11 +206,12 @@ public class ProductProxyService extends AbsProxyService{ @@ -204,11 +206,12 @@ public class ProductProxyService extends AbsProxyService{
204 206
205 public StorageDataResp getStorageData(int storageId){ 207 public StorageDataResp getStorageData(int storageId){
206 StorageDataResp prdResp = null; 208 StorageDataResp prdResp = null;
  209 + final String api = STORAGE_DATA;
207 try { 210 try {
208 - prdResp = ufoServiceCaller.call(STORAGE_DATA, storageId); 211 + prdResp = ufoServiceCaller.call(api, storageId);
209 logger.info("in getStorageData storageId {} prdResp {}", storageId, prdResp); 212 logger.info("in getStorageData storageId {} prdResp {}", storageId, prdResp);
210 }catch (Exception ex){ 213 }catch (Exception ex){
211 - logger.warn("in getStorageData call {} fail, storageId {}", STORAGE_DATA, storageId); 214 + logger.warn("in getStorageData call {} fail, storageId {}", api, storageId);
212 } 215 }
213 return prdResp; 216 return prdResp;
214 } 217 }