diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/PartnerOwnController.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/PartnerOwnController.java index 90f58f08..7d28acc1 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/PartnerOwnController.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/PartnerOwnController.java @@ -479,8 +479,8 @@ public class PartnerOwnController extends BaseController { // return null; // } Page page = new Page<>(pageNum, pageSize); - ShopMallPartners shopMallPartners = partnerList.shopInfo(); - IPage appointments = partnerList.getAppointmentList(page, shopMallPartners.getPartnerId(), phoneNum); +// ShopMallPartners shopMallPartners = partnerList.shopInfo(); + IPage appointments = partnerList.getAppointmentList(page, null, phoneNum); return success(appointments); } diff --git a/dl-module-inspection/src/main/resources/mapper/inspection/InspectionAppointmentMapper.xml b/dl-module-inspection/src/main/resources/mapper/inspection/InspectionAppointmentMapper.xml index a908dfe9..09705122 100644 --- a/dl-module-inspection/src/main/resources/mapper/inspection/InspectionAppointmentMapper.xml +++ b/dl-module-inspection/src/main/resources/mapper/inspection/InspectionAppointmentMapper.xml @@ -101,10 +101,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" left JOIN order_info oi ON ip.order_id = oi.id and oi.deleted=0 left join shop_user_car suc on suc.car_id = oi.user_car_id and suc.deleted=0 LEFT JOIN inspection_goods_sku igs on igs.id = ip.sku_id - where ip.deleted=0 and ip.partner_id = #{partnerId} and oi.validation_time IS NULL + where ip.deleted=0 and oi.validation_time IS NULL and su.mobile like concat('%',#{phoneNum},'%') + + and ip.partner_id = #{partnerId} + order by ip.create_time desc