简化实体代码
This commit is contained in:
+2
-1
@@ -69,7 +69,7 @@ public class TmsPriceQuoteServiceImpl implements ITmsPriceQuoteService
|
||||
Date bizDate = resolveBizDate(request.getBizDate());
|
||||
|
||||
BmsProductCountry base = productCountryMapper.selectMatchByProductCountryWeight(
|
||||
productCode, countryCode, countryName, weight);
|
||||
productCode, countryCode, countryName, weight, bizDate);
|
||||
if (base == null)
|
||||
{
|
||||
throw new ServiceException("PRICE_NOT_HIT: no bms_product_country band for product/country/weight");
|
||||
@@ -243,6 +243,7 @@ public class TmsPriceQuoteServiceImpl implements ITmsPriceQuoteService
|
||||
r.setWeightLabel(formatWeightLabel(base.getWeightMin(), base.getWeightMax()));
|
||||
r.setWeight(weight);
|
||||
r.setChargeWeight(weight);
|
||||
r.setEffectiveDate(base.getEffectiveDate());
|
||||
r.setFreightRate(freightRate);
|
||||
r.setBaseFreightRate(baseFreightRate);
|
||||
r.setDiscountPercent(discountPercent);
|
||||
|
||||
Reference in New Issue
Block a user