|
@@ -100,7 +100,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="createUserId != null and createUserId != ''"> and create_user_id = #{createUserId}</if>
|
|
<if test="createUserId != null and createUserId != ''"> and create_user_id = #{createUserId}</if>
|
|
<if test="params != null "> ${params.dataScope}</if>
|
|
<if test="params != null "> ${params.dataScope}</if>
|
|
</where>
|
|
</where>
|
|
- order by report_time desc LIMIT 1000
|
|
|
|
|
|
+ order by report_time desc
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <select id="selectTUEventFireListLimit1000" parameterType="TUEventFire" resultMap="TUEventFireResult">
|
|
|
|
+ <include refid="selectTUEventFireVo"/>
|
|
|
|
+ <where>
|
|
|
|
+ 1=1
|
|
|
|
+ <if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
|
+ <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
|
+ <if test="reportType != null and reportType != ''"> and report_type = #{reportType}</if>
|
|
|
|
+ <if test="reportContent != null and reportContent != ''"> and report_content like concat('%', #{reportContent}, '%')</if>
|
|
|
|
+ <if test="params.beginReportTime != null and params.beginReportTime != ''"><!-- 开始时间检索 -->
|
|
|
|
+ AND date_format(report_time,'%y%m%d') >= date_format(#{params.beginReportTime},'%y%m%d')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="params.endReportTime != null and params.endReportTime != ''"><!-- 结束时间检索 -->
|
|
|
|
+ AND date_format(report_time,'%y%m%d') <= date_format(#{params.endReportTime},'%y%m%d')
|
|
|
|
+ </if>
|
|
|
|
+ <!--<if test="reportTime != null "> and report_time = #{reportTime}</if>-->
|
|
|
|
+ <if test="reportor != null and reportor != ''"> and reportor like concat('%', #{reportor}, '%')</if>
|
|
|
|
+ <if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
|
|
|
|
+ <if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
|
|
|
|
+ <if test="eventStatus != null and eventStatus != ''"> and event_status = #{eventStatus}</if>
|
|
|
|
+ <if test="eventLevel != null and eventLevel != ''"> and event_level = #{eventLevel}</if>
|
|
|
|
+ <if test="isUpgraded != null and isUpgraded != ''"> and is_upgraded = #{isUpgraded}</if>
|
|
|
|
+ <if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
|
+ <if test="cameraId != null "> and camera_id = #{cameraId}</if>
|
|
|
|
+ <if test="needhelp != null "> and needhelp = #{needhelp}</if>
|
|
|
|
+ <if test="deptIds != null "> and dept_id in (${deptIds})</if>
|
|
|
|
+ <if test="createUserId != null and createUserId != ''"> and create_user_id = #{createUserId}</if>
|
|
|
|
+ <if test="params != null "> ${params.dataScope}</if>
|
|
|
|
+ </where>
|
|
|
|
+ order by report_time desc LIMIT 1000
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectTUEventFireById" parameterType="String" resultMap="TUEventFireResult">
|
|
<select id="selectTUEventFireById" parameterType="String" resultMap="TUEventFireResult">
|