37 lines
1.6 KiB
XML
37 lines
1.6 KiB
XML
<?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.cool.store.mapper.LineAuditInfoMapper">
|
|
<resultMap id="BaseResultMap" type="com.cool.store.entity.LineAuditInfoDO">
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="partner_id" jdbcType="VARCHAR" property="partnerId" />
|
|
<result column="line_id" jdbcType="BIGINT" property="lineId" />
|
|
<result column="result_type" jdbcType="TINYINT" property="resultType" />
|
|
<result column="pass_reason" jdbcType="VARCHAR" property="passReason" />
|
|
<result column="reject_public_reason" jdbcType="VARCHAR" property="rejectPublicReason" />
|
|
<result column="reject_real_reason" jdbcType="VARCHAR" property="rejectRealReason" />
|
|
<result column="certify_file" jdbcType="VARCHAR" property="certifyFile" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="deleted" jdbcType="BIT" property="deleted" />
|
|
</resultMap>
|
|
|
|
|
|
|
|
<select id="getLineAuditInfoList" resultMap="BaseResultMap">
|
|
select * from
|
|
xfsg_line_audit_info
|
|
<where>
|
|
<if test="ids != null">
|
|
<foreach collection="ids" item="item" separator="," open="and id in (" close=")">
|
|
#{item}
|
|
</foreach>
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="getLineAuditInfo" resultMap="BaseResultMap">
|
|
select * from
|
|
xfsg_line_audit_info
|
|
where line_id = #{lineId} and result_type = 2 order by id desc limit 1
|
|
</select>
|
|
</mapper> |