bug
This commit is contained in:
parent
18b08959a9
commit
8d127b9f5c
@ -40,6 +40,8 @@ public class DriveSchoolCarController extends BaseController
|
|||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public CommonResult<IPage<?>> list(DriveSchoolCar driveSchoolCar)
|
public CommonResult<IPage<?>> list(DriveSchoolCar driveSchoolCar)
|
||||||
{
|
{
|
||||||
|
driveSchoolCar.setPageNum(1);
|
||||||
|
driveSchoolCar.setPageSize(10);
|
||||||
Page<DriveSchoolCar> page = new Page<>(driveSchoolCar.getPageNum(), driveSchoolCar.getPageSize());
|
Page<DriveSchoolCar> page = new Page<>(driveSchoolCar.getPageNum(), driveSchoolCar.getPageSize());
|
||||||
IPage<DriveSchoolCar> driveSchoolCarIPage = driveSchoolCarService.selectDriveSchoolCarList(driveSchoolCar, page);
|
IPage<DriveSchoolCar> driveSchoolCarIPage = driveSchoolCarService.selectDriveSchoolCarList(driveSchoolCar, page);
|
||||||
return CommonResult.success(driveSchoolCarIPage);
|
return CommonResult.success(driveSchoolCarIPage);
|
||||||
|
@ -56,7 +56,7 @@ public class DriveSchoolPayController extends BaseController
|
|||||||
int number = 0;
|
int number = 0;
|
||||||
int numbers = 0;
|
int numbers = 0;
|
||||||
int allNumber = 0;
|
int allNumber = 0;
|
||||||
DriveSchoolInfoVO schoolInfo = driveSchoolInfoService.getSchoolInfoByDeptId();
|
DriveSchoolInfoVO schoolInfo = driveSchoolInfoService.getSchoolInfoByDeptId();
|
||||||
|
|
||||||
if (schoolInfo != null) {
|
if (schoolInfo != null) {
|
||||||
driveSchoolPay.setJxId(schoolInfo.getId());
|
driveSchoolPay.setJxId(schoolInfo.getId());
|
||||||
|
@ -62,6 +62,9 @@ public class DriveSchoolCarRepairServiceImpl implements IDriveSchoolCarRepairSer
|
|||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
driveSchoolCarRepair.setDeptId(deptId);
|
driveSchoolCarRepair.setDeptId(deptId);
|
||||||
|
if (deptId == 100){
|
||||||
|
driveSchoolCarRepair.setDeptId(null);
|
||||||
|
}
|
||||||
IPage<DriveSchoolCarRepair> driveSchoolCarRepairIPage = driveSchoolCarRepairMapper.selectDriveSchoolCarRepairList(driveSchoolCarRepair, page);
|
IPage<DriveSchoolCarRepair> driveSchoolCarRepairIPage = driveSchoolCarRepairMapper.selectDriveSchoolCarRepairList(driveSchoolCarRepair, page);
|
||||||
List<DriveSchoolCarRepair> driveSchoolCarRepairs = driveSchoolCarRepairIPage.getRecords();
|
List<DriveSchoolCarRepair> driveSchoolCarRepairs = driveSchoolCarRepairIPage.getRecords();
|
||||||
for (DriveSchoolCarRepair schoolCarRepair : driveSchoolCarRepairs) {
|
for (DriveSchoolCarRepair schoolCarRepair : driveSchoolCarRepairs) {
|
||||||
|
@ -60,6 +60,9 @@ public class DriveSchoolCheckServiceImpl implements IDriveSchoolCheckService
|
|||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
driveSchoolCheck.setDeptId(deptId);
|
driveSchoolCheck.setDeptId(deptId);
|
||||||
|
if (deptId == 100){
|
||||||
|
driveSchoolCheck.setDeptId(null);
|
||||||
|
}
|
||||||
IPage<DriveSchoolCheck> driveSchoolCheckIPage = driveSchoolCheckMapper.selectDriveSchoolCheckList(driveSchoolCheck, page);
|
IPage<DriveSchoolCheck> driveSchoolCheckIPage = driveSchoolCheckMapper.selectDriveSchoolCheckList(driveSchoolCheck, page);
|
||||||
List<DriveSchoolCheck> driveSchoolChecks = driveSchoolCheckIPage.getRecords();
|
List<DriveSchoolCheck> driveSchoolChecks = driveSchoolCheckIPage.getRecords();
|
||||||
for (DriveSchoolCheck schoolCheck : driveSchoolChecks) {
|
for (DriveSchoolCheck schoolCheck : driveSchoolChecks) {
|
||||||
|
@ -75,6 +75,9 @@ public class DriveSchoolCourseServiceImpl implements IDriveSchoolCourseService
|
|||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
driveSchoolCourse.setDeptId(deptId);
|
driveSchoolCourse.setDeptId(deptId);
|
||||||
|
if (deptId == 100){
|
||||||
|
driveSchoolCourse.setDeptId(null);
|
||||||
|
}
|
||||||
IPage<DriveSchoolCourse> driveSchoolCourseIPage = driveSchoolCourseMapper.selectDriveSchoolCourseList(driveSchoolCourse, page);
|
IPage<DriveSchoolCourse> driveSchoolCourseIPage = driveSchoolCourseMapper.selectDriveSchoolCourseList(driveSchoolCourse, page);
|
||||||
List<DriveSchoolCourse> driveSchoolCourses = driveSchoolCourseIPage.getRecords();
|
List<DriveSchoolCourse> driveSchoolCourses = driveSchoolCourseIPage.getRecords();
|
||||||
for (DriveSchoolCourse driveSchoolCours : driveSchoolCourses) {
|
for (DriveSchoolCourse driveSchoolCours : driveSchoolCourses) {
|
||||||
|
@ -55,6 +55,9 @@ public class DriveSchoolDeductServiceImpl implements IDriveSchoolDeductService
|
|||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
driveSchoolDeduct.setDeptId(deptId);
|
driveSchoolDeduct.setDeptId(deptId);
|
||||||
|
if (deptId == 100){
|
||||||
|
driveSchoolDeduct.setDeptId(null);
|
||||||
|
}
|
||||||
return driveSchoolDeductMapper.selectDriveSchoolDeductList(driveSchoolDeduct,page);
|
return driveSchoolDeductMapper.selectDriveSchoolDeductList(driveSchoolDeduct,page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,6 +55,9 @@ public class DriveSchoolDialServiceImpl implements IDriveSchoolDialService
|
|||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
driveSchoolDial.setDeptId(deptId);
|
driveSchoolDial.setDeptId(deptId);
|
||||||
|
if (deptId == 100){
|
||||||
|
driveSchoolDial.setDeptId(null);
|
||||||
|
}
|
||||||
return driveSchoolDialMapper.selectDriveSchoolDialList(driveSchoolDial,page);
|
return driveSchoolDialMapper.selectDriveSchoolDialList(driveSchoolDial,page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,7 +90,9 @@ public class DriveSchoolExamPassServiceImpl implements IDriveSchoolExamPassServi
|
|||||||
Long userId = SecurityFrameworkUtils.getLoginUserId();
|
Long userId = SecurityFrameworkUtils.getLoginUserId();
|
||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
deptId = 227L;
|
if (deptId == 100){
|
||||||
|
deptId = 227L;
|
||||||
|
}
|
||||||
DriveSchoolInfoVO schoolInfoByDeptId = driveSchoolInfoMapper.getSchoolInfoByDeptId(deptId);
|
DriveSchoolInfoVO schoolInfoByDeptId = driveSchoolInfoMapper.getSchoolInfoByDeptId(deptId);
|
||||||
driveSchoolExamPass.setJxId(schoolInfoByDeptId.getId());
|
driveSchoolExamPass.setJxId(schoolInfoByDeptId.getId());
|
||||||
return driveSchoolExamPassMapper.selectDriveSchoolExamPassList(driveSchoolExamPass, page);
|
return driveSchoolExamPassMapper.selectDriveSchoolExamPassList(driveSchoolExamPass, page);
|
||||||
@ -209,7 +211,9 @@ public class DriveSchoolExamPassServiceImpl implements IDriveSchoolExamPassServi
|
|||||||
Long userId = SecurityFrameworkUtils.getLoginUserId();
|
Long userId = SecurityFrameworkUtils.getLoginUserId();
|
||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
deptId = 227L;
|
if (deptId == 100){
|
||||||
|
deptId = null;
|
||||||
|
}
|
||||||
DriveSchoolInfoVO schoolInfoByDeptId = driveSchoolInfoMapper.getSchoolInfoByDeptId(deptId);
|
DriveSchoolInfoVO schoolInfoByDeptId = driveSchoolInfoMapper.getSchoolInfoByDeptId(deptId);
|
||||||
driveSchoolExamPass.setJxId(schoolInfoByDeptId.getId());
|
driveSchoolExamPass.setJxId(schoolInfoByDeptId.getId());
|
||||||
}
|
}
|
||||||
|
@ -59,6 +59,9 @@ public class DriveSchoolFacilityServiceImpl implements IDriveSchoolFacilityServi
|
|||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
driveSchoolFacility.setDeptId(deptId);
|
driveSchoolFacility.setDeptId(deptId);
|
||||||
|
if (deptId ==100){
|
||||||
|
driveSchoolFacility.setDeptId(null);
|
||||||
|
}
|
||||||
return driveSchoolFacilityMapper.selectDriveSchoolFacilityList(driveSchoolFacility,page);
|
return driveSchoolFacilityMapper.selectDriveSchoolFacilityList(driveSchoolFacility,page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,6 +61,9 @@ public class DriveSchoolInsuranceServiceImpl implements IDriveSchoolInsuranceSer
|
|||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
driveSchoolInsurance.setDeptId(deptId);
|
driveSchoolInsurance.setDeptId(deptId);
|
||||||
|
if (deptId==100){
|
||||||
|
driveSchoolInsurance.setDeptId(null);
|
||||||
|
}
|
||||||
IPage<DriveSchoolInsurance> driveSchoolInsuranceIPage = driveSchoolInsuranceMapper.selectDriveSchoolInsuranceList(driveSchoolInsurance, page);
|
IPage<DriveSchoolInsurance> driveSchoolInsuranceIPage = driveSchoolInsuranceMapper.selectDriveSchoolInsuranceList(driveSchoolInsurance, page);
|
||||||
List<DriveSchoolInsurance> driveSchoolInsurances = driveSchoolInsuranceIPage.getRecords();
|
List<DriveSchoolInsurance> driveSchoolInsurances = driveSchoolInsuranceIPage.getRecords();
|
||||||
|
|
||||||
|
@ -55,6 +55,9 @@ public class DriveSchoolNoticeServiceImpl implements IDriveSchoolNoticeService
|
|||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
driveSchoolNotice.setDeptId(deptId);
|
driveSchoolNotice.setDeptId(deptId);
|
||||||
|
if (deptId == 100){
|
||||||
|
driveSchoolNotice.setDeptId(null);
|
||||||
|
}
|
||||||
return driveSchoolNoticeMapper.selectDriveSchoolNoticeList(driveSchoolNotice,page);
|
return driveSchoolNoticeMapper.selectDriveSchoolNoticeList(driveSchoolNotice,page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,6 +58,9 @@ public class DriveSchoolPhoneServiceImpl implements IDriveSchoolPhoneService
|
|||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
driveSchoolPhone.setDeptId(deptId);
|
driveSchoolPhone.setDeptId(deptId);
|
||||||
|
if (deptId==100){
|
||||||
|
driveSchoolPhone.setDeptId(null);
|
||||||
|
}
|
||||||
return driveSchoolPhoneMapper.selectDriveSchoolPhoneList(driveSchoolPhone,page);
|
return driveSchoolPhoneMapper.selectDriveSchoolPhoneList(driveSchoolPhone,page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,6 +129,9 @@ public class DriveSchoolReservationCourseServiceImpl implements IDriveSchoolRese
|
|||||||
AdminUserRespDTO user = userApi.getUser(userId);
|
AdminUserRespDTO user = userApi.getUser(userId);
|
||||||
Long deptId = user.getDeptId();
|
Long deptId = user.getDeptId();
|
||||||
driveSchoolReservationCourse.setDeptId(deptId);
|
driveSchoolReservationCourse.setDeptId(deptId);
|
||||||
|
if (deptId == 100){
|
||||||
|
driveSchoolReservationCourse.setDeptId(null);
|
||||||
|
}
|
||||||
IPage<DriveSchoolReservationCourse> driveSchoolReservationCourseIPage = driveSchoolReservationCourseMapper.selectDriveSchoolReservationCourseList(driveSchoolReservationCourse, page);
|
IPage<DriveSchoolReservationCourse> driveSchoolReservationCourseIPage = driveSchoolReservationCourseMapper.selectDriveSchoolReservationCourseList(driveSchoolReservationCourse, page);
|
||||||
List<DriveSchoolReservationCourse> courseList = driveSchoolReservationCourseIPage.getRecords();
|
List<DriveSchoolReservationCourse> courseList = driveSchoolReservationCourseIPage.getRecords();
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveCarBindList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveCarBind" resultMap="DriveCarBindResult">
|
<select id="selectDriveCarBindList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveCarBind" resultMap="DriveCarBindResult">
|
||||||
<include refid="selectDriveCarBindVo"/>
|
<include refid="selectDriveCarBindVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.carId != null "> and car_id = #{entity.carId}</if>
|
<if test="entity.carId != null "> and car_id = #{entity.carId}</if>
|
||||||
<if test="entity.driveSchoolCoachId != null "> and drive_school_coach_id = #{entity.driveSchoolCoachId}</if>
|
<if test="entity.driveSchoolCoachId != null "> and drive_school_coach_id = #{entity.driveSchoolCoachId}</if>
|
||||||
|
@ -21,6 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveContractTestList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveContractTest" resultMap="DriveContractTestResult">
|
<select id="selectDriveContractTestList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveContractTest" resultMap="DriveContractTestResult">
|
||||||
<include refid="selectDriveContractTestVo"/>
|
<include refid="selectDriveContractTestVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
||||||
</where>
|
</where>
|
||||||
|
@ -24,27 +24,27 @@
|
|||||||
<!-- </insert>-->
|
<!-- </insert>-->
|
||||||
|
|
||||||
<select id="findPayListAll" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
<select id="findPayListAll" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
||||||
select * from drive_school_pay where userId = #{userId}
|
select * from drive_school_pay where deleted = 0 and userId = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findDriveSchoolByJxId" resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolInfo">
|
<select id="findDriveSchoolByJxId" resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolInfo">
|
||||||
select * from drive_school_info where id = #{jxId}
|
select * from drive_school_info where deleted = 0 and id = #{jxId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findDriveSchoolCourse" resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse">
|
<select id="findDriveSchoolCourse" resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse">
|
||||||
select * from drive_school_course where id = #{courseId}
|
select * from drive_school_course where deleted = 0 and id = #{courseId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findPayById" resultType="cn.iocoder.yudao.module.jx.payment.entity.PayEntity">
|
<select id="findPayById" resultType="cn.iocoder.yudao.module.jx.payment.entity.PayEntity">
|
||||||
select * from drive_school_pay where id = #{userId}
|
select * from drive_school_pay where deleted = 0 and id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findPayByPhoneList" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
<select id="findPayByPhoneList" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
||||||
select * from drive_school_pay where phone = #{phone}
|
select * from drive_school_pay where deleted = 0 and phone = #{phone}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findPayByUserIdList" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
<select id="findPayByUserIdList" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
||||||
select * from drive_school_pay where userId = #{userId}
|
select * from drive_school_pay where deleted = 0 and userId = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findPayListAllNumber" resultType="java.lang.Integer">
|
<select id="findPayListAllNumber" resultType="java.lang.Integer">
|
||||||
@ -52,30 +52,30 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findPayListAfternoonNumber" resultType="java.lang.Integer">
|
<select id="findPayListAfternoonNumber" resultType="java.lang.Integer">
|
||||||
select count(*) from drive_school_pay where afternoon = 1
|
select count(*) from drive_school_pay where deleted = 0 and afternoon = 1
|
||||||
</select>
|
</select>
|
||||||
<select id="findPayByUserId" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
<select id="findPayByUserId" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
||||||
select * from drive_school_pay where userId = #{userId} and jlId is not null
|
select * from drive_school_pay where deleted = 0 and userId = #{userId} and jlId is not null
|
||||||
order by createTime desc
|
order by createTime desc
|
||||||
limit 1
|
limit 1
|
||||||
</select>
|
</select>
|
||||||
<select id="findCurrentJlCount" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
<select id="findCurrentJlCount" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
||||||
select * from drive_school_pay where jlId = #{jlId}
|
select * from drive_school_pay where deleted = 0 and jlId = #{jlId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findStuCount" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
<select id="findStuCount" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
||||||
select * from drive_school_pay where jlId = #{jlId}
|
select * from drive_school_pay where deleted = 0 and jlId = #{jlId}
|
||||||
</select>
|
</select>
|
||||||
<select id="findPayListByUserId" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
<select id="findPayListByUserId" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
||||||
select * from drive_school_pay where userId = #{userId}
|
select * from drive_school_pay where deleted = 0 and userId = #{userId}
|
||||||
</select>
|
</select>
|
||||||
<select id="findPayByUserIdOne" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
<select id="findPayByUserIdOne" resultType="cn.iocoder.yudao.module.jx.payment.vo.PayVo">
|
||||||
select * from drive_school_pay where userId = #{userId} group by createTime
|
select * from drive_school_pay where deleted = 0 and userId = #{userId} group by createTime
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectByUserId" resultType="Integer">
|
<select id="selectByUserId" resultType="Integer">
|
||||||
select jlId from drive_school_pay where userId = #{userId} limit 1
|
select jlId from drive_school_pay where deleted = 0 and userId = #{userId} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
<select id="selectDriveSchoolBookingList" parameterType="cn.iocoder.yudao.module.jx.payment.entity.DriveSchoolBooking" resultMap="DriveSchoolBookingResult">
|
<select id="selectDriveSchoolBookingList" parameterType="cn.iocoder.yudao.module.jx.payment.entity.DriveSchoolBooking" resultMap="DriveSchoolBookingResult">
|
||||||
<include refid="selectDriveSchoolBookingVo"/>
|
<include refid="selectDriveSchoolBookingVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.jlId != null "> and jlId = #{entity.jlId}</if>
|
<if test="entity.jlId != null "> and jlId = #{entity.jlId}</if>
|
||||||
<if test="entity.jxId != null "> and jxId = #{entity.jxId}</if>
|
<if test="entity.jxId != null "> and jxId = #{entity.jxId}</if>
|
||||||
<if test="entity.isMorning != null "> and isMorning = #{entity.isMorning}</if>
|
<if test="entity.isMorning != null "> and isMorning = #{entity.isMorning}</if>
|
||||||
|
@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCarList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCar" resultMap="DriveSchoolCarResult">
|
<select id="selectDriveSchoolCarList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCar" resultMap="DriveSchoolCarResult">
|
||||||
<include refid="selectDriveSchoolCarVo"/>
|
<include refid="selectDriveSchoolCarVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.brand != null and entity.brand != ''"> and brand = #{entity.brand}</if>
|
<if test="entity.brand != null and entity.brand != ''"> and brand = #{entity.brand}</if>
|
||||||
<if test="entity.carModel != null and entity.carModel != ''"> and car_model = #{entity.carModel}</if>
|
<if test="entity.carModel != null and entity.carModel != ''"> and car_model = #{entity.carModel}</if>
|
||||||
@ -58,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCarListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCar" resultMap="DriveSchoolCarResult">
|
<select id="selectDriveSchoolCarListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCar" resultMap="DriveSchoolCarResult">
|
||||||
<include refid="selectDriveSchoolCarVo"/>
|
<include refid="selectDriveSchoolCarVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.brand != null and entity.brand != ''"> and brand = #{entity.brand}</if>
|
<if test="entity.brand != null and entity.brand != ''"> and brand = #{entity.brand}</if>
|
||||||
<if test="entity.carModel != null and entity.carModel != ''"> and car_model = #{entity.carModel}</if>
|
<if test="entity.carModel != null and entity.carModel != ''"> and car_model = #{entity.carModel}</if>
|
||||||
@ -175,7 +177,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectByCarNo" parameterType="String" resultMap="DriveSchoolCarResult">
|
<select id="selectByCarNo" parameterType="String" resultMap="DriveSchoolCarResult">
|
||||||
<include refid="selectDriveSchoolCarVo"/>
|
<include refid="selectDriveSchoolCarVo"/>
|
||||||
where car_no = #{carNo}
|
where deleted = 0 and car_no = #{carNo}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCarRepairList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCarRepair" resultMap="DriveSchoolCarRepairResult">
|
<select id="selectDriveSchoolCarRepairList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCarRepair" resultMap="DriveSchoolCarRepairResult">
|
||||||
<include refid="selectDriveSchoolCarRepairVo"/>
|
<include refid="selectDriveSchoolCarRepairVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
||||||
<if test="entity.userName != null "> and user_name like concat('%',#{entity.userName},'%')</if>
|
<if test="entity.userName != null "> and user_name like concat('%',#{entity.userName},'%')</if>
|
||||||
@ -52,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCarRepairListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCarRepair" resultMap="DriveSchoolCarRepairResult">
|
<select id="selectDriveSchoolCarRepairListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCarRepair" resultMap="DriveSchoolCarRepairResult">
|
||||||
<include refid="selectDriveSchoolCarRepairVo"/>
|
<include refid="selectDriveSchoolCarRepairVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
||||||
<if test="entity.userName != null "> and user_name like concat('%',#{entity.userName},'%')</if>
|
<if test="entity.userName != null "> and user_name like concat('%',#{entity.userName},'%')</if>
|
||||||
|
@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCheckList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCheck" resultMap="DriveSchoolCheckResult">
|
<select id="selectDriveSchoolCheckList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCheck" resultMap="DriveSchoolCheckResult">
|
||||||
<include refid="selectDriveSchoolCheckVo"/>
|
<include refid="selectDriveSchoolCheckVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
||||||
<if test="entity.userName != null and entity.userName != ''"> and user_name like concat('%', #{entity.userName}, '%')</if>
|
<if test="entity.userName != null and entity.userName != ''"> and user_name like concat('%', #{entity.userName}, '%')</if>
|
||||||
|
@ -40,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCoachList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach" resultMap="DriveSchoolCoachResult">
|
<select id="selectDriveSchoolCoachList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach" resultMap="DriveSchoolCoachResult">
|
||||||
<include refid="selectDriveSchoolCoachVo"/>
|
<include refid="selectDriveSchoolCoachVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.id != null "> and id = #{entity.id}</if>
|
<if test="entity.id != null "> and id = #{entity.id}</if>
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.image != null and entity.image != ''"> and image = #{entity.image}</if>
|
<if test="entity.image != null and entity.image != ''"> and image = #{entity.image}</if>
|
||||||
@ -59,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCoachListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach" resultMap="DriveSchoolCoachResult">
|
<select id="selectDriveSchoolCoachListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach" resultMap="DriveSchoolCoachResult">
|
||||||
<include refid="selectDriveSchoolCoachVo"/>
|
<include refid="selectDriveSchoolCoachVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.id != null "> and id = #{entity.id}</if>
|
<if test="entity.id != null "> and id = #{entity.id}</if>
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.image != null and entity.image != ''"> and image = #{entity.image}</if>
|
<if test="entity.image != null and entity.image != ''"> and image = #{entity.image}</if>
|
||||||
@ -84,18 +86,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
select
|
select
|
||||||
dsc.*
|
dsc.*
|
||||||
from drive_school_pay dsp join drive_school_coach dsc on dsp.jlId = dsc.id
|
from drive_school_pay dsp join drive_school_coach dsc on dsp.jlId = dsc.id
|
||||||
where dsp.userId = #{userId} and jlId is not null
|
where dsp.deleted = 0 and dsp.userId = #{userId} and jlId is not null
|
||||||
order by dsp.createTime desc
|
order by dsp.createTime desc
|
||||||
limit 1
|
limit 1
|
||||||
</select>
|
</select>
|
||||||
<select id="findCoachByCoachName" resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach">
|
<select id="findCoachByCoachName" resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach">
|
||||||
select * from drive_school_coach where instructor_name = #{coachName}
|
select * from drive_school_coach where deleted = 0 and instructor_name = #{coachName}
|
||||||
</select>
|
</select>
|
||||||
<select id="findInfoByJxId" resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach">
|
<select id="findInfoByJxId" resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach">
|
||||||
select * from drive_school_info where id = #{jxId}
|
select * from drive_school_info where id = #{jxId}
|
||||||
</select>
|
</select>
|
||||||
<select id="findJlByDeptId" resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach">
|
<select id="findJlByDeptId" resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach">
|
||||||
select * from drive_school_coach where dept_id = #{deptId}
|
select * from drive_school_coach where deleted = 0 and dept_id = #{deptId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertDriveSchoolCoach" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach">
|
<insert id="insertDriveSchoolCoach" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCoach">
|
||||||
@ -195,7 +197,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectByPhonenumber" parameterType="String" resultMap="DriveSchoolCoachResult">
|
<select id="selectByPhonenumber" parameterType="String" resultMap="DriveSchoolCoachResult">
|
||||||
<include refid="selectDriveSchoolCoachVo"/>
|
<include refid="selectDriveSchoolCoachVo"/>
|
||||||
where phone = #{phonenumber}
|
where deleted = 0 and phone = #{phonenumber}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolContractList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolContract" resultMap="DriveSchoolContractResult">
|
<select id="selectDriveSchoolContractList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolContract" resultMap="DriveSchoolContractResult">
|
||||||
<include refid="selectDriveSchoolContractVo"/>
|
<include refid="selectDriveSchoolContractVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
||||||
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
||||||
|
@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCourseList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse" resultMap="DriveSchoolCourseResult">
|
<select id="selectDriveSchoolCourseList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse" resultMap="DriveSchoolCourseResult">
|
||||||
<include refid="selectDriveSchoolCourseVo"/>
|
<include refid="selectDriveSchoolCourseVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.id != null "> and id = #{entity.id}</if>
|
<if test="entity.id != null "> and id = #{entity.id}</if>
|
||||||
<if test="entity.automatic != null "> and automatic = #{entity.automatic}</if>
|
<if test="entity.automatic != null "> and automatic = #{entity.automatic}</if>
|
||||||
<if test="entity.license != null "> and license = #{entity.license}</if>
|
<if test="entity.license != null "> and license = #{entity.license}</if>
|
||||||
@ -50,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCourseAppletList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse" resultMap="DriveSchoolCourseResult">
|
<select id="selectDriveSchoolCourseAppletList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse" resultMap="DriveSchoolCourseResult">
|
||||||
<include refid="selectDriveSchoolCourseVo"/>
|
<include refid="selectDriveSchoolCourseVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.id != null "> and id = #{entity.id}</if>
|
<if test="entity.id != null "> and id = #{entity.id}</if>
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.type != null and entity.type != ''"> and type = #{entity.type}</if>
|
<if test="entity.type != null and entity.type != ''"> and type = #{entity.type}</if>
|
||||||
@ -66,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCourseAppletListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse" resultMap="DriveSchoolCourseResult">
|
<select id="selectDriveSchoolCourseAppletListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse" resultMap="DriveSchoolCourseResult">
|
||||||
<include refid="selectDriveSchoolCourseVo"/>
|
<include refid="selectDriveSchoolCourseVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.id != null "> and id = #{entity.id}</if>
|
<if test="entity.id != null "> and id = #{entity.id}</if>
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.type != null and entity.type != ''"> and type = #{entity.type}</if>
|
<if test="entity.type != null and entity.type != ''"> and type = #{entity.type}</if>
|
||||||
@ -82,6 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCourseAppletFavorableListList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse" resultMap="DriveSchoolCourseResult">
|
<select id="selectDriveSchoolCourseAppletFavorableListList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse" resultMap="DriveSchoolCourseResult">
|
||||||
<include refid="selectDriveSchoolCourseVo"/>
|
<include refid="selectDriveSchoolCourseVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="id != null "> and id = #{id}</if>
|
<if test="id != null "> and id = #{id}</if>
|
||||||
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||||
<if test="type != null and type != ''"> and type = #{type}</if>
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||||
@ -103,7 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="findSchoolCourseByOrderNumber"
|
<select id="findSchoolCourseByOrderNumber"
|
||||||
resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse">
|
resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourse">
|
||||||
select dsc.* from drive_school_pay dsp join
|
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}, '%')
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCourseOrderList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourseOrder" resultMap="DriveSchoolCourseOrderResult">
|
<select id="selectDriveSchoolCourseOrderList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCourseOrder" resultMap="DriveSchoolCourseOrderResult">
|
||||||
<include refid="selectDriveSchoolCourseOrderVo"/>
|
<include refid="selectDriveSchoolCourseOrderVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.orderNo != null and entity.orderNo != ''"> and order_no = #{entity.orderNo}</if>
|
<if test="entity.orderNo != null and entity.orderNo != ''"> and order_no = #{entity.orderNo}</if>
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
||||||
|
@ -35,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolCredentialsList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCredentials" resultMap="DriveSchoolCredentialsResult">
|
<select id="selectDriveSchoolCredentialsList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCredentials" resultMap="DriveSchoolCredentialsResult">
|
||||||
<include refid="selectDriveSchoolCredentialsVo"/>
|
<include refid="selectDriveSchoolCredentialsVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.schoolName != null and entity.schoolName != ''"> and school_name like concat('%', #{entity.schoolName}, '%')</if>
|
<if test="entity.schoolName != null and entity.schoolName != ''"> and school_name like concat('%', #{entity.schoolName}, '%')</if>
|
||||||
<if test="entity.businessLicenseNumber != null and entity.businessLicenseNumber != ''"> and business_license_number = #{entity.businessLicenseNumber}</if>
|
<if test="entity.businessLicenseNumber != null and entity.businessLicenseNumber != ''"> and business_license_number = #{entity.businessLicenseNumber}</if>
|
||||||
<if test="entity.legalRepresentative != null and entity.legalRepresentative != ''"> and legal_representative like concat('%', #{entity.legalRepresentative}, '%')</if>
|
<if test="entity.legalRepresentative != null and entity.legalRepresentative != ''"> and legal_representative like concat('%', #{entity.legalRepresentative}, '%')</if>
|
||||||
|
@ -28,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolDailyManagementList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDailyManagement" resultMap="DriveSchoolDailyManagementResult">
|
<select id="selectDriveSchoolDailyManagementList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDailyManagement" resultMap="DriveSchoolDailyManagementResult">
|
||||||
<include refid="selectDriveSchoolDailyManagementVo"/>
|
<include refid="selectDriveSchoolDailyManagementVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.logName != null and entity.logName != ''"> and log_name like concat('%', #{entity.logName}, '%')</if>
|
<if test="entity.logName != null and entity.logName != ''"> and log_name like concat('%', #{entity.logName}, '%')</if>
|
||||||
<if test="entity.completionStatus != null and entity.completionStatus != ''"> and completion_status = #{entity.completionStatus}</if>
|
<if test="entity.completionStatus != null and entity.completionStatus != ''"> and completion_status = #{entity.completionStatus}</if>
|
||||||
<if test="entity.completionCover != null and entity.completionCover != ''"> and completion_cover = #{entity.completionCover}</if>
|
<if test="entity.completionCover != null and entity.completionCover != ''"> and completion_cover = #{entity.completionCover}</if>
|
||||||
|
@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolDeductList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDeduct" resultMap="DriveSchoolDeductResult">
|
<select id="selectDriveSchoolDeductList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDeduct" resultMap="DriveSchoolDeductResult">
|
||||||
<include refid="selectDriveSchoolDeductVo"/>
|
<include refid="selectDriveSchoolDeductVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.deduct != null "> and deduct = #{entity.deduct}</if>
|
<if test="entity.deduct != null "> and deduct = #{entity.deduct}</if>
|
||||||
<if test="entity.courseSubject != null and entity.courseSubject != ''"> and course_subject = #{entity.courseSubject}</if>
|
<if test="entity.courseSubject != null and entity.courseSubject != ''"> and course_subject = #{entity.courseSubject}</if>
|
||||||
@ -32,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolDeductListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDeduct" resultMap="DriveSchoolDeductResult">
|
<select id="selectDriveSchoolDeductListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDeduct" resultMap="DriveSchoolDeductResult">
|
||||||
<include refid="selectDriveSchoolDeductVo"/>
|
<include refid="selectDriveSchoolDeductVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.deduct != null "> and deduct = #{entity.deduct}</if>
|
<if test="entity.deduct != null "> and deduct = #{entity.deduct}</if>
|
||||||
<if test="entity.courseSubject != null and entity.courseSubject != ''"> and course_subject = #{entity.courseSubject}</if>
|
<if test="entity.courseSubject != null and entity.courseSubject != ''"> and course_subject = #{entity.courseSubject}</if>
|
||||||
@ -94,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectByCondition" resultMap="DriveSchoolDeductResult">
|
<select id="selectByCondition" resultMap="DriveSchoolDeductResult">
|
||||||
select * from drive_school_deduct
|
select * from drive_school_deduct
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||||
<if test="courseSubject != null and courseSubject != ''"> and course_subject = #{courseSubject}</if>
|
<if test="courseSubject != null and courseSubject != ''"> and course_subject = #{courseSubject}</if>
|
||||||
</where>
|
</where>
|
||||||
|
@ -26,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolDialList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDial" resultMap="DriveSchoolDialResult">
|
<select id="selectDriveSchoolDialList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDial" resultMap="DriveSchoolDialResult">
|
||||||
<include refid="selectDriveSchoolDialVo"/>
|
<include refid="selectDriveSchoolDialVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
||||||
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
||||||
@ -39,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolDialListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDial" resultMap="DriveSchoolDialResult">
|
<select id="selectDriveSchoolDialListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDial" resultMap="DriveSchoolDialResult">
|
||||||
<include refid="selectDriveSchoolDialVo"/>
|
<include refid="selectDriveSchoolDialVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
||||||
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
||||||
|
@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolDynamicList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDynamic" resultMap="DriveSchoolDynamicResult">
|
<select id="selectDriveSchoolDynamicList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDynamic" resultMap="DriveSchoolDynamicResult">
|
||||||
<include refid="selectDriveSchoolDynamicVo"/>
|
<include refid="selectDriveSchoolDynamicVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.cover != null and entity.cover != ''"> and cover = #{entity.cover}</if>
|
<if test="entity.cover != null and entity.cover != ''"> and cover = #{entity.cover}</if>
|
||||||
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
||||||
@ -34,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolDynamicListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDynamic" resultMap="DriveSchoolDynamicResult">
|
<select id="selectDriveSchoolDynamicListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolDynamic" resultMap="DriveSchoolDynamicResult">
|
||||||
<include refid="selectDriveSchoolDynamicVo"/>
|
<include refid="selectDriveSchoolDynamicVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.cover != null and entity.cover != ''"> and cover = #{entity.cover}</if>
|
<if test="entity.cover != null and entity.cover != ''"> and cover = #{entity.cover}</if>
|
||||||
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
||||||
|
@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolExamPassList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolExamPass" resultMap="DriveSchoolExamPassResult">
|
<select id="selectDriveSchoolExamPassList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolExamPass" resultMap="DriveSchoolExamPassResult">
|
||||||
<include refid="selectDriveSchoolExamPassVo"/>
|
<include refid="selectDriveSchoolExamPassVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.jxId != null "> and jxId = #{entity.jxId}</if>
|
<if test="entity.jxId != null "> and jxId = #{entity.jxId}</if>
|
||||||
<if test="entity.name != null and entity.name != ''"> and name like concat('%', #{entity.name}, '%')</if>
|
<if test="entity.name != null and entity.name != ''"> and name like concat('%', #{entity.name}, '%')</if>
|
||||||
<if test="entity.phone != null and entity.phone != ''"> and phone = #{entity.phone}</if>
|
<if test="entity.phone != null and entity.phone != ''"> and phone = #{entity.phone}</if>
|
||||||
@ -143,12 +144,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectDriveSchoolExamPassByUserId" parameterType="Long" resultMap="DriveSchoolExamPassResult">
|
<select id="selectDriveSchoolExamPassByUserId" parameterType="Long" resultMap="DriveSchoolExamPassResult">
|
||||||
<include refid="selectDriveSchoolExamPassVo"/>
|
<include refid="selectDriveSchoolExamPassVo"/>
|
||||||
where userId = #{userId}
|
where deleted = 0 and userId = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkList" parameterType="Long" resultMap="DriveSchoolExamPassResult">
|
<select id="checkList" parameterType="Long" resultMap="DriveSchoolExamPassResult">
|
||||||
select * from drive_school_exam_pass
|
select * from drive_school_exam_pass
|
||||||
where jlId = #{userId}
|
where deleted = 0 and jlId = #{userId}
|
||||||
order by create_time desc
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -156,6 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
SELECT id,jlName,sum(deduct) deduct,payd_time,jlId
|
SELECT id,jlName,sum(deduct) deduct,payd_time,jlId
|
||||||
from drive_school_exam_pass
|
from drive_school_exam_pass
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
payState = 1
|
payState = 1
|
||||||
and status = 1
|
and status = 1
|
||||||
<if test="entity.payStartTimes != null and entity.payEndTimes != null"> and payd_time between #{entity.payStartTimes} and #{entity.payEndTimes}</if>
|
<if test="entity.payStartTimes != null and entity.payEndTimes != null"> and payd_time between #{entity.payStartTimes} and #{entity.payEndTimes}</if>
|
||||||
@ -170,6 +172,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
SELECT id,jlName,sum(deduct) deduct,payd_time,jlId
|
SELECT id,jlName,sum(deduct) deduct,payd_time,jlId
|
||||||
from drive_school_exam_pass
|
from drive_school_exam_pass
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
payState = 1
|
payState = 1
|
||||||
<if test="payStartTimes != null and payEndTimes != null"> and payd_time between #{payStartTimes} and #{payEndTimes}</if>
|
<if test="payStartTimes != null and payEndTimes != null"> and payd_time between #{payStartTimes} and #{payEndTimes}</if>
|
||||||
<if test="jlName != null and jlName != ''"> and jlName like concat('%', #{jlName}, '%')</if>
|
<if test="jlName != null and jlName != ''"> and jlName like concat('%', #{jlName}, '%')</if>
|
||||||
@ -183,6 +186,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
SELECT id,jlName,sum(deduct) deduct,payd_time,jlId
|
SELECT id,jlName,sum(deduct) deduct,payd_time,jlId
|
||||||
from drive_school_exam_pass
|
from drive_school_exam_pass
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
payState = 1
|
payState = 1
|
||||||
<if test="payStartTimes != null and payEndTimes != null"> and payd_time between #{payStartTimes} and #{payEndTimes}</if>
|
<if test="payStartTimes != null and payEndTimes != null"> and payd_time between #{payStartTimes} and #{payEndTimes}</if>
|
||||||
<if test="jlName != null and jlName != ''"> and jlName like concat('%', #{jlName}, '%')</if>
|
<if test="jlName != null and jlName != ''"> and jlName like concat('%', #{jlName}, '%')</if>
|
||||||
@ -195,6 +199,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
SELECT id,jlName,sum(deduct) deduct,payd_time,jlId
|
SELECT id,jlName,sum(deduct) deduct,payd_time,jlId
|
||||||
from drive_school_exam_pass
|
from drive_school_exam_pass
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
payState = '0'
|
payState = '0'
|
||||||
<if test="payStartTimes != null and payEndTimes != null"> payd_time between #{payStartTimes} and #{payEndTimes}</if>
|
<if test="payStartTimes != null and payEndTimes != null"> payd_time between #{payStartTimes} and #{payEndTimes}</if>
|
||||||
<if test="jlName != null and jlName != ''"> and jlName like concat('%', #{jlName}, '%')</if>
|
<if test="jlName != null and jlName != ''"> and jlName like concat('%', #{jlName}, '%')</if>
|
||||||
@ -210,6 +215,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
SELECT id,jlName,sum(deduct) deduct,payd_time,jlId
|
SELECT id,jlName,sum(deduct) deduct,payd_time,jlId
|
||||||
from drive_school_exam_pass
|
from drive_school_exam_pass
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
payState = '0'
|
payState = '0'
|
||||||
<if test="payStartTimes != null and payEndTimes != null"> payd_time between #{payStartTimes} and #{payEndTimes}</if>
|
<if test="payStartTimes != null and payEndTimes != null"> payd_time between #{payStartTimes} and #{payEndTimes}</if>
|
||||||
<if test="jlName != null and jlName != ''"> and jlName like concat('%', #{jlName}, '%')</if>
|
<if test="jlName != null and jlName != ''"> and jlName like concat('%', #{jlName}, '%')</if>
|
||||||
|
@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolFacilityList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFacility" resultMap="DriveSchoolFacilityResult">
|
<select id="selectDriveSchoolFacilityList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFacility" resultMap="DriveSchoolFacilityResult">
|
||||||
<include refid="selectDriveSchoolFacilityVo"/>
|
<include refid="selectDriveSchoolFacilityVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.facilityName != null and entity.facilityName != ''"> and facility_name like concat('%', #{entity.facilityName}, '%')</if>
|
<if test="entity.facilityName != null and entity.facilityName != ''"> and facility_name like concat('%', #{entity.facilityName}, '%')</if>
|
||||||
<if test="entity.facilityNumber != null "> and facility_number = #{entity.facilityNumber}</if>
|
<if test="entity.facilityNumber != null "> and facility_number = #{entity.facilityNumber}</if>
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
<select id="selectDriveSchoolFeedbackList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFeedback" resultMap="DriveSchoolFeedbackResult">
|
<select id="selectDriveSchoolFeedbackList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFeedback" resultMap="DriveSchoolFeedbackResult">
|
||||||
<include refid="selectDriveSchoolFeedbackVo"/>
|
<include refid="selectDriveSchoolFeedbackVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.userId != null "> and userId = #{entity.userId}</if>
|
<if test="entity.userId != null "> and userId = #{entity.userId}</if>
|
||||||
<if test="entity.jxName != null and entity.jxName != ''"> and jxName like concat('%',#{entity.jxName},'%') </if>
|
<if test="entity.jxName != null and entity.jxName != ''"> and jxName like concat('%',#{entity.jxName},'%') </if>
|
||||||
<if test="entity.jlName != null and entity.jlName != ''"> and jlName like concat('%',#{entity.jlName},'%')</if>
|
<if test="entity.jlName != null and entity.jlName != ''"> and jlName like concat('%',#{entity.jlName},'%')</if>
|
||||||
@ -40,6 +41,7 @@
|
|||||||
<select id="selectDriveSchoolFeedbackListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFeedback" resultMap="DriveSchoolFeedbackResult">
|
<select id="selectDriveSchoolFeedbackListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFeedback" resultMap="DriveSchoolFeedbackResult">
|
||||||
<include refid="selectDriveSchoolFeedbackVo"/>
|
<include refid="selectDriveSchoolFeedbackVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.userId != null "> and userId = #{entity.userId}</if>
|
<if test="entity.userId != null "> and userId = #{entity.userId}</if>
|
||||||
<if test="entity.jxName != null and entity.jxName != ''"> and jxName like concat('%',#{entity.jxName},'%') </if>
|
<if test="entity.jxName != null and entity.jxName != ''"> and jxName like concat('%',#{entity.jxName},'%') </if>
|
||||||
<if test="entity.jlName != null and entity.jlName != ''"> and jlName like concat('%',#{entity.jlName},'%')</if>
|
<if test="entity.jlName != null and entity.jlName != ''"> and jlName like concat('%',#{entity.jlName},'%')</if>
|
||||||
@ -51,6 +53,7 @@
|
|||||||
<select id="likeOne" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFeedback" resultType="Integer">
|
<select id="likeOne" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFeedback" resultType="Integer">
|
||||||
select count(1) total from drive_school_feedback
|
select count(1) total from drive_school_feedback
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
likes = '1'
|
likes = '1'
|
||||||
<if test="jxId != null "> and jxId = #{jxId}</if>
|
<if test="jxId != null "> and jxId = #{jxId}</if>
|
||||||
</where>
|
</where>
|
||||||
@ -60,6 +63,7 @@
|
|||||||
<select id="likeTwo" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFeedback" resultType="Integer">
|
<select id="likeTwo" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFeedback" resultType="Integer">
|
||||||
select count(1) total from drive_school_feedback
|
select count(1) total from drive_school_feedback
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
likes = '2'
|
likes = '2'
|
||||||
<if test="jxId != null "> and jxId = #{jxId}</if>
|
<if test="jxId != null "> and jxId = #{jxId}</if>
|
||||||
</where>
|
</where>
|
||||||
@ -69,6 +73,7 @@
|
|||||||
<include refid="selectDriveSchoolFeedbackVo"/>
|
<include refid="selectDriveSchoolFeedbackVo"/>
|
||||||
select count(1) total from drive_school_feedback
|
select count(1) total from drive_school_feedback
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
likes = '3'
|
likes = '3'
|
||||||
<if test="jxId != null "> and jxId = #{jxId}</if>
|
<if test="jxId != null "> and jxId = #{jxId}</if>
|
||||||
</where>
|
</where>
|
||||||
|
@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolFileList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFile" resultMap="DriveSchoolFileResult">
|
<select id="selectDriveSchoolFileList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFile" resultMap="DriveSchoolFileResult">
|
||||||
<include refid="selectDriveSchoolFileVo"/>
|
<include refid="selectDriveSchoolFileVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.fileType != null and entity.fileType != ''"> and file_type = #{entity.fileType}</if>
|
<if test="entity.fileType != null and entity.fileType != ''"> and file_type = #{entity.fileType}</if>
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.fileAddress != null and entity.fileAddress != ''"> and file_address = #{entity.fileAddress}</if>
|
<if test="entity.fileAddress != null and entity.fileAddress != ''"> and file_address = #{entity.fileAddress}</if>
|
||||||
@ -32,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolFileListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFile" resultMap="DriveSchoolFileResult">
|
<select id="selectDriveSchoolFileListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolFile" resultMap="DriveSchoolFileResult">
|
||||||
<include refid="selectDriveSchoolFileVo"/>
|
<include refid="selectDriveSchoolFileVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.fileType != null and entity.fileType != ''"> and file_type = #{entity.fileType}</if>
|
<if test="entity.fileType != null and entity.fileType != ''"> and file_type = #{entity.fileType}</if>
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.fileAddress != null and entity.fileAddress != ''"> and file_address = #{entity.fileAddress}</if>
|
<if test="entity.fileAddress != null and entity.fileAddress != ''"> and file_address = #{entity.fileAddress}</if>
|
||||||
@ -94,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="getOneFile" parameterType="Long" resultMap="DriveSchoolFileResult">
|
<select id="getOneFile" parameterType="Long" resultMap="DriveSchoolFileResult">
|
||||||
<include refid="selectDriveSchoolFileVo"/>
|
<include refid="selectDriveSchoolFileVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="fileType != null and fileType != ''"> and file_type = #{fileType}</if>
|
<if test="fileType != null and fileType != ''"> and file_type = #{fileType}</if>
|
||||||
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||||
<if test="fileAddress != null and fileAddress != ''"> and file_address = #{fileAddress}</if>
|
<if test="fileAddress != null and fileAddress != ''"> and file_address = #{fileAddress}</if>
|
||||||
|
@ -50,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolInfoList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolInfo" resultMap="DriveSchoolInfoResult">
|
<select id="selectDriveSchoolInfoList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolInfo" resultMap="DriveSchoolInfoResult">
|
||||||
<include refid="selectDriveSchoolInfoVo"/>
|
<include refid="selectDriveSchoolInfoVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="id != null "> and id = #{id}</if>
|
<if test="id != null "> and id = #{id}</if>
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.schoolName != null and entity.schoolName != ''"> and school_name like concat('%', #{entity.schoolName}, '%')</if>
|
<if test="entity.schoolName != null and entity.schoolName != ''"> and school_name like concat('%', #{entity.schoolName}, '%')</if>
|
||||||
@ -151,7 +152,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="getSchoolInfoByDeptId" parameterType="Long" resultMap="DriveSchoolInfoVOResult">
|
<select id="getSchoolInfoByDeptId" parameterType="Long" resultMap="DriveSchoolInfoVOResult">
|
||||||
<include refid="selectDriveSchoolInfoVo"/>
|
<include refid="selectDriveSchoolInfoVo"/>
|
||||||
where dept_id = #{deptId}
|
where deleted = 0 and dept_id = #{deptId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findInfoByJxId" parameterType="Long" resultMap="DriveSchoolInfoVOResult">
|
<select id="findInfoByJxId" parameterType="Long" resultMap="DriveSchoolInfoVOResult">
|
||||||
|
@ -29,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolInsuranceList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolInsurance" resultMap="DriveSchoolInsuranceResult">
|
<select id="selectDriveSchoolInsuranceList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolInsurance" resultMap="DriveSchoolInsuranceResult">
|
||||||
<include refid="selectDriveSchoolInsuranceVo"/>
|
<include refid="selectDriveSchoolInsuranceVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
||||||
<if test="entity.userName != null "> and user_name = #{entity.userName}</if>
|
<if test="entity.userName != null "> and user_name = #{entity.userName}</if>
|
||||||
|
@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolNewsList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolNews" resultMap="DriveSchoolNewsResult">
|
<select id="selectDriveSchoolNewsList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolNews" resultMap="DriveSchoolNewsResult">
|
||||||
<include refid="selectDriveSchoolNewsVo"/>
|
<include refid="selectDriveSchoolNewsVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.cover != null and entity.cover != ''"> and cover = #{entity.cover}</if>
|
<if test="entity.cover != null and entity.cover != ''"> and cover = #{entity.cover}</if>
|
||||||
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
||||||
@ -34,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolNewsListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolNews" resultMap="DriveSchoolNewsResult">
|
<select id="selectDriveSchoolNewsListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolNews" resultMap="DriveSchoolNewsResult">
|
||||||
<include refid="selectDriveSchoolNewsVo"/>
|
<include refid="selectDriveSchoolNewsVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.cover != null and entity.cover != ''"> and cover = #{entity.cover}</if>
|
<if test="entity.cover != null and entity.cover != ''"> and cover = #{entity.cover}</if>
|
||||||
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
||||||
|
@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolNoticeList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolNotice" resultMap="DriveSchoolNoticeResult">
|
<select id="selectDriveSchoolNoticeList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolNotice" resultMap="DriveSchoolNoticeResult">
|
||||||
<include refid="selectDriveSchoolNoticeVo"/>
|
<include refid="selectDriveSchoolNoticeVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
||||||
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
||||||
@ -32,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolNoticeListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolNotice" resultMap="DriveSchoolNoticeResult">
|
<select id="selectDriveSchoolNoticeListAll" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolNotice" resultMap="DriveSchoolNoticeResult">
|
||||||
<include refid="selectDriveSchoolNoticeVo"/>
|
<include refid="selectDriveSchoolNoticeVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
<if test="entity.title != null and entity.title != ''"> and title = #{entity.title}</if>
|
||||||
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
<select id="selectDriveSchoolPayList" parameterType="cn.iocoder.yudao.module.jx.payment.entity.DriveSchoolPay" resultMap="DriveSchoolPayResult">
|
<select id="selectDriveSchoolPayList" parameterType="cn.iocoder.yudao.module.jx.payment.entity.DriveSchoolPay" resultMap="DriveSchoolPayResult">
|
||||||
<include refid="selectDriveSchoolPayVo"/>
|
<include refid="selectDriveSchoolPayVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.name != null and entity.name != ''"> and `name` like concat('%', #{entity.name}, '%')</if>
|
<if test="entity.name != null and entity.name != ''"> and `name` like concat('%', #{entity.name}, '%')</if>
|
||||||
<if test="entity.phone != null and entity.phone != ''"> and phone like concat('%', #{entity.phone}, '%')</if>
|
<if test="entity.phone != null and entity.phone != ''"> and phone like concat('%', #{entity.phone}, '%')</if>
|
||||||
<if test="entity.identity != null and entity.identity != ''"> and identity = #{entity.identity}</if>
|
<if test="entity.identity != null and entity.identity != ''"> and identity = #{entity.identity}</if>
|
||||||
@ -74,6 +75,7 @@
|
|||||||
FROM
|
FROM
|
||||||
drive_school_pay
|
drive_school_pay
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
identity IS NOT NULL
|
identity IS NOT NULL
|
||||||
<if test="entity.type != null and entity.type != ''"> and course_subject = #{entity.type}</if>
|
<if test="entity.type != null and entity.type != ''"> and course_subject = #{entity.type}</if>
|
||||||
<if test="entity.name != null and entity.name != ''"> and `name` like concat('%', #{entity.name}, '%')</if>
|
<if test="entity.name != null and entity.name != ''"> and `name` like concat('%', #{entity.name}, '%')</if>
|
||||||
@ -101,6 +103,7 @@
|
|||||||
drive_school_pay dcp
|
drive_school_pay dcp
|
||||||
inner join drive_school_exam_pass dsep on dcp.phone = dsep.phone
|
inner join drive_school_exam_pass dsep on dcp.phone = dsep.phone
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
identity IS NOT NULL
|
identity IS NOT NULL
|
||||||
<if test="entity.type != null and entity.type != ''"> and course_subject = #{entity.type}</if>
|
<if test="entity.type != null and entity.type != ''"> and course_subject = #{entity.type}</if>
|
||||||
<if test="entity.name != null and entity.name != ''"> and `name` like concat('%', #{entity.name}, '%')</if>
|
<if test="entity.name != null and entity.name != ''"> and `name` like concat('%', #{entity.name}, '%')</if>
|
||||||
@ -128,6 +131,7 @@
|
|||||||
drive_school_pay dcp
|
drive_school_pay dcp
|
||||||
inner join drive_school_exam_pass dsep on dcp.phone = dsep.phone
|
inner join drive_school_exam_pass dsep on dcp.phone = dsep.phone
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
identity IS NOT NULL
|
identity IS NOT NULL
|
||||||
<if test="entity.type != null and entity.type != ''"> and course_subject = #{entity.type}</if>
|
<if test="entity.type != null and entity.type != ''"> and course_subject = #{entity.type}</if>
|
||||||
<if test="entity.name != null and entity.name != ''"> and `name` like concat('%', #{entity.name}, '%')</if>
|
<if test="entity.name != null and entity.name != ''"> and `name` like concat('%', #{entity.name}, '%')</if>
|
||||||
@ -291,6 +295,7 @@
|
|||||||
left join drive_school_course dsc
|
left join drive_school_course dsc
|
||||||
on dsp.courseId = dsc.id
|
on dsp.courseId = dsc.id
|
||||||
<where>
|
<where>
|
||||||
|
dsp.deleted = 0
|
||||||
<if test="entity.name != null and entity.name != ''"> and dsp.`name` like concat('%', #{entity.name}, '%')</if>
|
<if test="entity.name != null and entity.name != ''"> and dsp.`name` like concat('%', #{entity.name}, '%')</if>
|
||||||
<if test="entity.phone != null and entity.phone != ''"> and dsp.phone like concat('%', #{entity.phone}, '%')</if>
|
<if test="entity.phone != null and entity.phone != ''"> and dsp.phone like concat('%', #{entity.phone}, '%')</if>
|
||||||
<if test="entity.identity != null and entity.identity != ''"> and dsp.identity = #{entity.identity}</if>
|
<if test="entity.identity != null and entity.identity != ''"> and dsp.identity = #{entity.identity}</if>
|
||||||
@ -317,6 +322,7 @@
|
|||||||
drive_school_pay dsp
|
drive_school_pay dsp
|
||||||
left join drive_school_course dsc on dsp.courseId = dsc.id
|
left join drive_school_course dsc on dsp.courseId = dsc.id
|
||||||
<where>
|
<where>
|
||||||
|
dsp.deleted = 0
|
||||||
<if test="entity.jxId != null "> and jxId = #{entity.jxId}</if>
|
<if test="entity.jxId != null "> and jxId = #{entity.jxId}</if>
|
||||||
</where>
|
</where>
|
||||||
order by createTime desc
|
order by createTime desc
|
||||||
@ -328,12 +334,12 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getAllMoney" parameterType="Long" resultType="double">
|
<select id="getAllMoney" parameterType="Long" resultType="double">
|
||||||
select count(money) money from drive_school_pay
|
select count(money) money from drive_school_pay where deleted = 0
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getInfoByUserIndenty" parameterType="String" resultMap="DriveSchoolPayResult">
|
<select id="getInfoByUserIndenty" parameterType="String" resultMap="DriveSchoolPayResult">
|
||||||
<include refid="selectDriveSchoolPayVo"/>
|
<include refid="selectDriveSchoolPayVo"/>
|
||||||
where identity = #{userId}
|
where deleted = 0 and identity = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getDeductByUserInfo"
|
<select id="getDeductByUserInfo"
|
||||||
@ -343,6 +349,7 @@
|
|||||||
FROM
|
FROM
|
||||||
drive_school_pay
|
drive_school_pay
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
state != '0'
|
state != '0'
|
||||||
<if test="name != null and name != ''"> and `name` like concat('%', #{name}, '%')</if>
|
<if test="name != null and name != ''"> and `name` like concat('%', #{name}, '%')</if>
|
||||||
<if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
|
<if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
|
||||||
@ -355,18 +362,18 @@
|
|||||||
|
|
||||||
<select id="selectByCoachId" parameterType="Long" resultType="Integer">
|
<select id="selectByCoachId" parameterType="Long" resultType="Integer">
|
||||||
select count(1) count from drive_school_pay
|
select count(1) count from drive_school_pay
|
||||||
where jlId = #{userId}
|
where deleted = 0 and jlId = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectByUserId" parameterType="Long" resultMap="DriveSchoolPayResult">
|
<select id="selectByUserId" parameterType="Long" resultMap="DriveSchoolPayResult">
|
||||||
<include refid="selectDriveSchoolPayVo"/>
|
<include refid="selectDriveSchoolPayVo"/>
|
||||||
where userId = #{userId}
|
where deleted = 0 and userId = #{userId}
|
||||||
limit 1
|
limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectByPhone" parameterType="String" resultMap="DriveSchoolPayResult">
|
<select id="selectByPhone" parameterType="String" resultMap="DriveSchoolPayResult">
|
||||||
<include refid="selectDriveSchoolPayVo"/>
|
<include refid="selectDriveSchoolPayVo"/>
|
||||||
where phone = #{phone}
|
where deleted = 0 and phone = #{phone}
|
||||||
limit 1
|
limit 1
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolPhoneList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolPhone" resultMap="DriveSchoolPhoneResult">
|
<select id="selectDriveSchoolPhoneList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolPhone" resultMap="DriveSchoolPhoneResult">
|
||||||
<include refid="selectDriveSchoolPhoneVo"/>
|
<include refid="selectDriveSchoolPhoneVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
||||||
<if test="entity.userName != null and entity.userName != ''"> and user_name like concat('%', #{entity.userName}, '%')</if>
|
<if test="entity.userName != null and entity.userName != ''"> and user_name like concat('%', #{entity.userName}, '%')</if>
|
||||||
@ -76,7 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteDriveSchoolPhoneById" parameterType="Long">
|
<delete id="deleteDriveSchoolPhoneById" parameterType="Long">
|
||||||
delete from drive_school_phone where id = #{id}
|
delete from drive_school_phone where deleted = 0 and id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteDriveSchoolPhoneByIds" parameterType="String">
|
<delete id="deleteDriveSchoolPhoneByIds" parameterType="String">
|
||||||
@ -88,7 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="getPhone" resultMap="DriveSchoolPhoneResult">
|
<select id="getPhone" resultMap="DriveSchoolPhoneResult">
|
||||||
<include refid="selectDriveSchoolPhoneVo"/>
|
<include refid="selectDriveSchoolPhoneVo"/>
|
||||||
where dept_id = #{deptId}
|
where deleted = 0 and dept_id = #{deptId}
|
||||||
ORDER BY RAND()
|
ORDER BY RAND()
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
</select>
|
</select>
|
||||||
|
@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolReimbursementList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReimbursement" resultMap="DriveSchoolReimbursementResult">
|
<select id="selectDriveSchoolReimbursementList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReimbursement" resultMap="DriveSchoolReimbursementResult">
|
||||||
<include refid="selectDriveSchoolReimbursementVo"/>
|
<include refid="selectDriveSchoolReimbursementVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
||||||
<if test="entity.userName != null and entity.userName != ''"> and user_name like concat('%', #{entity.userName}, '%')</if>
|
<if test="entity.userName != null and entity.userName != ''"> and user_name like concat('%', #{entity.userName}, '%')</if>
|
||||||
|
@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolReservationCourseList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse" resultMap="DriveSchoolReservationCourseResult">
|
<select id="selectDriveSchoolReservationCourseList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse" resultMap="DriveSchoolReservationCourseResult">
|
||||||
<include refid="selectDriveSchoolReservationCourseVo"/>
|
<include refid="selectDriveSchoolReservationCourseVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
<if test="entity.userId != null "> and user_id = #{entity.userId}</if>
|
||||||
<if test="entity.userName != null and entity.userName != ''"> and user_name like concat('%', #{entity.userName}, '%')</if>
|
<if test="entity.userName != null and entity.userName != ''"> and user_name like concat('%', #{entity.userName}, '%')</if>
|
||||||
@ -56,11 +57,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="findCourseByCurrentTimeAndJlName"
|
<select id="findCourseByCurrentTimeAndJlName"
|
||||||
resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse">
|
resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse">
|
||||||
select * from drive_school_reservation_course dsrc
|
select * from drive_school_reservation_course dsrc
|
||||||
join drive_school_coach dsc on dsrc.coach_name = dsc.instructor_name where dsrc.order_time like concat('%', #{currentDate}, '%') and dsc.id = #{jlId}
|
join drive_school_coach dsc on dsrc.coach_name = dsc.instructor_name where dsrc.deleted = 0 and dsrc.order_time like concat('%', #{currentDate}, '%') and dsc.id = #{jlId}
|
||||||
</select>
|
</select>
|
||||||
<select id="findCourseByUserId"
|
<select id="findCourseByUserId"
|
||||||
resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse">
|
resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse">
|
||||||
select * from drive_school_reservation_course where user_id = #{userId}
|
select * from drive_school_reservation_course where deleted = 0 and user_id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertDriveSchoolReservationCourse" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse">
|
<insert id="insertDriveSchoolReservationCourse" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse">
|
||||||
@ -146,39 +147,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="getReservationNumber"
|
<select id="getReservationNumber"
|
||||||
resultType="Integer">
|
resultType="Integer">
|
||||||
select count(1) number from drive_school_reservation_course where dept_id = #{deptId} and account_type = '2'
|
select count(1) number from drive_school_reservation_course where deleted = 0 and dept_id = #{deptId} and account_type = '2'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getReservationNumberThree"
|
<select id="getReservationNumberThree"
|
||||||
resultType="Integer">
|
resultType="Integer">
|
||||||
select count(1) number from drive_school_reservation_course where dept_id = #{deptId} and account_type = '3'
|
select count(1) number from drive_school_reservation_course where deleted = 0 and dept_id = #{deptId} and account_type = '3'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getIsRecdNumber"
|
<select id="getIsRecdNumber"
|
||||||
resultType="Integer">
|
resultType="Integer">
|
||||||
select count(1) number from drive_school_pay where jxId = #{deptId} and state = '3' or jxId = #{deptId} and state = '0'
|
select count(1) number from drive_school_pay where deleted = 0 and jxId = #{deptId} and state = '3' or jxId = #{deptId} and state = '0'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getPaydNumber"
|
<select id="getPaydNumber"
|
||||||
resultType="Integer">
|
resultType="Integer">
|
||||||
select count(1) number from drive_school_pay where jxId = #{deptId} and state = '3'
|
select count(1) number from drive_school_pay where deleted = 0 and jxId = #{deptId} and state = '3'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getSignedNumber"
|
<select id="getSignedNumber"
|
||||||
resultType="Integer">
|
resultType="Integer">
|
||||||
select count(1) number from drive_school_pay where jxId = #{deptId} and isSign = '1' and state = '3'
|
select count(1) number from drive_school_pay where deleted = 0 and jxId = #{deptId} and isSign = '1' and state = '3'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getReservationCourseList"
|
<select id="getReservationCourseList"
|
||||||
resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse">
|
resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse">
|
||||||
select * from drive_school_reservation_course
|
select * from drive_school_reservation_course
|
||||||
where dept_id = #{deptId}
|
where deleted = 0 and dept_id = #{deptId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectDriveSchoolReservationGetListUser" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse" resultMap="DriveSchoolReservationCourseResult">
|
<select id="selectDriveSchoolReservationGetListUser" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolReservationCourse" resultMap="DriveSchoolReservationCourseResult">
|
||||||
<include refid="selectDriveSchoolReservationCourseVo"/>
|
<include refid="selectDriveSchoolReservationCourseVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||||
<if test="userId != null "> and user_id = #{userId}</if>
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||||
@ -198,6 +200,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
FROM
|
FROM
|
||||||
drive_school_reservation_course
|
drive_school_reservation_course
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="userId != null "> and dept_id = #{deptId}</if>
|
<if test="userId != null "> and dept_id = #{deptId}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
@ -206,6 +209,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
SELECT *
|
SELECT *
|
||||||
FROM drive_school_reservation_course
|
FROM drive_school_reservation_course
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
create_time >= NOW() - INTERVAL 1 MONTH
|
create_time >= NOW() - INTERVAL 1 MONTH
|
||||||
<if test="userId != null "> and coach_id = #{userId}</if>
|
<if test="userId != null "> and coach_id = #{userId}</if>
|
||||||
</where>
|
</where>
|
||||||
@ -217,7 +221,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
SELECT *
|
SELECT *
|
||||||
FROM drive_school_reservation_course
|
FROM drive_school_reservation_course
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="userId != null "> and user_id = #{userId}</if>
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
</where>
|
</where>
|
||||||
order by create_time desc
|
order by create_time desc
|
||||||
@ -227,6 +231,7 @@ order by create_time desc
|
|||||||
SELECT *
|
SELECT *
|
||||||
FROM drive_school_reservation_course
|
FROM drive_school_reservation_course
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
audit_status = 0
|
audit_status = 0
|
||||||
<if test="userId != null "> and coach_id = #{userId}</if>
|
<if test="userId != null "> and coach_id = #{userId}</if>
|
||||||
</where>
|
</where>
|
||||||
@ -237,6 +242,7 @@ order by create_time desc
|
|||||||
SELECT *
|
SELECT *
|
||||||
FROM drive_school_reservation_course
|
FROM drive_school_reservation_course
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
audit_status != 0
|
audit_status != 0
|
||||||
<if test="userId != null "> and coach_id = #{userId}</if>
|
<if test="userId != null "> and coach_id = #{userId}</if>
|
||||||
</where>
|
</where>
|
||||||
@ -244,7 +250,7 @@ order by create_time desc
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getReservationNumberByUserId" resultType="Integer">
|
<select id="getReservationNumberByUserId" resultType="Integer">
|
||||||
select distinct count(1) number from drive_school_reservation_course where coach_id = #{userId} and stu_sign_state !='2' or coach_id = #{userId} and coach_sign_state !='2'
|
select distinct count(1) number from drive_school_reservation_course where deleted = 0 and coach_id = #{userId} and stu_sign_state !='2' or coach_id = #{userId} and coach_sign_state !='2'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolSeparateList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolSeparate" resultMap="DriveSchoolSeparateResult">
|
<select id="selectDriveSchoolSeparateList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolSeparate" resultMap="DriveSchoolSeparateResult">
|
||||||
<include refid="selectDriveSchoolSeparateVo"/>
|
<include refid="selectDriveSchoolSeparateVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
||||||
<if test="entity.deptName != null and entity.deptName != ''"> and dept_name like concat('%', #{entity.deptName}, '%')</if>
|
<if test="entity.deptName != null and entity.deptName != ''"> and dept_name like concat('%', #{entity.deptName}, '%')</if>
|
||||||
<if test="entity.money != null "> and money = #{entity.money}</if>
|
<if test="entity.money != null "> and money = #{entity.money}</if>
|
||||||
|
@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolSwiperList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolSwiper" resultMap="DriveSchoolSwiperResult">
|
<select id="selectDriveSchoolSwiperList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolSwiper" resultMap="DriveSchoolSwiperResult">
|
||||||
<include refid="selectDriveSchoolSwiperVo"/>
|
<include refid="selectDriveSchoolSwiperVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="swiperName != null and swiperName != ''"> and swiper_name like concat('%', #{swiperName}, '%')</if>
|
<if test="swiperName != null and swiperName != ''"> and swiper_name like concat('%', #{swiperName}, '%')</if>
|
||||||
<if test="swiperPicture != null and swiperPicture != ''"> and swiper_picture = #{swiperPicture}</if>
|
<if test="swiperPicture != null and swiperPicture != ''"> and swiper_picture = #{swiperPicture}</if>
|
||||||
<if test="jumpUrl != null and jumpUrl != ''"> and jump_url = #{jumpUrl}</if>
|
<if test="jumpUrl != null and jumpUrl != ''"> and jump_url = #{jumpUrl}</if>
|
||||||
|
@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolTextList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolText" resultMap="DriveSchoolTextResult">
|
<select id="selectDriveSchoolTextList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolText" resultMap="DriveSchoolTextResult">
|
||||||
<include refid="selectDriveSchoolTextVo"/>
|
<include refid="selectDriveSchoolTextVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.title != null and entity.title != ''"> and title like concat('%', #{entity.title}, '%') </if>
|
<if test="entity.title != null and entity.title != ''"> and title like concat('%', #{entity.title}, '%') </if>
|
||||||
</where>
|
</where>
|
||||||
order by create_time desc
|
order by create_time desc
|
||||||
|
@ -26,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDriveSchoolUpkeepList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolUpkeep" resultMap="DriveSchoolUpkeepResult">
|
<select id="selectDriveSchoolUpkeepList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolUpkeep" resultMap="DriveSchoolUpkeepResult">
|
||||||
<include refid="selectDriveSchoolUpkeepVo"/>
|
<include refid="selectDriveSchoolUpkeepVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
deleted = 0
|
||||||
<if test="entity.carId != null "> and car_id = #{entity.carId}</if>
|
<if test="entity.carId != null "> and car_id = #{entity.carId}</if>
|
||||||
<if test="entity.maintenanceDate != null "> and maintenance_date = #{entity.maintenanceDate}</if>
|
<if test="entity.maintenanceDate != null "> and maintenance_date = #{entity.maintenanceDate}</if>
|
||||||
<if test="entity.maintenanceMileage != null "> and maintenance_mileage = #{entity.maintenanceMileage}</if>
|
<if test="entity.maintenanceMileage != null "> and maintenance_mileage = #{entity.maintenanceMileage}</if>
|
||||||
|
@ -5,6 +5,6 @@
|
|||||||
<mapper namespace="cn.iocoder.yudao.module.jx.mapper.LJRegionMapper">
|
<mapper namespace="cn.iocoder.yudao.module.jx.mapper.LJRegionMapper">
|
||||||
|
|
||||||
<select id="selectByMap" resultType="cn.iocoder.yudao.module.jx.domain.LJRegion">
|
<select id="selectByMap" resultType="cn.iocoder.yudao.module.jx.domain.LJRegion">
|
||||||
select * from mt_region
|
select * from mt_region where deleted = 0
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -29,7 +29,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectSopeNessList" parameterType="cn.iocoder.yudao.module.jx.domain.SopeNess" resultMap="SopeNessResult">
|
<select id="selectSopeNessList" parameterType="cn.iocoder.yudao.module.jx.domain.SopeNess" resultMap="SopeNessResult">
|
||||||
<include refid="selectSopeNessVo"/>
|
<include refid="selectSopeNessVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
|
deleted = 0
|
||||||
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId} </if>
|
||||||
|
<if test="entity.businessType != null and entity.businessType != ''"> and business_type like concat('%', #{entity.businessType}, '%')</if>
|
||||||
|
<if test="entity.description != null and entity.description != ''"> and description = #{entity.description}</if>
|
||||||
|
<if test="entity.licenseNumber != null and licenseNumber != ''"> and license_number = #{entity.licenseNumber}</if>
|
||||||
|
<if test="entity.licenseIssueDate != null "> and license_issue_date = #{entity.licenseIssueDate}</if>
|
||||||
|
<if test="entity.licenseExpiryDate != null "> and license_expiry_date = #{entity.licenseExpiryDate}</if>
|
||||||
|
<if test="entity.price != null "> and price = #{entity.price}</if>
|
||||||
|
<if test="entity.duration != null and entity.duration != ''"> and duration = #{entity.duration}</if>
|
||||||
|
<if test="entity.notes != null and entity.notes != ''"> and notes = #{notes}</if>
|
||||||
|
<if test="entity.licenseCover != null and entity.licenseCover != ''"> and license_cover = #{entity.licenseCover}</if>
|
||||||
|
or deleted = 0 and dept_id = 100
|
||||||
|
<if test="entity.deptId != null "> and dept_id = #{entity.deptId} </if>
|
||||||
<if test="entity.businessType != null and entity.businessType != ''"> and business_type like concat('%', #{entity.businessType}, '%')</if>
|
<if test="entity.businessType != null and entity.businessType != ''"> and business_type like concat('%', #{entity.businessType}, '%')</if>
|
||||||
<if test="entity.description != null and entity.description != ''"> and description = #{entity.description}</if>
|
<if test="entity.description != null and entity.description != ''"> and description = #{entity.description}</if>
|
||||||
<if test="entity.licenseNumber != null and licenseNumber != ''"> and license_number = #{entity.licenseNumber}</if>
|
<if test="entity.licenseNumber != null and licenseNumber != ''"> and license_number = #{entity.licenseNumber}</if>
|
||||||
|
Loading…
Reference in New Issue
Block a user