|
|
|
@ -423,14 +423,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
LEFT JOIN sys_dict_data t5 ON t1.status = t5.dict_value AND t5.dict_type = 'alarm_status' |
|
|
|
|
<where> |
|
|
|
|
t1.del_flag !=2 and t1.type in (3) |
|
|
|
|
<!-- <if test="userId != null and userId != ''"> and t1.create_by = #{userId}</if>--> |
|
|
|
|
<if test="userId != null and userId != ''"> and t1.create_by = #{userId}</if> |
|
|
|
|
<if test="status != null and status != ''"> and t1.status = #{status}</if> |
|
|
|
|
<if test="organCode != null "> and t1.organ_code = #{organCode}</if> |
|
|
|
|
<if test="classificationDataCode != null "> and t1.classification_data_code = #{classificationDataCode} </if> |
|
|
|
|
<if test="classificationEventCode != null "> and t1.classification_event_code = #{classificationEventCode} </if> |
|
|
|
|
<if test="gradeId != null "> and t1.grade_id = #{gradeId}</if> |
|
|
|
|
<if test="eventGradeId != null "> and t1.event_grade_id = #{eventGradeId}</if> |
|
|
|
|
<if test="userId != null "> and t1.principal_user_id = #{userId}</if> |
|
|
|
|
<if test="principalUserId != null "> and t1.principal_user_id = #{principalUserId}</if> |
|
|
|
|
</where> |
|
|
|
|
<if test="orderType ==1"> order by t1.create_time desc </if> |
|
|
|
|
<if test="orderType ==2"> order by t1.grade_id desc </if> |
|
|
|
|