|
@@ -18,7 +18,7 @@
|
|
|
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
|
|
|
<result column="create_user" jdbcType="VARCHAR" property="createUser"/>
|
|
|
<result column="create_user_name" jdbcType="VARCHAR" property="createUserName"/>
|
|
|
- <result column="is_enable" jdbcType="VARCHAR" property="isEnable"/>
|
|
|
+ <result column="status" jdbcType="VARCHAR" property="status"/>
|
|
|
<result column="mapping" jdbcType="VARCHAR" property="mapping"/>
|
|
|
<result column="id" jdbcType="VARCHAR" property="id"/>
|
|
|
</resultMap>
|
|
@@ -26,7 +26,7 @@
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
dic_id
|
|
|
- ,dic_code,dic_name,parent_id,dic_desc,sort,app_id,ins_code,dept_id,pha_id,create_date,create_user,create_user_name,is_enable
|
|
|
+ ,dic_code,dic_name,parent_id,dic_desc,sort,app_id,ins_code,dept_id,pha_id,create_date,create_user,create_user_name,status
|
|
|
</sql>
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="TDicBase">
|
|
@@ -44,13 +44,13 @@
|
|
|
|
|
|
<insert id="insert" parameterType="TDicBase">
|
|
|
insert into t_dic_base (<include refid="Base_Column_List"/>) values
|
|
|
- (#{dicId},#{dicCode},#{dicName},#{parentId},#{dicDesc},#{sort},#{appId},#{insCode},#{deptId},#{phaId},#{createDate},#{createUser},#{createUserName},#{isEnable})
|
|
|
+ (#{dicId},#{dicCode},#{dicName},#{parentId},#{dicDesc},#{sort},#{appId},#{insCode},#{deptId},#{phaId},#{createDate},#{createUser},#{createUserName},#{status})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertList" parameterType="List">
|
|
|
insert into t_dic_base (<include refid="Base_Column_List"/>) values
|
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
|
- (#{item.dicId},#{item.dicCode},#{item.dicName},#{item.parentId},#{item.dicDesc},#{item.sort},#{item.appId},#{item.insCode},#{item.deptId},#{item.phaId},#{item.createDate},#{item.createUser},#{item.createUserName},#{item.isEnable})
|
|
|
+ (#{item.dicId},#{item.dicCode},#{item.dicName},#{item.parentId},#{item.dicDesc},#{item.sort},#{item.appId},#{item.insCode},#{item.deptId},#{item.phaId},#{item.createDate},#{item.createUser},#{item.createUserName},#{item.status})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -93,8 +93,8 @@
|
|
|
<if test="createUserName != null and createUserName!=''">
|
|
|
create_user_name = #{ createUserName },
|
|
|
</if>
|
|
|
- <if test="isEnable != null and isEnable!=''">
|
|
|
- is_enable = #{ isEnable },
|
|
|
+ <if test="status != null and status!=''">
|
|
|
+ status = #{status},
|
|
|
</if>
|
|
|
</set>
|
|
|
where dic_id = #{ dicId }
|
|
@@ -108,7 +108,7 @@
|
|
|
|
|
|
<select id="getPageListByObj" parameterType="TDicBase" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
- dic_id,dic_code,dic_name,parent_id,dic_desc,sort,app_id,ins_code,dept_id,pha_id,create_date,create_user,create_user_name,is_enable
|
|
|
+ dic_id,dic_code,dic_name,parent_id,dic_desc,sort,app_id,ins_code,dept_id,pha_id,create_date,create_user,create_user_name,status
|
|
|
from t_dic_base
|
|
|
<where>
|
|
|
<if test=" dicName != null and dicName!='' ">
|