Ver código fonte

修改业务时客户错误

qzy 1 dia atrás
pai
commit
619789f433

+ 2 - 2
sp-server/src/main/java/com/pj/project/tb_business/TbBusinessService.java

@@ -926,7 +926,6 @@ public class TbBusinessService extends ServiceImpl<TbBusinessMapper, TbBusiness>
             relationBusinessCarService.removeByIds(removeIds);
         }
         TbGoods tbGoods = tbGoodsService.getById(otherBusinessBO.getGoodsId());
-        String carBuseinssNo = DateUtil.format(now, "yyyyMMddHHmm");
         String goodsName = tbGoods.getName();
         List<TbBusinessItem> itemList = new ArrayList<>();
         boolean freePartMoney = false;
@@ -1105,6 +1104,7 @@ public class TbBusinessService extends ServiceImpl<TbBusinessMapper, TbBusiness>
                     relationBusinessCarService.save(relationBusinessCar);
                 } else {
                     dbBusinessCar
+                            .setCustomerId(customerId)
                             .setCarSize(tbBusinessCar.getCarSize()).setCarType(tbBusinessCar.getCarType())
                             .setConfirmJudge(CarEnum.ConfirmJudgeEnum.NO_JUDGE.getCode());
                     if (freePartMoney) {
@@ -1119,7 +1119,7 @@ public class TbBusinessService extends ServiceImpl<TbBusinessMapper, TbBusiness>
                     throw new AjaxError("车辆【" + carNo + "】未入场");
                 }
                 checkCar.setCarNo(carNo).setCarType(tbBusinessCar.getCarType()).setCarSize(tbBusinessCar.getCarSize())
-                        .setCustomerId(dbBusiness.getCustomerId())
+                        .setCustomerId(customerId)
                         .setTimeUpdate(now).setIsLock(0).setCarType(tbBusinessCar.getCarType()).setBusinessType(1)
                         .setConfirmJudge(CarEnum.ConfirmJudgeEnum.NO_JUDGE.getCode());
                 if (freePartMoney) {