|
|
|
@ -39,8 +39,8 @@ public class CustomServiceImpl implements CustomService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void add(String orderId, String mchCustomId, String custom, List<JSONObject> subOrders) {
|
|
|
|
|
CustomReport customReport = new CustomReport(orderId, mchCustomId, custom);
|
|
|
|
|
public void add(String orderId, String mchCustomId, String custom,String mchCustomName, List<JSONObject> subOrders) {
|
|
|
|
|
CustomReport customReport = new CustomReport(orderId, mchCustomId, mchCustomName,custom);
|
|
|
|
|
if (!CollectionUtils.isEmpty(subOrders)) {
|
|
|
|
|
subOrders.forEach(p -> {
|
|
|
|
|
customReport.addSubOrder(p.getBigDecimal("order_fee"), p.getBigDecimal("order_fee").subtract(p.getBigDecimal("transport_fee")));
|
|
|
|
|