From 8d127b9f5c2fddd300c6ff43d888082f48cc2990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=97=AD?= <2405973191@qq.com> Date: Wed, 28 Aug 2024 00:54:30 +0800 Subject: [PATCH] bug --- .../admin/DriveSchoolCarController.java | 2 ++ .../payment/api/DriveSchoolPayController.java | 2 +- .../impl/DriveSchoolCarRepairServiceImpl.java | 3 +++ .../impl/DriveSchoolCheckServiceImpl.java | 3 +++ .../impl/DriveSchoolCourseServiceImpl.java | 3 +++ .../impl/DriveSchoolDeductServiceImpl.java | 3 +++ .../impl/DriveSchoolDialServiceImpl.java | 3 +++ .../impl/DriveSchoolExamPassServiceImpl.java | 8 ++++-- .../impl/DriveSchoolFacilityServiceImpl.java | 3 +++ .../impl/DriveSchoolInsuranceServiceImpl.java | 3 +++ .../impl/DriveSchoolNoticeServiceImpl.java | 3 +++ .../impl/DriveSchoolPhoneServiceImpl.java | 3 +++ ...iveSchoolReservationCourseServiceImpl.java | 3 +++ .../mapper/jx/DriveCarBindMapper.xml | 1 + .../mapper/jx/DriveContractTestMapper.xml | 1 + .../resources/mapper/jx/DrivePayMapper.xml | 26 +++++++++---------- .../mapper/jx/DriveSchoolBookingMapper.xml | 1 + .../mapper/jx/DriveSchoolCarMapper.xml | 4 ++- .../mapper/jx/DriveSchoolCarRepairMapper.xml | 2 ++ .../mapper/jx/DriveSchoolCheckMapper.xml | 1 + .../mapper/jx/DriveSchoolCoachMapper.xml | 10 ++++--- .../mapper/jx/DriveSchoolContractMapper.xml | 1 + .../mapper/jx/DriveSchoolCourseMapper.xml | 6 ++++- .../jx/DriveSchoolCourseOrderMapper.xml | 1 + .../jx/DriveSchoolCredentialsMapper.xml | 1 + .../jx/DriveSchoolDailyManagementMapper.xml | 1 + .../mapper/jx/DriveSchoolDeductMapper.xml | 3 +++ .../mapper/jx/DriveSchoolDialMapper.xml | 2 ++ .../mapper/jx/DriveSchoolDynamicMapper.xml | 2 ++ .../mapper/jx/DriveSchoolExamPassMapper.xml | 10 +++++-- .../mapper/jx/DriveSchoolFacilityMapper.xml | 1 + .../mapper/jx/DriveSchoolFeedbackMapper.xml | 5 ++++ .../mapper/jx/DriveSchoolFileMapper.xml | 3 +++ .../mapper/jx/DriveSchoolInfoMapper.xml | 3 ++- .../mapper/jx/DriveSchoolInsuranceMapper.xml | 1 + .../mapper/jx/DriveSchoolNewsMapper.xml | 2 ++ .../mapper/jx/DriveSchoolNoticeMapper.xml | 2 ++ .../mapper/jx/DriveSchoolPayMapper.xml | 17 ++++++++---- .../mapper/jx/DriveSchoolPhoneMapper.xml | 5 ++-- .../jx/DriveSchoolReimbursementMapper.xml | 1 + .../jx/DriveSchoolReservationCourseMapper.xml | 26 ++++++++++++------- .../mapper/jx/DriveSchoolSeparateMapper.xml | 1 + .../mapper/jx/DriveSchoolSwiperMapper.xml | 1 + .../mapper/jx/DriveSchoolTextMapper.xml | 1 + .../mapper/jx/DriveSchoolUpkeepMapper.xml | 1 + .../resources/mapper/jx/LJRegionMapper.xml | 2 +- .../resources/mapper/jx/SopeNessMapper.xml | 14 +++++++++- 47 files changed, 157 insertions(+), 44 deletions(-) diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/admin/DriveSchoolCarController.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/admin/DriveSchoolCarController.java index 493a2c5b..7b2230c2 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/admin/DriveSchoolCarController.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/admin/DriveSchoolCarController.java @@ -40,6 +40,8 @@ public class DriveSchoolCarController extends BaseController @GetMapping("/list") public CommonResult> list(DriveSchoolCar driveSchoolCar) { + driveSchoolCar.setPageNum(1); + driveSchoolCar.setPageSize(10); Page page = new Page<>(driveSchoolCar.getPageNum(), driveSchoolCar.getPageSize()); IPage driveSchoolCarIPage = driveSchoolCarService.selectDriveSchoolCarList(driveSchoolCar, page); return CommonResult.success(driveSchoolCarIPage); diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/payment/api/DriveSchoolPayController.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/payment/api/DriveSchoolPayController.java index 825aed16..5c47e15b 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/payment/api/DriveSchoolPayController.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/payment/api/DriveSchoolPayController.java @@ -56,7 +56,7 @@ public class DriveSchoolPayController extends BaseController int number = 0; int numbers = 0; int allNumber = 0; - DriveSchoolInfoVO schoolInfo = driveSchoolInfoService.getSchoolInfoByDeptId(); + DriveSchoolInfoVO schoolInfo = driveSchoolInfoService.getSchoolInfoByDeptId(); if (schoolInfo != null) { driveSchoolPay.setJxId(schoolInfo.getId()); diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCarRepairServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCarRepairServiceImpl.java index 390ea356..9dad245b 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCarRepairServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCarRepairServiceImpl.java @@ -62,6 +62,9 @@ public class DriveSchoolCarRepairServiceImpl implements IDriveSchoolCarRepairSer AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); driveSchoolCarRepair.setDeptId(deptId); + if (deptId == 100){ + driveSchoolCarRepair.setDeptId(null); + } IPage driveSchoolCarRepairIPage = driveSchoolCarRepairMapper.selectDriveSchoolCarRepairList(driveSchoolCarRepair, page); List driveSchoolCarRepairs = driveSchoolCarRepairIPage.getRecords(); for (DriveSchoolCarRepair schoolCarRepair : driveSchoolCarRepairs) { diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCheckServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCheckServiceImpl.java index 6b1da41f..7f7fb582 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCheckServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCheckServiceImpl.java @@ -60,6 +60,9 @@ public class DriveSchoolCheckServiceImpl implements IDriveSchoolCheckService AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); driveSchoolCheck.setDeptId(deptId); + if (deptId == 100){ + driveSchoolCheck.setDeptId(null); + } IPage driveSchoolCheckIPage = driveSchoolCheckMapper.selectDriveSchoolCheckList(driveSchoolCheck, page); List driveSchoolChecks = driveSchoolCheckIPage.getRecords(); for (DriveSchoolCheck schoolCheck : driveSchoolChecks) { diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCourseServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCourseServiceImpl.java index fff91f42..aa9753bf 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCourseServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolCourseServiceImpl.java @@ -75,6 +75,9 @@ public class DriveSchoolCourseServiceImpl implements IDriveSchoolCourseService AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); driveSchoolCourse.setDeptId(deptId); + if (deptId == 100){ + driveSchoolCourse.setDeptId(null); + } IPage driveSchoolCourseIPage = driveSchoolCourseMapper.selectDriveSchoolCourseList(driveSchoolCourse, page); List driveSchoolCourses = driveSchoolCourseIPage.getRecords(); for (DriveSchoolCourse driveSchoolCours : driveSchoolCourses) { diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolDeductServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolDeductServiceImpl.java index ed5153a5..ec1d9e54 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolDeductServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolDeductServiceImpl.java @@ -55,6 +55,9 @@ public class DriveSchoolDeductServiceImpl implements IDriveSchoolDeductService AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); driveSchoolDeduct.setDeptId(deptId); + if (deptId == 100){ + driveSchoolDeduct.setDeptId(null); + } return driveSchoolDeductMapper.selectDriveSchoolDeductList(driveSchoolDeduct,page); } diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolDialServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolDialServiceImpl.java index d175eabb..17e83ef0 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolDialServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolDialServiceImpl.java @@ -55,6 +55,9 @@ public class DriveSchoolDialServiceImpl implements IDriveSchoolDialService AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); driveSchoolDial.setDeptId(deptId); + if (deptId == 100){ + driveSchoolDial.setDeptId(null); + } return driveSchoolDialMapper.selectDriveSchoolDialList(driveSchoolDial,page); } diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolExamPassServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolExamPassServiceImpl.java index 8602f05f..037b149c 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolExamPassServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolExamPassServiceImpl.java @@ -90,7 +90,9 @@ public class DriveSchoolExamPassServiceImpl implements IDriveSchoolExamPassServi Long userId = SecurityFrameworkUtils.getLoginUserId(); AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); - deptId = 227L; + if (deptId == 100){ + deptId = 227L; + } DriveSchoolInfoVO schoolInfoByDeptId = driveSchoolInfoMapper.getSchoolInfoByDeptId(deptId); driveSchoolExamPass.setJxId(schoolInfoByDeptId.getId()); return driveSchoolExamPassMapper.selectDriveSchoolExamPassList(driveSchoolExamPass, page); @@ -209,7 +211,9 @@ public class DriveSchoolExamPassServiceImpl implements IDriveSchoolExamPassServi Long userId = SecurityFrameworkUtils.getLoginUserId(); AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); - deptId = 227L; + if (deptId == 100){ + deptId = null; + } DriveSchoolInfoVO schoolInfoByDeptId = driveSchoolInfoMapper.getSchoolInfoByDeptId(deptId); driveSchoolExamPass.setJxId(schoolInfoByDeptId.getId()); } diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolFacilityServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolFacilityServiceImpl.java index b83eaa74..4fd6f07f 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolFacilityServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolFacilityServiceImpl.java @@ -59,6 +59,9 @@ public class DriveSchoolFacilityServiceImpl implements IDriveSchoolFacilityServi AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); driveSchoolFacility.setDeptId(deptId); + if (deptId ==100){ + driveSchoolFacility.setDeptId(null); + } return driveSchoolFacilityMapper.selectDriveSchoolFacilityList(driveSchoolFacility,page); } diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolInsuranceServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolInsuranceServiceImpl.java index fdf608de..8d06b1f2 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolInsuranceServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolInsuranceServiceImpl.java @@ -61,6 +61,9 @@ public class DriveSchoolInsuranceServiceImpl implements IDriveSchoolInsuranceSer AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); driveSchoolInsurance.setDeptId(deptId); + if (deptId==100){ + driveSchoolInsurance.setDeptId(null); + } IPage driveSchoolInsuranceIPage = driveSchoolInsuranceMapper.selectDriveSchoolInsuranceList(driveSchoolInsurance, page); List driveSchoolInsurances = driveSchoolInsuranceIPage.getRecords(); diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolNoticeServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolNoticeServiceImpl.java index af988f93..4640330a 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolNoticeServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolNoticeServiceImpl.java @@ -55,6 +55,9 @@ public class DriveSchoolNoticeServiceImpl implements IDriveSchoolNoticeService AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); driveSchoolNotice.setDeptId(deptId); + if (deptId == 100){ + driveSchoolNotice.setDeptId(null); + } return driveSchoolNoticeMapper.selectDriveSchoolNoticeList(driveSchoolNotice,page); } diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolPhoneServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolPhoneServiceImpl.java index d69f25eb..b0c8a738 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolPhoneServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolPhoneServiceImpl.java @@ -58,6 +58,9 @@ public class DriveSchoolPhoneServiceImpl implements IDriveSchoolPhoneService AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); driveSchoolPhone.setDeptId(deptId); + if (deptId==100){ + driveSchoolPhone.setDeptId(null); + } return driveSchoolPhoneMapper.selectDriveSchoolPhoneList(driveSchoolPhone,page); } diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolReservationCourseServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolReservationCourseServiceImpl.java index 375b0285..fa784c7a 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolReservationCourseServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/service/impl/DriveSchoolReservationCourseServiceImpl.java @@ -129,6 +129,9 @@ public class DriveSchoolReservationCourseServiceImpl implements IDriveSchoolRese AdminUserRespDTO user = userApi.getUser(userId); Long deptId = user.getDeptId(); driveSchoolReservationCourse.setDeptId(deptId); + if (deptId == 100){ + driveSchoolReservationCourse.setDeptId(null); + } IPage driveSchoolReservationCourseIPage = driveSchoolReservationCourseMapper.selectDriveSchoolReservationCourseList(driveSchoolReservationCourse, page); List courseList = driveSchoolReservationCourseIPage.getRecords(); diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveCarBindMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveCarBindMapper.xml index 2cd9abcc..bd9eb46c 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveCarBindMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveCarBindMapper.xml @@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and dept_id = #{entity.deptId} and content = #{entity.content} diff --git a/dl-module-jx/src/main/resources/mapper/jx/DrivePayMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DrivePayMapper.xml index e2166faa..c8bd1365 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DrivePayMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DrivePayMapper.xml @@ -24,27 +24,27 @@ diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolBookingMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolBookingMapper.xml index ab9c9e16..ff5c0d60 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolBookingMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolBookingMapper.xml @@ -19,6 +19,7 @@ + deleted = 0 and dept_id = #{entity.deptId} and brand = #{entity.brand} and car_model = #{entity.carModel} @@ -58,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - where car_no = #{carNo} + where deleted = 0 and car_no = #{carNo} diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCarRepairMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCarRepairMapper.xml index d0d8c77f..90104fdd 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCarRepairMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCarRepairMapper.xml @@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and dept_id = #{entity.deptId} and user_id = #{entity.userId} and user_name like concat('%',#{entity.userName},'%') diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCheckMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCheckMapper.xml index 15532c27..1d57cc37 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCheckMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCheckMapper.xml @@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and id = #{entity.id} and dept_id = #{entity.deptId} and image = #{entity.image} @@ -59,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -195,7 +197,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolContractMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolContractMapper.xml index 53fcb4df..52de046b 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolContractMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolContractMapper.xml @@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and id = #{entity.id} and automatic = #{entity.automatic} and license = #{entity.license} @@ -50,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and id = #{entity.id} and dept_id = #{entity.deptId} and type = #{entity.type} @@ -82,6 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select dsc.* from drive_school_pay dsp join - drive_school_course dsc on dsp.courseId = dsc.id where dsp.orderNumber like concat('%', #{concat}, '%') + drive_school_course dsc on dsp.courseId = dsc.id where dsp.deleted = 0 and dsp.orderNumber like concat('%', #{concat}, '%') diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCourseOrderMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCourseOrderMapper.xml index 9c01720d..0fc75f02 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCourseOrderMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolCourseOrderMapper.xml @@ -32,6 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and school_name like concat('%', #{entity.schoolName}, '%') and business_license_number = #{entity.businessLicenseNumber} and legal_representative like concat('%', #{entity.legalRepresentative}, '%') diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDailyManagementMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDailyManagementMapper.xml index 840123f3..a1c402db 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDailyManagementMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDailyManagementMapper.xml @@ -28,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and dept_id = #{entity.deptId} and deduct = #{entity.deduct} and course_subject = #{entity.courseSubject} @@ -32,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select * from drive_school_deduct + deleted = 0 and dept_id = #{deptId} and course_subject = #{courseSubject} diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDialMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDialMapper.xml index 84d3ea95..6ea22ff6 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDialMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDialMapper.xml @@ -26,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and dept_id = #{entity.deptId} and title = #{entity.title} and content = #{entity.content} diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDynamicMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDynamicMapper.xml index 32b5d19d..3d7a9e13 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDynamicMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolDynamicMapper.xml @@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and dept_id = #{entity.deptId} and cover = #{entity.cover} and title = #{entity.title} diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolExamPassMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolExamPassMapper.xml index 6809f4cc..5a70a166 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolExamPassMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolExamPassMapper.xml @@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - where userId = #{userId} + where deleted = 0 and userId = #{userId} @@ -156,6 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT id,jlName,sum(deduct) deduct,payd_time,jlId from drive_school_exam_pass + deleted = 0 and payState = 1 and status = 1 and payd_time between #{entity.payStartTimes} and #{entity.payEndTimes} @@ -170,6 +172,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT id,jlName,sum(deduct) deduct,payd_time,jlId from drive_school_exam_pass + deleted = 0 and payState = 1 and payd_time between #{payStartTimes} and #{payEndTimes} and jlName like concat('%', #{jlName}, '%') @@ -183,6 +186,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT id,jlName,sum(deduct) deduct,payd_time,jlId from drive_school_exam_pass + deleted = 0 and payState = 1 and payd_time between #{payStartTimes} and #{payEndTimes} and jlName like concat('%', #{jlName}, '%') @@ -195,6 +199,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT id,jlName,sum(deduct) deduct,payd_time,jlId from drive_school_exam_pass + deleted = 0 and payState = '0' payd_time between #{payStartTimes} and #{payEndTimes} and jlName like concat('%', #{jlName}, '%') @@ -210,6 +215,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT id,jlName,sum(deduct) deduct,payd_time,jlId from drive_school_exam_pass + deleted = 0 and payState = '0' payd_time between #{payStartTimes} and #{payEndTimes} and jlName like concat('%', #{jlName}, '%') diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolFacilityMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolFacilityMapper.xml index d7e94603..957531c3 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolFacilityMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolFacilityMapper.xml @@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and userId = #{entity.userId} and jxName like concat('%',#{entity.jxName},'%') and jlName like concat('%',#{entity.jlName},'%') @@ -40,6 +41,7 @@ select count(1) total from drive_school_feedback + deleted = 0 and likes = '1' and jxId = #{jxId} @@ -60,6 +63,7 @@ + deleted = 0 and file_type = #{entity.fileType} and dept_id = #{entity.deptId} and file_address = #{entity.fileAddress} @@ -32,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and file_type = #{fileType} and dept_id = #{deptId} and file_address = #{fileAddress} diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolInfoMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolInfoMapper.xml index 4c12513e..bbc6f620 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolInfoMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolInfoMapper.xml @@ -50,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - where dept_id = #{deptId} + where deleted = 0 and dept_id = #{deptId} + deleted = 0 and dept_id = #{entity.deptId} and user_id = #{entity.userId} and user_name = #{entity.userName} diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolNewsMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolNewsMapper.xml index 094bae20..14793342 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolNewsMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolNewsMapper.xml @@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and dept_id = #{entity.deptId} and cover = #{entity.cover} and title = #{entity.title} diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolNoticeMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolNoticeMapper.xml index c19f8d66..7cd5a840 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolNoticeMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolNoticeMapper.xml @@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and dept_id = #{entity.deptId} and title = #{entity.title} and content = #{entity.content} diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolPayMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolPayMapper.xml index 9b33aa16..2ac5393d 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolPayMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolPayMapper.xml @@ -49,6 +49,7 @@ select count(1) count from drive_school_pay - where jlId = #{userId} + where deleted = 0 and jlId = #{userId} diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolPhoneMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolPhoneMapper.xml index c97f3112..37225ddf 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolPhoneMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolPhoneMapper.xml @@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - where dept_id = #{deptId} + where deleted = 0 and dept_id = #{deptId} ORDER BY RAND() LIMIT 1; diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolReimbursementMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolReimbursementMapper.xml index c0dc8339..f05baba9 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolReimbursementMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolReimbursementMapper.xml @@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and dept_id = #{entity.deptId} and user_id = #{entity.userId} and user_name like concat('%', #{entity.userName}, '%') @@ -56,11 +57,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -146,39 +147,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -206,6 +209,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT * FROM drive_school_reservation_course + deleted = 0 create_time >= NOW() - INTERVAL 1 MONTH and coach_id = #{userId} @@ -217,7 +221,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT * FROM drive_school_reservation_course - + deleted = 0 and user_id = #{userId} order by create_time desc @@ -227,6 +231,7 @@ order by create_time desc SELECT * FROM drive_school_reservation_course + deleted = 0 and audit_status = 0 and coach_id = #{userId} @@ -237,6 +242,7 @@ order by create_time desc SELECT * FROM drive_school_reservation_course + deleted = 0 and audit_status != 0 and coach_id = #{userId} @@ -244,7 +250,7 @@ order by create_time desc diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolSeparateMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolSeparateMapper.xml index 97ea6c16..5362ec39 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolSeparateMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolSeparateMapper.xml @@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and swiper_name like concat('%', #{swiperName}, '%') and swiper_picture = #{swiperPicture} and jump_url = #{jumpUrl} diff --git a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolTextMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolTextMapper.xml index c3ea20ec..3814d61b 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolTextMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/DriveSchoolTextMapper.xml @@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + deleted = 0 and car_id = #{entity.carId} and maintenance_date = #{entity.maintenanceDate} and maintenance_mileage = #{entity.maintenanceMileage} diff --git a/dl-module-jx/src/main/resources/mapper/jx/LJRegionMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/LJRegionMapper.xml index bd05d2b5..defec046 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/LJRegionMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/LJRegionMapper.xml @@ -5,6 +5,6 @@ diff --git a/dl-module-jx/src/main/resources/mapper/jx/SopeNessMapper.xml b/dl-module-jx/src/main/resources/mapper/jx/SopeNessMapper.xml index 17ea3dac..f622a656 100644 --- a/dl-module-jx/src/main/resources/mapper/jx/SopeNessMapper.xml +++ b/dl-module-jx/src/main/resources/mapper/jx/SopeNessMapper.xml @@ -29,7 +29,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"