|
@@ -249,7 +249,7 @@ public class CmPayShopService extends CrudService<CmPayShopDao, CmPayShop> {
|
|
|
p.setDiscountPrice(MathUtil.div(p.getDiscountPrice(), MathUtil.div(MathUtil.add(p.getTaxRate(), 100), 100)).doubleValue());
|
|
|
}
|
|
|
// 付采美总金额
|
|
|
- allServeAmount =MathUtil.add(allServeAmount , MathUtil.mul(p.getNum(), p.getCmCostPrice())).doubleValue();
|
|
|
+ allServeAmount = MathUtil.add(allServeAmount, MathUtil.mul(p.getNum(), p.getCmCostPrice())).doubleValue();
|
|
|
}
|
|
|
so.setAllServeAmount(allServeAmount);
|
|
|
so.setNewOrderProducts(orderProductList);
|
|
@@ -400,7 +400,7 @@ public class CmPayShopService extends CrudService<CmPayShopDao, CmPayShop> {
|
|
|
p.setDiscountPrice(MathUtil.div(p.getDiscountPrice(), MathUtil.div(MathUtil.add(p.getTaxRate(), 100), 100)).doubleValue());
|
|
|
}
|
|
|
// 付采美总金额
|
|
|
- allServeAmount =MathUtil.add(allServeAmount , MathUtil.mul(p.getNum(), p.getCmCostPrice())).doubleValue();
|
|
|
+ allServeAmount = MathUtil.add(allServeAmount, MathUtil.mul(p.getNum(), p.getCmCostPrice())).doubleValue();
|
|
|
}
|
|
|
so.setAllServeAmount(allServeAmount);
|
|
|
if (so.getShopPostFee() == null) so.setShopPostFee(0D);
|
|
@@ -993,15 +993,17 @@ public class CmPayShopService extends CrudService<CmPayShopDao, CmPayShop> {
|
|
|
CmPayShop payShop = new CmPayShop();
|
|
|
payShop.setShopID(shopOrder.getShopID().toString());
|
|
|
payShop.setName(payShopOther.getName());
|
|
|
- if (2 != payShopOther.getPayType()) {
|
|
|
+ String status = "0";
|
|
|
+ if (null != payShopOther.getPayType() && 2 == payShopOther.getPayType()) {
|
|
|
+ String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
|
|
+ payShop.setApplyTime(format);
|
|
|
+ payShop.setReviewTime(format);
|
|
|
+ status = "1";
|
|
|
+ } else {
|
|
|
payShop.setBankAccountName(payShopOther.getBankAccountName());
|
|
|
payShop.setBankAccount(payShopOther.getBankAccount());
|
|
|
payShop.setBankName(payShopOther.getBankName());
|
|
|
payShop.setType(payShopOther.getType().toString());
|
|
|
- } else {
|
|
|
- String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
|
|
- payShop.setApplyTime(format);
|
|
|
- payShop.setReviewTime(format);
|
|
|
}
|
|
|
payShop.setTotalAmount(payShopOther.getShopOtherFee().doubleValue());
|
|
|
payShop.setBalancePayFee(0d);
|
|
@@ -1009,7 +1011,6 @@ public class CmPayShopService extends CrudService<CmPayShopDao, CmPayShop> {
|
|
|
payShop.setWipePayment(0d);
|
|
|
payShop.setApplicant(currentUser.getId());
|
|
|
payShop.setApplyTime(time);
|
|
|
- String status = 2 == payShopOther.getPayType() ? "1" : "0";
|
|
|
payShop.setStatus(status);
|
|
|
payShop.setDelFlag("0");
|
|
|
if (payShopOther.getPayShopId() == null) {
|
|
@@ -1393,10 +1394,10 @@ public class CmPayShopService extends CrudService<CmPayShopDao, CmPayShop> {
|
|
|
// //成本>结算金额,部分结算
|
|
|
// newOrderDao.updateShopOrderSettleStatus(shopOrderId, 2);
|
|
|
// } else {
|
|
|
- //成本=结算金额 全部结算
|
|
|
- newOrderDao.updateShopOrderSettleStatus(shopOrderId, 3);
|
|
|
+ //成本=结算金额 全部结算
|
|
|
+ newOrderDao.updateShopOrderSettleStatus(shopOrderId, 3);
|
|
|
// }
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
//佣金结算
|
|
|
settleRecord.setSettleType(settleFlag);
|
|
|
settleRecord.setSettleAmount(settleAmount);
|