浏览代码

修复闵行接口报错

fuyuchuan 1 天之前
父节点
当前提交
3dbef88389

+ 4 - 2
base-modules/service-system/service-system-biz/src/main/resources/mapper/system/SysLogininforMapper.xml

@@ -67,12 +67,14 @@
             <!-- 数据范围过滤 -->
             ${params.dataScope}
         </where>
-        order by info_id desc
+        <!--order by info_id desc-->
+        order by access_time desc
     </select>
 
     <select id="selectLogininforListExport" parameterType="com.usky.system.domain.SysLogininfor"
             resultType="com.usky.system.service.vo.SysLoginExportVO">
-        select info_id, ipaddr, user_name, (case status when '0' then '成功' else '失败' end) as status, msg, access_time
+        select info_id, ipaddr, user_name, (case status when '0' then '成功' else '失败' end) as status, msg,
+        access_time
         from sys_logininfor d
         <where>
             <if test="ipaddr != null and ipaddr != ''">

+ 25 - 16
base-modules/service-system/service-system-biz/src/main/resources/mapper/system/SysNoticeMapper.xml

@@ -16,30 +16,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="updateTime"     column="update_time"     />
         <result property="remark"         column="remark"          />
     </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 
-		from sys_notice
+        SELECT notice_id,
+               notice_title,
+               notice_type,
+               DBMS_LOB.SUBSTR(notice_content, 4000, 1) AS notice_content,
+               status,
+               create_by,
+               create_time,
+               update_by,
+               update_time,
+               remark
+        FROM sys_notice
     </sql>
-    
+
     <select id="selectNoticeById" parameterType="Long" resultMap="SysNoticeResult">
         <include refid="selectNoticeVo"/>
-        where notice_id = #{noticeId}
+        WHERE notice_id = #{noticeId}
     </select>
-    
+
     <select id="selectNoticeList" parameterType="com.usky.system.domain.SysNotice" resultMap="SysNoticeResult">
         <include refid="selectNoticeVo"/>
         <where>
-			<if test="noticeTitle != null and noticeTitle != ''">
-				AND notice_title like concat('%', #{noticeTitle}, '%')
-			</if>
-			<if test="noticeType != null and noticeType != ''">
-				AND notice_type = #{noticeType}
-			</if>
-			<if test="createBy != null and createBy != ''">
-				AND create_by like concat('%', #{createBy}, '%')
-			</if>
-		</where>
+            <if test="noticeTitle != null and noticeTitle != ''">
+                AND notice_title LIKE concat('%', #{noticeTitle}, '%')
+            </if>
+            <if test="noticeType != null and noticeType != ''">
+                AND notice_type = #{noticeType}
+            </if>
+            <if test="createBy != null and createBy != ''">
+                AND create_by LIKE concat('%', #{createBy}, '%')
+            </if>
+        </where>
     </select>
     
     <insert id="insertNotice" parameterType="com.usky.system.domain.SysNotice">