|
@@ -350,11 +350,11 @@ public class TbBusinessService extends ServiceImpl<TbBusinessMapper, TbBusiness>
|
|
|
ids.forEach(id -> {
|
|
|
TbBusiness business = this.getById(id);
|
|
|
SpAdmin currAdmin = StpUserUtil.getAdmin();
|
|
|
- String adminName = StrUtil.isNotEmpty(currAdmin.getNickname()) ? currAdmin.getNickname():currAdmin.getName();
|
|
|
+ String adminName = StrUtil.isNotEmpty(currAdmin.getNickname()) ? currAdmin.getNickname() : currAdmin.getName();
|
|
|
business.setConfirmInput(1).setAdminConfirmInput(1)
|
|
|
.setConfirmInputTime(new Date())
|
|
|
.setConfirmInputBy(StpUserUtil.getAdmin().getName())
|
|
|
- .setConfirmBy(adminName).setConfirmByAdminId(currAdmin.getId()+"");
|
|
|
+ .setConfirmBy(adminName).setConfirmByAdminId(currAdmin.getId() + "");
|
|
|
this.updateById(business);
|
|
|
List<TbBusinessCar> cars = tbBusinessCarService.findOtherBusinessCar(business.getId());
|
|
|
String carNoStr = cars.stream().map(TbBusinessCar::getCarNo).collect(Collectors.joining("、"));
|
|
@@ -382,7 +382,7 @@ public class TbBusinessService extends ServiceImpl<TbBusinessMapper, TbBusiness>
|
|
|
.setPickCustomerName(tbCostomer.getName()).setPickTime(now)
|
|
|
.setConfirm(1).setConfirmTime(now);
|
|
|
List<TbFeeDetails> feeDetailsList = tbFeeDetailsService.getByBusinessItemId(item.getId() + "");//重复交费会存在多个businessItemId
|
|
|
- if(feeDetailsList!=null) {
|
|
|
+ if (feeDetailsList != null) {
|
|
|
for (TbFeeDetails feeDetails : feeDetailsList) {
|
|
|
feeDetails.setPickCustomerName(item.getPickCustomerName());
|
|
|
tbFeeDetailsService.updateById(feeDetails);
|
|
@@ -420,7 +420,12 @@ public class TbBusinessService extends ServiceImpl<TbBusinessMapper, TbBusiness>
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- automaticPay.run(business.getId(),null,2); });
|
|
|
+ TbGoods tbGoods = tbGoodsService.getById(business.getGoodsId());
|
|
|
+ //只有改业务是在确认后扣费才需要执行自动扣费
|
|
|
+ if (TbGoods.DeductionTypeEnum.BUSINESS_OK.getCode().equals(tbGoods.getAutoDeductionType())){
|
|
|
+ automaticPay.run(business.getId(), null, 2);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
public void adminConfirmPay(List<String> ids, String ticket) {
|
|
@@ -618,7 +623,10 @@ public class TbBusinessService extends ServiceImpl<TbBusinessMapper, TbBusiness>
|
|
|
tbBusiness.setCars(cars);
|
|
|
return tbBusiness;
|
|
|
}
|
|
|
- /**获取业务信息,但只取装卸类型的收费项*/
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取业务信息,但只取装卸类型的收费项
|
|
|
+ */
|
|
|
public TbBusiness getZxBusinessById(String id) {
|
|
|
TbBusiness tbBusiness = this.getById(id);
|
|
|
List<TbBusinessItem> tbBusinessItems = tbBusinessItemService.findZxByBusinessId(id);
|