|
|
@ -2,7 +2,8 @@
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.hzya.frame.mdm.mdmModuleDbFileds.dao.impl.MdmModuleDbFiledsDaoImpl">
|
|
|
|
<mapper namespace="com.hzya.frame.mdm.mdmModuleDbFileds.dao.impl.MdmModuleDbFiledsDaoImpl">
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="get-MdmModuleDbFiledsEntity-result" type="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity" >
|
|
|
|
<resultMap id="get-MdmModuleDbFiledsEntity-result"
|
|
|
|
|
|
|
|
type="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="dbId" column="db_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="dbId" column="db_id" jdbcType="VARCHAR"/>
|
|
|
@ -24,6 +25,9 @@
|
|
|
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
|
|
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
|
|
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
|
|
|
|
|
|
|
<result property="isSysPk" column="sys_pk" jdbcType="VARCHAR"/>
|
|
|
|
|
|
|
|
<result property="isSysCode" column="sys_code" jdbcType="VARCHAR"/>
|
|
|
|
|
|
|
|
<result property="isSysName" column="sys_name" jdbcType="VARCHAR"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<!-- 查询的字段-->
|
|
|
|
<!-- 查询的字段-->
|
|
|
|
<sql id="MdmModuleDbFiledsEntity_Base_Column_List">
|
|
|
|
<sql id="MdmModuleDbFiledsEntity_Base_Column_List">
|
|
|
@ -48,9 +52,13 @@
|
|
|
|
,sts
|
|
|
|
,sts
|
|
|
|
,org_id
|
|
|
|
,org_id
|
|
|
|
,company_id
|
|
|
|
,company_id
|
|
|
|
|
|
|
|
,sys_pk
|
|
|
|
|
|
|
|
,sys_code
|
|
|
|
|
|
|
|
,sys_name
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<!-- 查询 采用==查询 -->
|
|
|
|
<!-- 查询 采用==查询 -->
|
|
|
|
<select id="entity_list_base" resultMap="get-MdmModuleDbFiledsEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
<select id="entity_list_base" resultMap="get-MdmModuleDbFiledsEntity-result"
|
|
|
|
|
|
|
|
parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<include refid="MdmModuleDbFiledsEntity_Base_Column_List"/>
|
|
|
|
<include refid="MdmModuleDbFiledsEntity_Base_Column_List"/>
|
|
|
|
from mdm_module_db_fileds
|
|
|
|
from mdm_module_db_fileds
|
|
|
@ -76,6 +84,9 @@
|
|
|
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
|
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
|
|
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
|
|
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
|
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
|
|
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
|
|
|
|
|
|
|
<if test="isSysPk != null and isSysPk != ''">and sys_pk = #{isSysPk}</if>
|
|
|
|
|
|
|
|
<if test="isSysCode != null and isSysCode != ''">and sys_code = #{isSysCode}</if>
|
|
|
|
|
|
|
|
<if test="isSysName != null and isSysName != ''">and sys_name = #{isSysName}</if>
|
|
|
|
<if test="roletype != null and roletype != ''">
|
|
|
|
<if test="roletype != null and roletype != ''">
|
|
|
|
and id in (
|
|
|
|
and id in (
|
|
|
|
select
|
|
|
|
select
|
|
|
@ -91,7 +102,8 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 查询符合条件的数量 -->
|
|
|
|
<!-- 查询符合条件的数量 -->
|
|
|
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
<select id="entity_count" resultType="Integer"
|
|
|
|
|
|
|
|
parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
select count(1) from mdm_module_db_fileds
|
|
|
|
select count(1) from mdm_module_db_fileds
|
|
|
|
<trim prefix="where" prefixOverrides="and">
|
|
|
|
<trim prefix="where" prefixOverrides="and">
|
|
|
|
<if test="id != null and id != ''">and id = #{id}</if>
|
|
|
|
<if test="id != null and id != ''">and id = #{id}</if>
|
|
|
@ -115,6 +127,9 @@
|
|
|
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
|
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
|
|
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
|
|
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
|
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
|
|
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
|
|
|
|
|
|
|
<if test="isSysPk != null and isSysPk != ''">and sys_pk = #{isSysPk}</if>
|
|
|
|
|
|
|
|
<if test="isSysCode != null and isSysCode != ''">and sys_code = #{isSysCode}</if>
|
|
|
|
|
|
|
|
<if test="isSysName != null and isSysName != ''">and sys_name = #{isSysName}</if>
|
|
|
|
and sts='Y'
|
|
|
|
and sts='Y'
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
|
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
|
@ -122,7 +137,8 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 分页查询列表 采用like格式 -->
|
|
|
|
<!-- 分页查询列表 采用like格式 -->
|
|
|
|
<select id="entity_list_like" resultMap="get-MdmModuleDbFiledsEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
<select id="entity_list_like" resultMap="get-MdmModuleDbFiledsEntity-result"
|
|
|
|
|
|
|
|
parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<include refid="MdmModuleDbFiledsEntity_Base_Column_List"/>
|
|
|
|
<include refid="MdmModuleDbFiledsEntity_Base_Column_List"/>
|
|
|
|
from mdm_module_db_fileds
|
|
|
|
from mdm_module_db_fileds
|
|
|
@ -139,15 +155,24 @@
|
|
|
|
<if test="queryType != null and queryType != ''">and query_type like concat('%',#{queryType},'%')</if>
|
|
|
|
<if test="queryType != null and queryType != ''">and query_type like concat('%',#{queryType},'%')</if>
|
|
|
|
<if test="listType != null and listType != ''">and list_type like concat('%',#{listType},'%')</if>
|
|
|
|
<if test="listType != null and listType != ''">and list_type like concat('%',#{listType},'%')</if>
|
|
|
|
<if test="viewType != null and viewType != ''">and view_type like concat('%',#{viewType},'%')</if>
|
|
|
|
<if test="viewType != null and viewType != ''">and view_type like concat('%',#{viewType},'%')</if>
|
|
|
|
<if test="filedLength != null and filedLength != ''"> and filed_length like concat('%',#{filedLength},'%') </if>
|
|
|
|
<if test="filedLength != null and filedLength != ''">and filed_length like concat('%',#{filedLength},'%')
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
|
|
|
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
|
|
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
|
|
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
|
|
|
|
|
|
|
concat('%',#{create_user_id},'%')
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
|
|
|
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
|
|
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
|
|
|
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
|
|
|
|
|
|
|
concat('%',#{modify_user_id},'%')
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
|
|
|
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
|
|
|
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
|
|
|
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
|
|
|
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
|
|
|
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
|
|
|
<if test="companyId != null and companyId != ''">and company_id like concat('%',#{companyId},'%')</if>
|
|
|
|
<if test="companyId != null and companyId != ''">and company_id like concat('%',#{companyId},'%')</if>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test="isSysPk != null and isSysPk != ''">and sys_pk like concat('%',#{isSysPk},'%')</if>
|
|
|
|
|
|
|
|
<if test="isSysCode != null and isSysCode != ''">and sys_code like concat('%',#{isSysCode},'%')</if>
|
|
|
|
|
|
|
|
<if test="isSysName != null and isSysName != ''">and sys_name like concat('%',#{isSysName},'%')</if>
|
|
|
|
and sts='Y'
|
|
|
|
and sts='Y'
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
|
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
|
@ -155,7 +180,8 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 查询列表 字段采用or格式 -->
|
|
|
|
<!-- 查询列表 字段采用or格式 -->
|
|
|
|
<select id="MdmModuleDbFiledsentity_list_or" resultMap="get-MdmModuleDbFiledsEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
<select id="MdmModuleDbFiledsentity_list_or" resultMap="get-MdmModuleDbFiledsEntity-result"
|
|
|
|
|
|
|
|
parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<include refid="MdmModuleDbFiledsEntity_Base_Column_List"/>
|
|
|
|
<include refid="MdmModuleDbFiledsEntity_Base_Column_List"/>
|
|
|
|
from mdm_module_db_fileds
|
|
|
|
from mdm_module_db_fileds
|
|
|
@ -181,6 +207,11 @@
|
|
|
|
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
|
|
|
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
|
|
|
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
|
|
|
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
|
|
|
<if test="companyId != null and companyId != ''">or company_id = #{companyId}</if>
|
|
|
|
<if test="companyId != null and companyId != ''">or company_id = #{companyId}</if>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test="isSysPk != null and isSysPk != ''">or sys_pk = #{isSysPk}</if>
|
|
|
|
|
|
|
|
<if test="isSysCode != null and isSysCode != ''">or sys_code = #{isSysCode}</if>
|
|
|
|
|
|
|
|
<if test="isSysName != null and isSysName != ''">or sys_name = #{isSysName}</if>
|
|
|
|
|
|
|
|
|
|
|
|
and sts='Y'
|
|
|
|
and sts='Y'
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
|
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
|
@ -212,6 +243,9 @@
|
|
|
|
<if test="sts != null and sts != ''">sts ,</if>
|
|
|
|
<if test="sts != null and sts != ''">sts ,</if>
|
|
|
|
<if test="org_id != null and org_id != ''">org_id ,</if>
|
|
|
|
<if test="org_id != null and org_id != ''">org_id ,</if>
|
|
|
|
<if test="companyId != null and companyId != ''">company_id ,</if>
|
|
|
|
<if test="companyId != null and companyId != ''">company_id ,</if>
|
|
|
|
|
|
|
|
<if test="isSysPk != null and isSysPk != ''">sys_pk ,</if>
|
|
|
|
|
|
|
|
<if test="isSysCode != null and isSysCode != ''">sys_code ,</if>
|
|
|
|
|
|
|
|
<if test="isSysName != null and isSysName != ''">sys_name ,</if>
|
|
|
|
<if test="sts == null ">sts,</if>
|
|
|
|
<if test="sts == null ">sts,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
)values(
|
|
|
|
)values(
|
|
|
@ -237,21 +271,29 @@
|
|
|
|
<if test="sts != null and sts != ''">#{sts} ,</if>
|
|
|
|
<if test="sts != null and sts != ''">#{sts} ,</if>
|
|
|
|
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
|
|
|
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
|
|
|
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
|
|
|
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
|
|
|
|
|
|
|
<if test="isSysPk != null and isSysPk != ''">#{isSysPk} ,</if>
|
|
|
|
|
|
|
|
<if test="isSysCode != null and isSysCode != ''">#{isSysCode} ,</if>
|
|
|
|
|
|
|
|
<if test="isSysName != null and isSysName != ''">#{isSysName} ,</if>
|
|
|
|
<if test="sts == null ">'Y',</if>
|
|
|
|
<if test="sts == null ">'Y',</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<!-- 批量新增 -->
|
|
|
|
<!-- 批量新增 -->
|
|
|
|
<insert id="entityInsertBatch">
|
|
|
|
<insert id="entityInsertBatch">
|
|
|
|
insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
|
|
|
insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type,
|
|
|
|
|
|
|
|
query_type, list_type, view_type, filed_length, create_user_id, create_time, modify_user_id, modify_time, sts,
|
|
|
|
|
|
|
|
org_id, company_id, sts)
|
|
|
|
values
|
|
|
|
values
|
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
|
(#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.addType},#{entity.updateType},#{entity.showType},#{entity.queryType},#{entity.listType},#{entity.viewType},#{entity.filedLength},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
|
|
|
(#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.addType},#{entity.updateType},#{entity.showType},#{entity.queryType},#{entity.listType},#{entity.viewType},#{entity.filedLength},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},
|
|
|
|
|
|
|
|
'Y')
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<!-- 批量新增或者修改-->
|
|
|
|
<!-- 批量新增或者修改-->
|
|
|
|
<insert id="entityInsertOrUpdateBatch">
|
|
|
|
<insert id="entityInsertOrUpdateBatch">
|
|
|
|
insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
|
|
|
insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type,
|
|
|
|
|
|
|
|
query_type, list_type, view_type, filed_length, create_user_id, create_time, modify_user_id, modify_time, sts,
|
|
|
|
|
|
|
|
org_id, company_id)
|
|
|
|
values
|
|
|
|
values
|
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
|
(#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.addType},#{entity.updateType},#{entity.showType},#{entity.queryType},#{entity.listType},#{entity.viewType},#{entity.filedLength},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
|
|
|
(#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.addType},#{entity.updateType},#{entity.showType},#{entity.queryType},#{entity.listType},#{entity.viewType},#{entity.filedLength},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
|
|
@ -275,7 +317,8 @@
|
|
|
|
modify_time = values(modify_time),
|
|
|
|
modify_time = values(modify_time),
|
|
|
|
sts = values(sts),
|
|
|
|
sts = values(sts),
|
|
|
|
org_id = values(org_id),
|
|
|
|
org_id = values(org_id),
|
|
|
|
company_id = values(company_id)</insert>
|
|
|
|
company_id = values(company_id)
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
<!--通过主键修改方法-->
|
|
|
|
<!--通过主键修改方法-->
|
|
|
|
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
update mdm_module_db_fileds set
|
|
|
|
update mdm_module_db_fileds set
|
|
|
@ -299,16 +342,26 @@ update mdm_module_db_fileds set
|
|
|
|
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
|
|
|
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
|
|
|
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
|
|
|
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
|
|
|
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
|
|
|
|
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
|
|
|
|
|
|
|
|
<if test="isSysPk != null and isSysPk != ''">sys_pk = #{isSysPk},</if>
|
|
|
|
|
|
|
|
<if test="isSysPk == null ">sys_pk = null,</if>
|
|
|
|
|
|
|
|
<if test="isSysCode != null and isSysCode != ''">sys_code = #{isSysCode},</if>
|
|
|
|
|
|
|
|
<if test="isSysCode == null ">sys_code = null,</if>
|
|
|
|
|
|
|
|
<if test="isSysName != null and isSysName != ''">sys_name = #{isSysName},</if>
|
|
|
|
|
|
|
|
<if test="isSysName == null ">sys_name = null,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where id = #{id}
|
|
|
|
where id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<!-- 逻辑删除 -->
|
|
|
|
<!-- 逻辑删除 -->
|
|
|
|
<update id="entity_logicDelete" parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
<update id="entity_logicDelete" parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
|
|
update mdm_module_db_fileds
|
|
|
|
|
|
|
|
set sts= 'N',
|
|
|
|
|
|
|
|
modify_time = #{modify_time},
|
|
|
|
|
|
|
|
modify_user_id = #{modify_user_id}
|
|
|
|
where id = #{id}
|
|
|
|
where id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<!-- 多条件逻辑删除 -->
|
|
|
|
<!-- 多条件逻辑删除 -->
|
|
|
|
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity" >
|
|
|
|
<update id="entity_logicDelete_Multi_Condition"
|
|
|
|
|
|
|
|
parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
|
|
|
update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
|
|
update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
|
|
<trim prefix="where" prefixOverrides="and">
|
|
|
|
<trim prefix="where" prefixOverrides="and">
|
|
|
|
<if test="id != null and id != ''">and id = #{id}</if>
|
|
|
|
<if test="id != null and id != ''">and id = #{id}</if>
|
|
|
@ -332,11 +385,15 @@ update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_u
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<!--通过主键删除-->
|
|
|
|
<!--通过主键删除-->
|
|
|
|
<delete id="entity_delete">
|
|
|
|
<delete id="entity_delete">
|
|
|
|
delete from mdm_module_db_fileds where id = #{id}
|
|
|
|
delete
|
|
|
|
|
|
|
|
from mdm_module_db_fileds
|
|
|
|
|
|
|
|
where id = #{id}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<!--通过mdmCode删除-->
|
|
|
|
<!--通过mdmCode删除-->
|
|
|
|
<delete id="deleteMdmModuleDbFileds" parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
|
|
|
<delete id="deleteMdmModuleDbFileds" parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
|
|
|
delete from mdm_module_db_fileds where mdm_id = #{mdmId}
|
|
|
|
delete
|
|
|
|
|
|
|
|
from mdm_module_db_fileds
|
|
|
|
|
|
|
|
where mdm_id = #{mdmId}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|
|
|
|
|
|
|
|
|