|
@@ -11,6 +11,7 @@ import com.wechat.pay.java.service.billdownload.model.BillType;
|
|
|
import com.yiqi.app.domain.AppUserBillMstr;
|
|
|
import com.yiqi.app.service.IAppUserBillMstrService;
|
|
|
import com.yiqi.common.enums.*;
|
|
|
+import com.yiqi.common.exception.ServiceException;
|
|
|
import com.yiqi.common.utils.CurrencyUtil;
|
|
|
import com.yiqi.common.utils.DateUtils;
|
|
|
import com.yiqi.core.domain.SettlementManageFactory;
|
|
@@ -111,7 +112,7 @@ public class SettlementManageBillServiceImpl extends ServiceImpl<SettlementManag
|
|
|
settlementManageBill.setEndTime(endTime);
|
|
|
settlementManageBill.setTitle(settlementBillAddDTO.getTitle());
|
|
|
settlementManageBill.buildCreateData();
|
|
|
- settlementManageBill.setStatus(SettlementBillStatusType.COUNT.getCode());
|
|
|
+ settlementManageBill.setStatus(SettlementBillStatusType.WAITING.getCode());
|
|
|
settlementManageBill.setDelFlag(StatusType.OK.getCode());
|
|
|
this.save(settlementManageBill);
|
|
|
return settlementManageBill;
|
|
@@ -132,14 +133,7 @@ public class SettlementManageBillServiceImpl extends ServiceImpl<SettlementManag
|
|
|
}
|
|
|
|
|
|
for (ManageFactory factory : factoryList) {
|
|
|
- //查询衣服订单,入场时间在上个月的,切没有撤销的衣服
|
|
|
- List<OrderClothItem> orderClothItemList = orderClothItemService.list(new QueryWrapper<OrderClothItem>().lambda()
|
|
|
- .ne(OrderClothItem::getFlowStatus, ClothOrderFlowStatus.refund.getCode())
|
|
|
- .eq(OrderClothItem::getFactoryId, factory.getId())
|
|
|
- .ge(OrderClothItem::getCreateTime, settlementManageBill.getBeginTime())
|
|
|
- .ge(OrderClothItem::getInFactoryTime, settlementManageBill.getBeginTime())
|
|
|
- .lt(OrderClothItem::getInFactoryTime, DateUtils.addDays(settlementManageBill.getEndTime(), 1)));
|
|
|
- this.buildFactorySettlement(settlementManageBill, factory, orderClothItemList);
|
|
|
+ this.buildFactorySettlement(settlementManageBill, factory);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -195,6 +189,42 @@ public class SettlementManageBillServiceImpl extends ServiceImpl<SettlementManag
|
|
|
return saveStatisticsResult(storeId, startTime, endTime, clothStats, goodsStats, paymentStats);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public StoreBillStatistics platformBillSettlement(Date startTime, Date endTime) {
|
|
|
+ // 1. 查询洗衣订单
|
|
|
+ List<OrderCloth> orderClothList = new ArrayList<>();
|
|
|
+
|
|
|
+ // 2. 查询商品订单
|
|
|
+ List<OrderGoods> orderGoodsList = orderGoodsService.list(new QueryWrapper<OrderGoods>().lambda()
|
|
|
+ .ne(OrderGoods::getOrderStatus, OrderGoodsStatusType.CANCEL_ORDER.getCode())
|
|
|
+ .eq(OrderGoods::getSourceType, SourceType.MANAGER.getCode())
|
|
|
+ .isNull(OrderGoods::getOrgId)
|
|
|
+ .between(OrderGoods::getCreateTime, startTime, endTime));
|
|
|
+
|
|
|
+ // 3. 查询衣服退款记录
|
|
|
+ List<OrderClothRefund> clothRefundList = new ArrayList<>();
|
|
|
+
|
|
|
+ // 4. 查询商品退款记录
|
|
|
+ List<OrderGoodsRefund> goodsRefundList = orderGoodsRefundService.list(new QueryWrapper<OrderGoodsRefund>().lambda()
|
|
|
+ .isNull(OrderGoodsRefund::getOrgId)
|
|
|
+ .eq(OrderGoodsRefund::getSourceType, SourceType.MANAGER.getCode())
|
|
|
+ .eq(OrderGoodsRefund::getRefundStatus, OrderRefundStatus.REFUND_SUCCESS.getCode())
|
|
|
+ .between(OrderGoodsRefund::getRefundTime, startTime, endTime));
|
|
|
+
|
|
|
+ // 5. 统计洗衣订单数据
|
|
|
+ OrderStatisticsVO clothStats = calculateClothOrderStats(orderClothList, clothRefundList);
|
|
|
+
|
|
|
+ // 6. 统计商品订单数据
|
|
|
+ OrderStatisticsVO goodsStats = calculateGoodsOrderStats(orderGoodsList, goodsRefundList);
|
|
|
+
|
|
|
+ // 7. 汇总支付方式统计
|
|
|
+ PaymentStatisticsVO paymentStats = calculatePaymentStats(clothStats, goodsStats);
|
|
|
+
|
|
|
+ // 8. 保存统计结果
|
|
|
+ return saveStatisticsResult(0L, startTime, endTime, clothStats, goodsStats, paymentStats);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 计算洗衣订单统计数据
|
|
|
*/
|
|
@@ -204,6 +234,12 @@ public class SettlementManageBillServiceImpl extends ServiceImpl<SettlementManag
|
|
|
stats.setTransactionRefundAmount(BigDecimal.ZERO);
|
|
|
// 1. 订单数量统计
|
|
|
stats.setOrderCount(orderList.size());
|
|
|
+ stats.setGoodsCount(
|
|
|
+ orderList.stream()
|
|
|
+ .map(OrderCloth::getOrderClothCount)
|
|
|
+ .filter(Objects::nonNull)
|
|
|
+ .reduce(0, Integer::sum)
|
|
|
+ );
|
|
|
// 2. 交易订单数量统计
|
|
|
stats.setTransactionCount(orderList.stream()
|
|
|
.filter(order -> PayStatus.HAS_PAY.getCode().equals(order.getOrderStatus()))
|
|
@@ -261,6 +297,12 @@ public class SettlementManageBillServiceImpl extends ServiceImpl<SettlementManag
|
|
|
stats.setTransactionCount(orderList.stream()
|
|
|
.filter(order -> PayStatus.HAS_PAY.getCode().equals(order.getPayStatus()))
|
|
|
.count());
|
|
|
+// stats.setGoodsCount(
|
|
|
+// orderList.stream()
|
|
|
+// .map(OrderGoods::get)
|
|
|
+// .filter(Objects::nonNull)
|
|
|
+// .reduce(0, Integer::sum)
|
|
|
+// );
|
|
|
|
|
|
// 2. 订单金额统计
|
|
|
BigDecimal totalAmount = orderList.stream()
|
|
@@ -511,6 +553,9 @@ public class SettlementManageBillServiceImpl extends ServiceImpl<SettlementManag
|
|
|
// 5. 计算运营相关金额
|
|
|
calculateOperationalAmounts(settlement, data);
|
|
|
|
|
|
+ //计算跨店结算金
|
|
|
+ calculateCrossStoreAmount(settlement, data);
|
|
|
+
|
|
|
// 6. 计算最终结算金额
|
|
|
calculateFinalSettlement(settlement);
|
|
|
|
|
@@ -620,17 +665,18 @@ public class SettlementManageBillServiceImpl extends ServiceImpl<SettlementManag
|
|
|
.map(OrderClothItem::getPayPrice)
|
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
settlement.setWashClothAmount(washAmount);
|
|
|
-
|
|
|
-
|
|
|
-// calculateCrossStoreAmount(data);
|
|
|
-
|
|
|
-
|
|
|
-// BigDecimal crossStoreAmount = calculateCrossStoreAmount(data);
|
|
|
-// settlement.setCrossStoreSettlementAmount(crossStoreAmount);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 计算跨店结算金额
|
|
|
+ * *
|
|
|
+ * 1. 洗衣:线下门店,会员用余额支付的洗衣订单
|
|
|
+ * 2. 零售:线下门店,会员用余额支付的零售商品订单
|
|
|
+ * 3. app:线上app,会员用余额支付的零售商品订单(app洗衣订单不存在跨店结算)
|
|
|
+ * 4. 第三方:线下门店,会员用微信/支付宝等第三方支付渠道支付的所有订单(含洗衣和零售,实际情况下比较少)
|
|
|
+ * 5. 运费:暂时为0(目前平台和门店自有运费账户走预充值模式,字段保留)
|
|
|
+ * 根据会员余额所消费的门店费率计算分成,分成规则为:
|
|
|
+ * * * 本店卡洗衣所得为本店卡在异店消费分给消费门店的费用,异店卡洗衣为异店卡在本店消费分给本店的费用**
|
|
|
*/
|
|
|
private void calculateCrossStoreAmount(SettlementManageStore settlement, StoreSettlementData data) {
|
|
|
// 4. 计算跨店结算金额(会员卡)
|
|
@@ -638,33 +684,109 @@ public class SettlementManageBillServiceImpl extends ServiceImpl<SettlementManag
|
|
|
// (本店卡:零售*费率-异店卡:零售*费率)+(本店卡:app*费率-异店卡:app*费率)+
|
|
|
// (本店卡:第三方*费率-异店卡:第三方*费率)+(本店卡:运费*费率-异店卡:运费*费率)
|
|
|
//消费的订单金额 洗衣 零售 app 第三方 运费
|
|
|
- Map<String, BigDecimal> consoumeMaps = data.getCrossStoreBills().stream()
|
|
|
- .filter(order -> OrderBillType.pay.getCode().equals(order.getBillType()))
|
|
|
- .collect(Collectors.groupingBy(
|
|
|
- AppUserBillMstr::getOrderType,
|
|
|
- Collectors.reducing(
|
|
|
- BigDecimal.ZERO,
|
|
|
- AppUserBillMstr::getPayTotalAmount,
|
|
|
- BigDecimal::add
|
|
|
- )));
|
|
|
- //退款的订单金额
|
|
|
- Map<String, BigDecimal> refundMaps = data.getCrossStoreBills().stream()
|
|
|
- .filter(order -> OrderBillType.recharge.getCode().equals(order.getBillType()))
|
|
|
- .collect(Collectors.groupingBy(
|
|
|
- AppUserBillMstr::getOrderType,
|
|
|
- Collectors.reducing(
|
|
|
- BigDecimal.ZERO,
|
|
|
- AppUserBillMstr::getPayTotalAmount,
|
|
|
- BigDecimal::add
|
|
|
- )));
|
|
|
-
|
|
|
-
|
|
|
+ BigDecimal washAmount = BigDecimal.ZERO;
|
|
|
+ BigDecimal washOtherAmount = BigDecimal.ZERO; //洗衣异店
|
|
|
+ BigDecimal goodsAmount = BigDecimal.ZERO;
|
|
|
+ BigDecimal goodsOtherAmount = BigDecimal.ZERO;
|
|
|
+ BigDecimal appAmount = BigDecimal.ZERO;
|
|
|
+ BigDecimal appOtherAmount = BigDecimal.ZERO;
|
|
|
+ BigDecimal thirdAmount = BigDecimal.ZERO;
|
|
|
+ BigDecimal thirdOtherAmount = BigDecimal.ZERO;
|
|
|
+ BigDecimal freightAmount = BigDecimal.ZERO;
|
|
|
+
|
|
|
+ Long currentStoreId = settlement.getOrgId();
|
|
|
+
|
|
|
+ for (AppUserBillMstr appUserBillMstr : data.getCrossStoreBills()) {
|
|
|
+ if (appUserBillMstr.getIsRefund().equals(SysBoolType.NO.getCode())) {
|
|
|
+
|
|
|
+ if (appUserBillMstr.getSourceType().equals(SourceType.MANAGER.getCode())) {
|
|
|
+ //线上三方使用门店卡支付的金额
|
|
|
+ if (OrderType.goods.getCode().equals(appUserBillMstr.getOrderType()) || OrderType.life.getCode().equals(appUserBillMstr.getOrderType()) || OrderType.car.getCode().equals(appUserBillMstr.getOrderType())) {
|
|
|
+ if (currentStoreId.equals(appUserBillMstr.getCardStoreId())) {
|
|
|
+ appAmount = CurrencyUtil.add(appAmount, appUserBillMstr.getPayTotalAmount());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if (OrderType.cloth.getCode().equals(appUserBillMstr.getOrderType())) {
|
|
|
+ //本店的卡在其他店的消费
|
|
|
+ if (currentStoreId.equals(appUserBillMstr.getCardStoreId()) && !currentStoreId.equals(appUserBillMstr.getOrgId())) {
|
|
|
+ washAmount = CurrencyUtil.add(washAmount, appUserBillMstr.getPayTotalAmount());
|
|
|
+ }
|
|
|
+ //异店的卡在本店的消费
|
|
|
+ if (!currentStoreId.equals(appUserBillMstr.getCardStoreId()) && currentStoreId.equals(appUserBillMstr.getOrgId())) {
|
|
|
+ washOtherAmount = CurrencyUtil.add(washOtherAmount, appUserBillMstr.getPayTotalAmount());
|
|
|
+ }
|
|
|
+ } else if (OrderType.goods.getCode().equals(appUserBillMstr.getOrderType()) || OrderType.life.getCode().equals(appUserBillMstr.getOrderType()) || OrderType.car.getCode().equals(appUserBillMstr.getOrderType())) {
|
|
|
+ if (currentStoreId.equals(appUserBillMstr.getCardStoreId()) && !currentStoreId.equals(appUserBillMstr.getOrgId())) {
|
|
|
+ goodsAmount = CurrencyUtil.add(goodsAmount, appUserBillMstr.getPayTotalAmount());
|
|
|
+ }
|
|
|
+ if (!currentStoreId.equals(appUserBillMstr.getCardStoreId()) && currentStoreId.equals(appUserBillMstr.getOrgId())) {
|
|
|
+ goodsOtherAmount = CurrencyUtil.add(goodsOtherAmount, appUserBillMstr.getPayTotalAmount());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ //退款
|
|
|
+ if (appUserBillMstr.getSourceType().equals(SourceType.MANAGER.getCode())) {
|
|
|
+ //线上三方使用门店卡支付的金额
|
|
|
+ if (OrderType.goods.getCode().equals(appUserBillMstr.getOrderType()) || OrderType.life.getCode().equals(appUserBillMstr.getOrderType()) || OrderType.car.getCode().equals(appUserBillMstr.getOrderType())) {
|
|
|
+ if (currentStoreId.equals(appUserBillMstr.getCardStoreId())) {
|
|
|
+ appAmount = CurrencyUtil.sub(appAmount, appUserBillMstr.getPayTotalAmount());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if (OrderType.cloth.getCode().equals(appUserBillMstr.getOrderType())) {
|
|
|
+ //本店的卡在其他店的消费
|
|
|
+ if (currentStoreId.equals(appUserBillMstr.getCardStoreId()) && !currentStoreId.equals(appUserBillMstr.getOrgId())) {
|
|
|
+ washAmount = CurrencyUtil.sub(washAmount, appUserBillMstr.getPayTotalAmount());
|
|
|
+ }
|
|
|
+ //异店的卡在本店的消费
|
|
|
+ if (!currentStoreId.equals(appUserBillMstr.getCardStoreId()) && currentStoreId.equals(appUserBillMstr.getOrgId())) {
|
|
|
+ washOtherAmount = CurrencyUtil.sub(washOtherAmount, appUserBillMstr.getPayTotalAmount());
|
|
|
+ }
|
|
|
+ } else if (OrderType.goods.getCode().equals(appUserBillMstr.getOrderType()) || OrderType.life.getCode().equals(appUserBillMstr.getOrderType()) || OrderType.car.getCode().equals(appUserBillMstr.getOrderType())) {
|
|
|
+ if (currentStoreId.equals(appUserBillMstr.getCardStoreId()) && !currentStoreId.equals(appUserBillMstr.getOrgId())) {
|
|
|
+ goodsAmount = CurrencyUtil.sub(goodsAmount, appUserBillMstr.getPayTotalAmount());
|
|
|
+ }
|
|
|
+ if (!currentStoreId.equals(appUserBillMstr.getCardStoreId()) && currentStoreId.equals(appUserBillMstr.getOrgId())) {
|
|
|
+ goodsOtherAmount = CurrencyUtil.sub(goodsOtherAmount, appUserBillMstr.getPayTotalAmount());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ SettlementStoreRate settlementRate = data.getSettlementRate();
|
|
|
+ BigDecimal allPayAmount = CurrencyUtil.add(washAmount, goodsAmount, appAmount, thirdAmount, freightAmount);
|
|
|
+ BigDecimal otherPayAmount = CurrencyUtil.add(washOtherAmount, goodsOtherAmount, appOtherAmount, thirdOtherAmount);
|
|
|
+ BigDecimal crossStoreAmount = CurrencyUtil.mul(CurrencyUtil.sub(allPayAmount, otherPayAmount), settlementRate.getOtherConsumeRate());
|
|
|
+ settlement.setOtherStoreAmount(allPayAmount);
|
|
|
+ settlement.setOtherCardAmount(otherPayAmount);
|
|
|
+ settlement.setRetailOtherStoreAmount(goodsAmount);
|
|
|
+ settlement.setRetailOtherCardAmount(goodsOtherAmount);
|
|
|
+ settlement.setAppOtherStoreAmount(appAmount);
|
|
|
+ settlement.setAppOtherCardAmount(appOtherAmount);
|
|
|
+ settlement.setThirdOtherStoreAmount(thirdAmount);
|
|
|
+ settlement.setThirdOtherCardAmount(thirdOtherAmount);
|
|
|
+
|
|
|
+
|
|
|
+ settlement.setCrossStoreSettlementAmount(crossStoreAmount);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 计算最终结算金额
|
|
|
*/
|
|
|
private void calculateFinalSettlement(SettlementManageStore settlement) {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 门店结算金额=(支付宝+微信实收金额)-(应付押金-已付押金)-(应付福利押金+卡密押金-已付福利押金-已付卡密押金)
|
|
|
+ * -原材料备用金-系统维护费-洗衣费-跨店结算金*
|
|
|
+ */
|
|
|
BigDecimal finalAmount = settlement.getAlipayAmount()
|
|
|
.add(settlement.getWechatAmount())
|
|
|
.subtract(settlement.getPayableDeposit().subtract(settlement.getPaidDeposit()))
|
|
@@ -737,24 +859,33 @@ public class SettlementManageBillServiceImpl extends ServiceImpl<SettlementManag
|
|
|
* @param settlementManageBill
|
|
|
* @return
|
|
|
*/
|
|
|
- private void buildFactorySettlement(SettlementManageBill settlementManageBill, ManageFactory factory, List<OrderClothItem> orderClothItemList) {
|
|
|
+ private void buildFactorySettlement(SettlementManageBill settlementManageBill, ManageFactory factory) {
|
|
|
+ if (settlementManageBill.getStatus().equals(SettlementBillStatusType.FINISH.getCode())) {
|
|
|
+ throw new ServiceException("该账单已结算完成,请勿重复操作");
|
|
|
+ }
|
|
|
+ //删除工厂结算数据,重新结算
|
|
|
+ settlementManageFactoryService.remove(new QueryWrapper<SettlementManageFactory>().lambda().eq(SettlementManageFactory::getOrgId, factory.getId()).eq(SettlementManageFactory::getBillId, settlementManageBill.getId()));
|
|
|
SettlementFactoryRate settlementFactoryRate = settlementFactoryRateService.getByFactoryId(factory.getId(), settlementManageBill.getBeginTime());
|
|
|
+ SettlementManageFactory settlementManageFactory = new SettlementManageFactory();
|
|
|
+ this.buildFactorySettlementInfo(settlementManageFactory, settlementManageBill, factory);
|
|
|
if (settlementFactoryRate == null) {
|
|
|
- SettlementManageFactory settlementManageFactory = new SettlementManageFactory();
|
|
|
- this.buildFactorySettlementInfo(settlementManageFactory, settlementManageBill, factory);
|
|
|
this.build0ClothFactory(settlementManageFactory);
|
|
|
+ settlementManageFactory.setRemark("工厂暂无可用费率");
|
|
|
settlementManageFactoryService.save(settlementManageFactory);
|
|
|
}
|
|
|
+ //查询衣服订单,入场时间在上个月的,切没有撤销或者推单的衣服
|
|
|
+ List<OrderClothItem> orderClothItemList = orderClothItemService.list(new QueryWrapper<OrderClothItem>().lambda()
|
|
|
+ .isNull(OrderClothItem::getRefundId)
|
|
|
+ .eq(OrderClothItem::getFactoryId, factory.getId())
|
|
|
+ .ge(OrderClothItem::getCreateTime, settlementManageBill.getBeginTime())
|
|
|
+ .ge(OrderClothItem::getInFactoryTime, settlementManageBill.getBeginTime())
|
|
|
+ .lt(OrderClothItem::getInFactoryTime, DateUtils.addDays(settlementManageBill.getEndTime(), 1)));
|
|
|
if (CollUtil.isEmpty(orderClothItemList)) {
|
|
|
- SettlementManageFactory settlementManageFactory = new SettlementManageFactory();
|
|
|
- this.buildFactorySettlementInfo(settlementManageFactory, settlementManageBill, factory);
|
|
|
this.build0ClothFactory(settlementManageFactory);
|
|
|
+ settlementManageFactory.setRemark("无入厂洗衣订单");
|
|
|
settlementManageFactoryService.save(settlementManageFactory);
|
|
|
return;
|
|
|
}
|
|
|
- SettlementManageFactory settlementManageFactory = new SettlementManageFactory();
|
|
|
- this.buildFactorySettlementInfo(settlementManageFactory, settlementManageBill, factory);
|
|
|
-
|
|
|
settlementManageFactory.setTotalTransactionNum(orderClothItemList.size());
|
|
|
//计算衣服总价格
|
|
|
BigDecimal orderClothItemTotalPrice = orderClothItemList.stream().map(OrderClothItem::getTotalPrice).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
@@ -766,21 +897,13 @@ public class SettlementManageBillServiceImpl extends ServiceImpl<SettlementManag
|
|
|
//管理费
|
|
|
BigDecimal managetAmount = CurrencyUtil.mul(settlementFactoryRate.getManagementRate(), orderClothItemTotalPrice);
|
|
|
settlementManageFactory.setManageAmount(managetAmount);
|
|
|
- //工厂结算金额总和
|
|
|
-// BigDecimal factorySettlementAmount = orderClothItemList.stream().map(OrderClothItem::getFactorySettlementAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
-// settlementManageFactory.setFactorySettlementAmount(factorySettlementAmount);
|
|
|
// 工厂消费 = 材料费+ 管理费
|
|
|
BigDecimal payMoney = settlementManageFactory.getManageAmount().add(settlementManageFactory.getMaterialAmount());
|
|
|
// 工厂实际收入 = 工厂结算金额总和 - 工厂消费
|
|
|
settlementManageFactory.setRealIncomeAmount(settlementManageFactory.getFactorySettlementAmount().subtract(payMoney));
|
|
|
settlementManageFactoryService.save(settlementManageFactory);
|
|
|
-
|
|
|
- // 设置账单洗衣费
|
|
|
-// settlementManageBill.setWashClothAmount(
|
|
|
-// orderClothItemList.stream().map(OrderClothItem::getFactorySettlementAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add)
|
|
|
-// );
|
|
|
- settlementManageBill.setStatus(SettlementBillStatusType.WAITING.getCode());
|
|
|
- this.updateById(settlementManageBill);
|
|
|
+// settlementManageBill.setStatus(SettlementBillStatusType.WAITING.getCode());
|
|
|
+// this.updateById(settlementManageBill);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -819,8 +942,6 @@ public class SettlementManageBillServiceImpl extends ServiceImpl<SettlementManag
|
|
|
settlementManageFactory.setTotalTransactionNum(0);
|
|
|
// 工厂实际收入
|
|
|
settlementManageFactory.setRealIncomeAmount(BigDecimal.ZERO);
|
|
|
- //
|
|
|
- settlementManageFactory.setRemark("无入厂洗衣订单");
|
|
|
}
|
|
|
|
|
|
/**
|