|
@@ -3,9 +3,9 @@
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!-- namespace必须指向DAO接口 -->
|
|
<!-- namespace必须指向DAO接口 -->
|
|
<mapper namespace="com.jpsoft.picc.modules.sys.dao.DataDictionaryDAO">
|
|
<mapper namespace="com.jpsoft.picc.modules.sys.dao.DataDictionaryDAO">
|
|
- <resultMap id="DataDictionaryMap" type="DataDictionary">
|
|
|
|
|
|
+ <resultMap id="DataDictionaryMap" type="com.jpsoft.picc.modules.sys.entity.DataDictionary">
|
|
<id property="id" column="id_" />
|
|
<id property="id" column="id_" />
|
|
- <result property="userName" column="name_" />
|
|
|
|
|
|
+ <result property="name" column="name_" />
|
|
<result property="value" column="value_" />
|
|
<result property="value" column="value_" />
|
|
<result property="sortNo" column="sort_no" />
|
|
<result property="sortNo" column="sort_no" />
|
|
<result property="parentId" column="parent_id" />
|
|
<result property="parentId" column="parent_id" />
|
|
@@ -18,7 +18,7 @@
|
|
<result property="activated" column="activated_" />
|
|
<result property="activated" column="activated_" />
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
- <insert id="insert" parameterType="DataDictionary">
|
|
|
|
|
|
+ <insert id="insert" parameterType="com.jpsoft.picc.modules.sys.entity.DataDictionary">
|
|
<!--
|
|
<!--
|
|
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
select sys_guid() from dual
|
|
select sys_guid() from dual
|
|
@@ -47,7 +47,7 @@
|
|
<delete id="delete" parameterType="string">
|
|
<delete id="delete" parameterType="string">
|
|
delete from sys_data_dictionary where id_=#{id,jdbcType=VARCHAR}
|
|
delete from sys_data_dictionary where id_=#{id,jdbcType=VARCHAR}
|
|
</delete>
|
|
</delete>
|
|
- <update id="update" parameterType="DataDictionary">
|
|
|
|
|
|
+ <update id="update" parameterType="com.jpsoft.picc.modules.sys.entity.DataDictionary">
|
|
update sys_data_dictionary
|
|
update sys_data_dictionary
|
|
<set>
|
|
<set>
|
|
<if test="userName!=null">
|
|
<if test="userName!=null">
|
|
@@ -124,7 +124,7 @@
|
|
|
|
|
|
</where>
|
|
</where>
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
- ${sort.userName} ${sort.order}
|
|
|
|
|
|
+ ${sort.name} ${sort.order}
|
|
</foreach>
|
|
</foreach>
|
|
</select>
|
|
</select>
|
|
|
|
|