소스 검색

通知公告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}