Authored by chenchao

fix format

... ... @@ -83,7 +83,6 @@ public class SellerFeeService {
*/
public BigDecimal computeBuyerCompensate(int skup){
logger.info("in compute Buyer Compensate skup {}", skup);
long orderCode;
if(skup <= 0){
return null;
}
... ... @@ -97,7 +96,7 @@ public class SellerFeeService {
ServiceFeeRate serviceFeeRate = computeResult.getServiceFeeRate();
EarnestMoney earnestMoney = computeResult.getEarnestMoney();
BigDecimal compensate = earnestMoney.getEarnestMoney().subtract(earnestMoney.getEarnestMoney().multiply(serviceFeeRate.getEarnestMoneyRate()));
return compensate;
return compensate.setScale(2,BigDecimal.ROUND_HALF_UP);
} catch (Exception ex){
logger.warn("in computeCompensate by skup {} occur error", skup, ex);
return null;
... ...