warning.`warning_type`,warning.`warning_subclass`,warning.`warning_title`,warning.`auditor`,IFNULL(warning.`audit_flag`, 0) AS `audit_flag`,warning.`audit_time`,
warning.`other_config` FROM dc_warning AS warning
LEFT JOIN dc_stake_mark AS mark ON mark.stake_mark=warning.stake_mark and mark.direction=warning.direction
LEFT JOIN sys_user as user on user.user_id=warning.user_id
@ -45,7 +45,16 @@
<iftest="warningSubclass != null and warningSubclass != ''"> and warning.warning_subclass = #{warningSubclass}</if>
<iftest="direction != null and direction != ''"> and warning.direction = #{direction}</if>
<iftest="stakeMark != null and stakeMark != ''"> and warning.stake_mark = #{stakeMark}</if>
<iftest="auditFlag != null and auditFlag != ''"> and warning.audit_flag = #{auditFlag}</if>
<iftest="auditFlag != null">
<choose>
<whentest="auditFlag == 0">
and warning.audit_flag is null
</when>
<otherwise>
and warning.audit_flag = #{auditFlag}
</otherwise>
</choose>
</if>
<iftest="startTime != null and completeTime != null ">
and warning.warning_time between #{startTime} and #{completeTime}</if>
<iftest="startStakeMark != null and startStakeMark != ''">