瀏覽代碼

通知公告api更新

shudonghui 1 年之前
父節點
當前提交
31bcfac3d5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      sop-business/src/main/resources/mapper/SysNoticeMapper.xml

+ 2 - 2
sop-business/src/main/resources/mapper/SysNoticeMapper.xml

@@ -2,12 +2,12 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.qmth.sop.business.mapper.SysNoticeMapper">
 
-    <select id="query" resultType="com.qmth.sop.business.entity.SysNotice">
+    <select id="query" resultType="com.qmth.sop.business.bean.result.SysNoticeResult">
         select a.*,su.real_name as createName from sys_notice a
         left join sys_user su on su.id = a.create_id
         <where>
             <if test="query != null and query != ''">
-                and a.name like concat('%', #{query} , '%')
+                and a.content like concat('%', #{query} , '%')
             </if>
             <if test="status != null and status != ''">
                 and a.status = #{status}