|
|
@@ -476,4 +476,62 @@
|
|
|
<update id="updateIsRead" parameterType="java.lang.String">
|
|
|
update METER_BASE_SYSTEM_MESSAGE set IS_READ = '1' where SYSTEM_MESSAGE_NO = #{systemMessageNo}
|
|
|
</update>
|
|
|
+
|
|
|
+ <select id="likeDesc" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
+ <include refid="select"/>
|
|
|
+ <where> 1 = 1
|
|
|
+ <if test="systemMessageNo != null and systemMessageNo != ''">
|
|
|
+ and SYSTEM_MESSAGE_NO LIKE '%${systemMessageNo}%'
|
|
|
+ </if>
|
|
|
+ <if test="systemMessageName != null and systemMessageName != ''">
|
|
|
+ and SYSTEM_MESSAGE_NAME LIKE '%${systemMessageName}%'
|
|
|
+ </if>
|
|
|
+ <if test="systemMessageContent != null and systemMessageContent != ''">
|
|
|
+ and SYSTEM_MESSAGE_CONTENT LIKE '%${systemMessageContent}%'
|
|
|
+ </if>
|
|
|
+ <if test="vaildFlag != null and vaildFlag != ''">
|
|
|
+ and VAILD_FLAG LIKE '%${vaildFlag}%'
|
|
|
+ </if>
|
|
|
+ <if test="memo != null and memo != ''">
|
|
|
+ and MEMO LIKE '%${memo}%'
|
|
|
+ </if>
|
|
|
+ <if test="createManNo != null and createManNo != ''">
|
|
|
+ and CREATE_MAN_NO LIKE '%${createManNo}%'
|
|
|
+ </if>
|
|
|
+ <if test="createManName != null and createManName != ''">
|
|
|
+ and CREATE_MAN_NAME LIKE '%${createManName}%'
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
+ and UPDATE_MAN_NO LIKE '%${updateManNo}%'
|
|
|
+ </if>
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
+ and UPDATE_MAN_NAME LIKE '%${updateManName}%'
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="deleteManNo != null and deleteManNo != ''">
|
|
|
+ and DELETE_MAN_NO LIKE '%${deleteManNo}%'
|
|
|
+ </if>
|
|
|
+ <if test="deleteManName != null and deleteManName != ''">
|
|
|
+ and DELETE_MAN_NAME LIKE '%${deleteManName}%'
|
|
|
+ </if>
|
|
|
+ <if test="deleteTime != null">
|
|
|
+ and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
|
|
|
+ </if>
|
|
|
+ <if test="isRead != null and isRead != ''">
|
|
|
+ and IS_READ LIKE '%${isRead}%'
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by create_time desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getNews" resultMap="BaseResultMap">
|
|
|
+ <include refid="select"/>
|
|
|
+ where valid_flag = 1
|
|
|
+ order by create_time desc
|
|
|
+ </select>
|
|
|
</mapper>
|