Blame view

parking-module-park/src/main/resources/mybatis/smapper/TpPExceptionLogSMapper.xml 2.14 KB
9af4a544   王彪总   新项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  <mapper namespace="com.zteits.park.mapper.smapper.TpPExceptionLogSMapper">
    <resultMap id="BaseResultMap" type="com.zteits.park.domain.TpPExceptionLog">
      <id column="id" jdbcType="BIGINT" property="id" />
      <result column="request_no" jdbcType="VARCHAR" property="requestNo" />
      <result column="busi_desc" jdbcType="VARCHAR" property="busiDesc" />
      <result column="busi_type" jdbcType="INTEGER" property="busiType" />
      <result column="request_time" jdbcType="TIMESTAMP" property="requestTime" />
      <result column="response_time" jdbcType="TIMESTAMP" property="responseTime" />
      <result column="create_op" jdbcType="VARCHAR" property="createOp" />
      <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
      <result column="deal_status" jdbcType="INTEGER" property="dealStatus" />
      <result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
      <result column="modify_op" jdbcType="VARCHAR" property="modifyOp" />
    </resultMap>
    <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.zteits.park.domain.TpPExceptionLogWithBLOBs">
      <result column="request_body" jdbcType="LONGVARCHAR" property="requestBody" />
      <result column="response_body" jdbcType="LONGVARCHAR" property="responseBody" />
      <result column="error_msg" jdbcType="LONGVARCHAR" property="errorMsg" />
      <result column="remark" jdbcType="LONGVARCHAR" property="remark" />
    </resultMap>
    
    <sql id="Base_Column_List">
      id, request_no, busi_desc, busi_type, request_time, response_time, create_op, create_time, 
      deal_status, modify_time, modify_op
    </sql>
    <sql id="Blob_Column_List">
      request_body, response_body, error_msg, remark
    </sql>
    <select id="selectException" resultMap="ResultMapWithBLOBs">
      select
      <include refid="Base_Column_List" />
      ,
      <include refid="Blob_Column_List" />
      from tp_p_exception_log
      where busi_type = 8 and day(create_time)=27 and deal_status in (-5,-4) and error_msg  like '%java.lang.NullPointerException%';
    </select>
  </mapper>