From 8b375fe00a241b3a769b82fe3dac8d1c9dce8a02 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 16 Jun 2022 14:36:07 +0800
Subject: [PATCH] 模拟考试修改
---
src/main/java/org/springblade/modules/apply/mapper/ExamPaymentMapper.xml | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/springblade/modules/apply/mapper/ExamPaymentMapper.xml b/src/main/java/org/springblade/modules/apply/mapper/ExamPaymentMapper.xml
index fde187e..25af104 100644
--- a/src/main/java/org/springblade/modules/apply/mapper/ExamPaymentMapper.xml
+++ b/src/main/java/org/springblade/modules/apply/mapper/ExamPaymentMapper.xml
@@ -2,24 +2,38 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.apply.mapper.ExamPaymentMapper">
- <!--考试报名分页信息-->
+ <!--缴费分页信息-->
<select id="selectExamPaymentPage" resultType="org.springblade.modules.apply.vo.ExamPaymentVO">
SELECT
se.*,
+ bu.real_name realName,bu.cardid idCardNo,bu.sex,bu.phone,
bd.dept_name deptName
FROM
sys_exam_payment se
left join
+ blade_user bu
+ on
+ bu.id = se.worker_id
+ left join
blade_dept bd
on
- bd.id = se.worker_id
+ bd.id = bu.dept_id
WHERE
type = 1
<if test="examPayment.workerId!=null and examPayment.workerId!=''">
and se.worker_id like concat('%', #{examPayment.workerId},'%')
</if>
+ <if test="examPayment.deptId!=null and examPayment.deptId!=''">
+ and bd.id = #{examPayment.deptId}
+ </if>
<if test="examPayment.deptName!=null and examPayment.deptName!=''">
and bd.dept_name like concat('%', #{examPayment.deptName},'%')
+ </if>
+ <if test="examPayment.realName!=null and examPayment.realName!=''">
+ and bu.real_name like concat('%', #{examPayment.realName},'%')
+ </if>
+ <if test="examPayment.idCardNo!=null and examPayment.idCardNo!=''">
+ and bu.cardid like concat('%', #{examPayment.idCardNo},'%')
</if>
</select>
@@ -33,6 +47,5 @@
<if test="examPayment.id!=null and examPayment.id!=''">
and id = #{examPayment.id}
</if>
-
</select>
</mapper>
--
Gitblit v1.9.3