sf
jiangping
2025-04-30 dcdb0231034810232f2542f3865666ebf72daf11
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
<?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.doumee.dao.business.BaseCategoryMapper">
    <resultMap id="BaseCategory" type="com.doumee.dao.business.model.BaseCategory" autoMapping="true">
        <id column="ID" jdbcType="INTEGER" property="id"/>
        <collection property="baseCateParamList"
                    column="{categoryId=id}"
                    ofType="com.doumee.dao.business.model.BaseCateParam"
                    javaType="ArrayList"
                    select="com.doumee.dao.business.BaseCateParamMapper.getBaseCateParamList" />
    </resultMap>
 
 
    <select id="selectById" resultMap="BaseCategory">
        select * from base_category where id = #{id}
    </select>
 
    <select id="selectOne" resultMap="BaseCategory">
        select * from base_category ${ew.customSqlSegment}
    </select>
 
    <select id="selectList" resultMap="BaseCategory">
        select * from base_category ${ew.customSqlSegment}
   </select>
<!--    <select id="selectPage" resultMap="BaseCategory">-->
<!--        select * from base_category ${ew.customSqlSegment}-->
<!--    </select>-->
</mapper>