peter
2026-01-11 9c638d29f43035bb224996f3183a58d761cd526e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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.nq.dao.ContractImageMapper">
    <resultMap id="BaseResultMap" type="com.nq.pojo.ContractImage">
        <id column="id" property="id" jdbcType="INTEGER"/>
        <result column="user_id" property="userId" jdbcType="INTEGER"/>
        <result column="contract_type" property="contractType" jdbcType="VARCHAR"/>
        <result column="address" property="address" jdbcType="VARCHAR"/>
        <result column="add_time" property="addTime" jdbcType="TIMESTAMP"/>
    </resultMap>
 
    <select id="selectByUserIdAndType" resultMap="BaseResultMap">
        select * from contract_image
        where user_id = #{userId} and contract_type = #{contractType}
        order by add_time asc
    </select>
</mapper>