zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
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
<?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" >
<!-- Table:ubp_process_log -->
<mapper namespace="com.changhong.epc.demo.mapper.tenant.strategy.TenantInfoMapper">
    
    <resultMap type="com.changhong.epc.demo.MVTest" id="masterValueMap">
        <id column="DEFINE_CODE" property="mdCode"/>
        <collection property="values" ofType="java.util.Map" javaType="com.changhong.epc.demo.MvList">
            <id column="ID" property="id"/>
            <result column="ELE_CODE" property="eleCode"/>
            <result column="ELE_VALUE" property="eleValue"/>
            <result column="ROW_NO" property="rowNo"/>
        </collection>
    </resultMap>
    
    <select id="selectTest" resultMap="masterValueMap">
    select 
        ID,
        DEFINE_CODE,
        ELE_CODE,
        ELE_VALUE,
        ROW_NO
     from epc_master_value_{rule}
     where DEFINE_CODE = 'F071' 
     and DEL_FLAG = 0 
     ORDER BY ROW_NO 
    </select>
    
</mapper>