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