Commit 0e8b134c by 春觉晓

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

1 parent 2607a691
...@@ -65,23 +65,23 @@ ...@@ -65,23 +65,23 @@
#{id} #{id}
</foreach> </foreach>
</select> </select>
<select id="beiSenExaminationPage" resultMap="beiSenExaminationDTOMap"> <select id="beiSenExaminationPage" parameterType="cn.com.glsx.dj.riskmanage.dto.beisen.BeiSenExaminationDTO"
select resultMap="beiSenExaminationDTOMap">
e.*, select
o.name organizationName e.*,
from dj_beisen_examination e o.name organizationName
left join dj_beisen_organization o on e.organization = o.o_id and o.std_is_deleted = 0 from dj_beisen_examination e
where e.deleted_flag = 'N' left join dj_beisen_organization o on e.organization = o.o_id and o.std_is_deleted = 0
and e.exam_status = '20' where e.deleted_flag = 'N'
and not exists ( and e.exam_status = '20'
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' 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
<where> le.deleted_flag = 'N'
<if test="title != null and title != ''"> )
and e.title like concat('%', #{title}, '%') <if test="title != null and title != ''">
</if> and e.title like concat('%', #{title}, '%')
</where> </if>
</select> </select>
<insert id="insertListWithId" parameterType="list"> <insert id="insertListWithId" parameterType="list">
INSERT INTO dj_beisen_examination ( INSERT INTO dj_beisen_examination (
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!