TpPInterfaceLogSMapper.xml 2.71 KB
<?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.TpPInterfaceLogSMapper">
  <resultMap id="BaseResultMap" type="com.zteits.park.domain.TpPInterfaceLog">
    <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="ext1" jdbcType="VARCHAR" property="ext1" />
    <result column="ext2" jdbcType="VARCHAR" property="ext2" />
    <result column="ext3" jdbcType="VARCHAR" property="ext3" />
    <result column="ext4" jdbcType="VARCHAR" property="ext4" />
    <result column="ext5" jdbcType="VARCHAR" property="ext5" />
    <result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
    <result column="modify_op" jdbcType="VARCHAR" property="modifyOp" />
    <result column="try_num" jdbcType="INTEGER" property="tryNum" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.zteits.park.domain.TpPInterfaceLogWithBLOBs">
    <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, ext1, ext2, ext3, ext4, ext5, modify_time, modify_op, try_num
  </sql>
  <sql id="Blob_Column_List">
    request_body, response_body, error_msg, remark
  </sql>
  <select id="selectByModel" parameterType="com.zteits.park.domain.TpPInterfaceLogDO" resultMap="ResultMapWithBLOBs">
    select
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from tp_p_interface_log
	WHERE id%#{allNum}=#{modelNum}    
    <if test="dealStatus!=null and dealStatus!=''">
        AND deal_status = #{dealStatus}
    </if>
    <if test="busiType!=null and busiType!=''">
        AND busi_type = #{busiType}
    </if>
  </select>
</mapper>