|
|
@@ -294,7 +294,7 @@ public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartMapper, PjS
|
|
|
order.setTotalMoney(totalMoney);
|
|
|
|
|
|
if (order.getGoodsTotalNum().compareTo(new BigDecimal(1)) == 0) {
|
|
|
- String freight = sysClient.getParamService("freight");
|
|
|
+ String freight = sysClient.getParamServiceDWT("freight",finalCorpsDesc.getTenantId());
|
|
|
if (ObjectUtils.isNotNull(freight)) {
|
|
|
try {
|
|
|
BigDecimal freightAmount = new BigDecimal(freight);
|
|
|
@@ -309,7 +309,7 @@ public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartMapper, PjS
|
|
|
order.setTotalMoney(totalMoney);
|
|
|
order.setFreight(new BigDecimal(5));*/
|
|
|
}
|
|
|
- amount = amount.add(totalMoney);
|
|
|
+ amount = amount.add(order.getTotalMoney());
|
|
|
// order.setPaymentAmountTl(totalMoney);
|
|
|
order.setSharedCompanyId(shoppingCartList.get(0).getSharedCompanyId());
|
|
|
order.setSharedCompanyName(shoppingCartList.get(0).getSharedCompanyName());
|
|
|
@@ -491,7 +491,7 @@ public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartMapper, PjS
|
|
|
order.setTotalMoney(totalMoney);
|
|
|
|
|
|
if (order.getGoodsTotalNum().compareTo(new BigDecimal(1)) == 0) {
|
|
|
- String freight = sysClient.getParamService("freight");
|
|
|
+ String freight = sysClient.getParamServiceDWT("freight",finalCorpsDesc.getTenantId());
|
|
|
if (ObjectUtils.isNotNull(freight)) {
|
|
|
try {
|
|
|
BigDecimal freightAmount = new BigDecimal(freight);
|
|
|
@@ -506,7 +506,7 @@ public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartMapper, PjS
|
|
|
order.setTotalMoney(totalMoney);
|
|
|
order.setFreight(new BigDecimal(5));*/
|
|
|
}
|
|
|
- amount = amount.add(totalMoney);
|
|
|
+ amount = amount.add(order.getTotalMoney());
|
|
|
order.setSharedCompanyId(shoppingCartList.get(0).getSharedCompanyId());
|
|
|
order.setSharedCompanyName(shoppingCartList.get(0).getSharedCompanyName());
|
|
|
}
|
|
|
@@ -693,7 +693,7 @@ public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartMapper, PjS
|
|
|
order.setTotalMoney(totalMoney);
|
|
|
|
|
|
if (order.getGoodsTotalNum().compareTo(new BigDecimal(1)) == 0) {
|
|
|
- String freight = sysClient.getParamService("freight");
|
|
|
+ String freight = sysClient.getParamServiceDWT("freight",finalCorpsDesc.getTenantId());
|
|
|
if (ObjectUtils.isNotNull(freight)) {
|
|
|
try {
|
|
|
BigDecimal freightAmount = new BigDecimal(freight);
|
|
|
@@ -708,7 +708,7 @@ public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartMapper, PjS
|
|
|
order.setTotalMoney(totalMoney);
|
|
|
order.setFreight(new BigDecimal(5));*/
|
|
|
}
|
|
|
- amount = amount.add(totalMoney);
|
|
|
+ amount = amount.add(order.getTotalMoney());
|
|
|
order.setPaymentDate(new Date());
|
|
|
order.setActualPaymentStatus(1);
|
|
|
order.setPaymentAmountTl(totalMoney);
|