|
@@ -5,22 +5,22 @@
|
|
|
<mapper namespace="com.jpsoft.epay.modules.base.dao.RoomInfoDAO">
|
|
|
<resultMap id="RoomInfoMap" type="RoomInfo">
|
|
|
<id property="id" column="id_" />
|
|
|
- <result property="name" column="name_" />
|
|
|
- <result property="number" column="number_" />
|
|
|
- <result property="type" column="type_" />
|
|
|
- <result property="useType" column="use_type" />
|
|
|
- <result property="sortNo" column="sort_no" />
|
|
|
- <result property="parentId" column="parent_id" />
|
|
|
- <result property="parentName" column="parent_name"/>
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
- <result property="delFlag" column="del_flag" />
|
|
|
- <result property="hasChildren" column="has_children" />
|
|
|
- <association property="useTypeN" column="use_type" select="com.jpsoft.epay.modules.sys.dao.DataDictionaryDAO.getName"/>
|
|
|
- <!--<association property="children" column="id_" select="com.jpsoft.epay.modules.base.dao.RoomInfoDAO.getChildren"/>-->
|
|
|
- </resultMap>
|
|
|
+ <result property="name" column="name_" />
|
|
|
+ <result property="number" column="number_" />
|
|
|
+ <result property="type" column="type_" />
|
|
|
+ <result property="useType" column="use_type" />
|
|
|
+ <result property="sortNo" column="sort_no" />
|
|
|
+ <result property="parentId" column="parent_id" />
|
|
|
+ <result property="parentName" column="parent_name"/>
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="hasChildren" column="has_children" />
|
|
|
+ <association property="useTypeN" column="use_type" select="com.jpsoft.epay.modules.sys.dao.DataDictionaryDAO.getName"/>
|
|
|
+ <!--<association property="children" column="id_" select="com.jpsoft.epay.modules.base.dao.RoomInfoDAO.getChildren"/>-->
|
|
|
+ </resultMap>
|
|
|
<insert id="insert" parameterType="RoomInfo">
|
|
|
<!--
|
|
|
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
@@ -32,18 +32,18 @@
|
|
|
(id_,name_,number_,type_,sort_no,parent_id,create_by,create_time,update_by,update_time,del_flag,use_type)
|
|
|
values
|
|
|
(
|
|
|
-#{id,jdbcType=VARCHAR}
|
|
|
-,#{name,jdbcType=VARCHAR}
|
|
|
-,#{number,jdbcType= NUMERIC }
|
|
|
-,#{type,jdbcType=VARCHAR}
|
|
|
-,#{sortNo,jdbcType= NUMERIC }
|
|
|
-,#{parentId,jdbcType=VARCHAR}
|
|
|
-,#{createBy,jdbcType=VARCHAR}
|
|
|
-,#{createTime,jdbcType= TIMESTAMP }
|
|
|
-,#{updateBy,jdbcType=VARCHAR}
|
|
|
-,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
-,#{delFlag,jdbcType= NUMERIC }
|
|
|
-,#{useType,jdbcType= VARCHAR }
|
|
|
+ #{id,jdbcType=VARCHAR}
|
|
|
+ ,#{name,jdbcType=VARCHAR}
|
|
|
+ ,#{number,jdbcType= NUMERIC }
|
|
|
+ ,#{type,jdbcType=VARCHAR}
|
|
|
+ ,#{sortNo,jdbcType= NUMERIC }
|
|
|
+ ,#{parentId,jdbcType=VARCHAR}
|
|
|
+ ,#{createBy,jdbcType=VARCHAR}
|
|
|
+ ,#{createTime,jdbcType= TIMESTAMP }
|
|
|
+ ,#{updateBy,jdbcType=VARCHAR}
|
|
|
+ ,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
+ ,#{delFlag,jdbcType= NUMERIC }
|
|
|
+ ,#{useType,jdbcType= VARCHAR }
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|