|
|
@@ -361,7 +361,7 @@ public class ChinaumsSenselessPayService extends SuperService {
|
|
|
satInfo.setMerId(orgConf.getMchId());
|
|
|
satInfo.setFeeBear("Y");
|
|
|
//TODO 分账计算方式 :按比例计算 保留整数,然后随机一个机构+1
|
|
|
- BigDecimal ratioTotal = total.multiply(model.getRatio().movePointLeft(2)).setScale(0, RoundingMode.HALF_UP);
|
|
|
+ BigDecimal ratioTotal = total.multiply(model.getRatio().movePointLeft(2)).setScale(0, RoundingMode.FLOOR);
|
|
|
|
|
|
satInfo.setSatAmt(ratioTotal.toBigInteger().toString());
|
|
|
satInfo.setMerOrderId(shareOrderNo);
|