diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/order/controller/admin/RepairOrderInfoController.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/order/controller/admin/RepairOrderInfoController.java index 64e62ee8..c35fd0e9 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/order/controller/admin/RepairOrderInfoController.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/order/controller/admin/RepairOrderInfoController.java @@ -58,7 +58,6 @@ public class RepairOrderInfoController { */ @PutMapping("/update") @Operation(summary = "更新车辆信息") - @PreAuthorize("@ss.hasPermission('base:car-main:update')") public CommonResult updateCarMain(@RequestBody RepairOrderInfoSaveReqVO saveReqVO) { repairOrderInfoService.rechargeCallback(saveReqVO.getOrderNo()); return success(true); diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/booking/service/impl/DlRepairBookingServiceImpl.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/booking/service/impl/DlRepairBookingServiceImpl.java index 464a2177..c96bd79a 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/booking/service/impl/DlRepairBookingServiceImpl.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/booking/service/impl/DlRepairBookingServiceImpl.java @@ -1,6 +1,7 @@ package cn.iocoder.yudao.module.booking.service.impl; import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.ObjectUtil; import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils; import cn.iocoder.yudao.module.app.booking.vo.BookingQueryVO; @@ -107,6 +108,9 @@ public class DlRepairBookingServiceImpl extends ServiceImpl getBookingMap(List ids){ // 查预约记录 + if (CollectionUtil.isEmpty(ids)){ + return new ArrayList<>(); + } List dlRepairBookings = baseMapper.selectBatchIds(ids); List result = dlRepairBookings.stream().map(item -> BeanUtil.toBean(item, BookingQueryVO.class)).collect(Collectors.toList()); // 查企业