|
@@ -3,13 +3,15 @@ |
|
@@ -3,13 +3,15 @@ |
3
|
<mapper namespace="com.sunyo.energy.location.dao.LocationMapper" >
|
3
|
<mapper namespace="com.sunyo.energy.location.dao.LocationMapper" >
|
4
|
<resultMap id="BaseResultMap" type="com.sunyo.energy.location.model.Location" >
|
4
|
<resultMap id="BaseResultMap" type="com.sunyo.energy.location.model.Location" >
|
5
|
<id column="id" property="id" jdbcType="INTEGER" />
|
5
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
6
|
+ <id column="wm_id" property="wmid" jdbcType="VARCHAR" />
|
|
|
7
|
+ <id column="ee_id" property="eeid" jdbcType="VARCHAR" />
|
6
|
<result column="adrName" property="adrname" jdbcType="VARCHAR" />
|
8
|
<result column="adrName" property="adrname" jdbcType="VARCHAR" />
|
7
|
<result column="parent" property="parent" jdbcType="INTEGER" />
|
9
|
<result column="parent" property="parent" jdbcType="INTEGER" />
|
8
|
<result column="type" property="type" jdbcType="INTEGER" />
|
10
|
<result column="type" property="type" jdbcType="INTEGER" />
|
9
|
<collection property="children" select="selectAll" column="id"></collection>
|
11
|
<collection property="children" select="selectAll" column="id"></collection>
|
10
|
</resultMap>
|
12
|
</resultMap>
|
11
|
<sql id="Base_Column_List" >
|
13
|
<sql id="Base_Column_List" >
|
12
|
- id, adrName, parent, type
|
14
|
+ id, adrName, parent, type, wm_id, ee_id
|
13
|
</sql>
|
15
|
</sql>
|
14
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
16
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
15
|
select
|
17
|
select
|