Commit 0e8b134c by 春觉晓

修改北森考试列表查询逻辑

1 parent 2607a691
...@@ -65,7 +65,8 @@ ...@@ -65,7 +65,8 @@
#{id} #{id}
</foreach> </foreach>
</select> </select>
<select id="beiSenExaminationPage" resultMap="beiSenExaminationDTOMap"> <select id="beiSenExaminationPage" parameterType="cn.com.glsx.dj.riskmanage.dto.beisen.BeiSenExaminationDTO"
resultMap="beiSenExaminationDTOMap">
select select
e.*, e.*,
o.name organizationName o.name organizationName
...@@ -74,13 +75,12 @@ ...@@ -74,13 +75,12 @@
where e.deleted_flag = 'N' where e.deleted_flag = 'N'
and e.exam_status = '20' and e.exam_status = '20'
and not exists ( and not exists (
select 1 from dj_car_life_learning_center_level_exam le where le.beisen_exam_id = e.id and le.status = 2 and le.deleted_flag = 'N' select 1 from dj_car_life_learning_center_level_exam le where le.beisen_exam_id = e.id and le.status = 2 and
le.deleted_flag = 'N'
) )
<where>
<if test="title != null and title != ''"> <if test="title != null and title != ''">
and e.title like concat('%', #{title}, '%') and e.title like concat('%', #{title}, '%')
</if> </if>
</where>
</select> </select>
<insert id="insertListWithId" parameterType="list"> <insert id="insertListWithId" parameterType="list">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!