|
@@ -78,6 +78,64 @@
|
|
|
values(UPDATE_TIME) , REPORT_LEVEL = values(REPORT_LEVEL) , REPORT_UPPER = values(REPORT_UPPER) , REPORT_LOWER =
|
|
|
values(REPORT_LOWER) , STATUS = values(STATUS) , DISPLAY_NAME = values(DISPLAY_NAME)
|
|
|
</insert>
|
|
|
+ <select id="pageList" resultMap="TfScadaReportListMap">
|
|
|
+ select * from TF_SCADA_REPORT_LIST t1
|
|
|
+ where 1=1
|
|
|
+ <if test="dto.codes!=null and dto.codes.trim()!=''">
|
|
|
+ and t1.code in
|
|
|
+ <foreach item="nodeCodestr" collection="dto.codes.split(',')" open="(" separator="," close=")">
|
|
|
+ #{nodeCodestr}
|
|
|
+ </foreach>
|
|
|
+
|
|
|
+ </if>
|
|
|
+ <if test="dto.code != null and dto.code.trim()!=''">
|
|
|
+ and t1.code=#{dto.code}
|
|
|
+ </if>
|
|
|
+ <if test="dto.dealStatus!=null and dto.dealStatus.trim()!=''">
|
|
|
+ and t1.status in
|
|
|
+ <foreach item="nodeCodestr" collection="dto.dealStatus.split(',')" open="(" separator="," close=")">
|
|
|
+ #{nodeCodestr}
|
|
|
+ </foreach>
|
|
|
|
|
|
+ </if>
|
|
|
+ <if test="dto.status!=null and dto.status.trim()!=''">
|
|
|
+ and t1.status in
|
|
|
+ <foreach item="nodeCodestr" collection="dto.status.split(',')" open="(" separator="," close=")">
|
|
|
+ #{nodeCodestr}
|
|
|
+ </foreach>
|
|
|
+
|
|
|
+ </if>
|
|
|
+ <if test="dto.reportLevel != null and dto.reportLevel.trim()!=''">
|
|
|
+ and t1.report_Level=#{dto.reportLevel}
|
|
|
+ </if>
|
|
|
+ <if test="dto.displayName != null and dto.displayName.trim()!=''">
|
|
|
+ and t1.display_Name like '%'||#{dto.displayName}||'%'
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="dto.start != null ">
|
|
|
+ and t1.SCADA_TIME >= #{dto.start}
|
|
|
+ </if>
|
|
|
+ <if test="dto.end != null ">
|
|
|
+ <![CDATA[ and t1.SCADA_TIME <= #{dto.end}]]>
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="dto.dealUserId != null ">
|
|
|
+ and t1.deal_user_id = #{dto.dealUserId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="dto.dealUserName != null and dto.dealUserName.trim()!=''">
|
|
|
+ and t1.deal_user_name like '%'||#{dto.dealUserName}||'%'
|
|
|
+ </if>
|
|
|
+ <if test="dto.dealRemark != null and dto.dealRemark.trim()!=''">
|
|
|
+ and t1.DEAL_REMARK like '%'||#{dto.dealRemark}||'%'
|
|
|
+ </if>
|
|
|
+ <if test="dto.searchOwn != null and dto.searchOwn==1">
|
|
|
+ and t1.id in(
|
|
|
+ select report_Id from TF_SCADA_REPORT_DEAL where deal_User_Id=#{dealUserId}
|
|
|
+
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </select>
|
|
|
</mapper>
|
|
|
|