zss
昨天 3955c6d7cdc8a3b6f1bd31a249a2c562820adfcb
src/main/resources/mapper/system/SysNoticeMapper.xml
@@ -18,7 +18,20 @@
    </resultMap>
    
    <sql id="selectNoticeVo">
        select notice_id, notice_title, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark
        select notice_id,
               notice_title,
               notice_type,
               notice_content,
               status,
               create_by,
               create_time,
               update_by,
               update_time,
               remark,
               sender_id,
               consignee_id,
               jump_path,
               tenant_id
      from sys_notice
    </sql>
    
@@ -30,16 +43,26 @@
    <select id="selectNoticeList" parameterType="com.ruoyi.project.system.domain.SysNotice" resultMap="SysNoticeResult">
        <include refid="selectNoticeVo"/>
        <where>
         <if test="noticeTitle != null and noticeTitle != ''">
            AND notice_title like concat('%', #{noticeTitle}, '%')
            <if test="c.noticeTitle != null and c.noticeTitle != ''">
                AND notice_title like concat('%', #{c.noticeTitle}, '%')
         </if>
         <if test="noticeType != null and noticeType != ''">
            AND notice_type = #{noticeType}
            <if test="c.noticeType != null and c.noticeType != ''">
                AND notice_type = #{c.noticeType}
         </if>
         <if test="createBy != null and createBy != ''">
            AND create_by like concat('%', #{createBy}, '%')
            <if test="c.createBy != null and c.createBy != ''">
                AND create_by like concat('%', #{c.createBy}, '%')
            </if>
            <if test="c.senderId != null and c.senderId != ''">
                AND sender_id = #{c.senderId}
            </if>
            <if test="c.consigneeId != null and c.consigneeId != ''">
                AND consignee_id = #{c.consigneeId}
            </if>
            <if test="c.status != null and c.status != ''">
                AND status = #{c.status}
         </if>
      </where>
        order by create_time desc
    </select>
    
    <insert id="insertNotice" parameterType="com.ruoyi.project.system.domain.SysNotice">
@@ -49,7 +72,11 @@
         <if test="noticeContent != null and noticeContent != '' ">notice_content, </if>
         <if test="status != null and status != '' ">status, </if>
         <if test="remark != null and remark != ''">remark,</if>
        <if test="senderId != null and senderId != ''">sender_id,</if>
        <if test="consigneeId != null and consigneeId != ''">consignee_id,</if>
        <if test="jumpPath != null and jumpPath != ''">jump_path,</if>
          <if test="createBy != null and createBy != ''">create_by,</if>
        <if test="tenantId != null and tenantId != ''">tenant_id,</if>
          create_time
       )values(
         <if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle}, </if>
@@ -57,7 +84,12 @@
         <if test="noticeContent != null and noticeContent != ''">#{noticeContent}, </if>
         <if test="status != null and status != ''">#{status}, </if>
         <if test="remark != null and remark != ''">#{remark},</if>
        <if test="senderId != null and senderId != ''">#{senderId},</if>
        <if test="consigneeId != null and consigneeId != ''">#{consigneeId},</if>
        <if test="jumpPath != null and jumpPath != ''">#{jumpPath},</if>
        <if test="pathParms != null and pathParms != ''">#{queryParms},</if>
          <if test="createBy != null and createBy != ''">#{createBy},</if>
        <if test="tenantId != null and tenantId != ''">#{tenantId},</if>
          sysdate()
      )
    </insert>