修改表名及引用地方

This commit is contained in:
lvleigang 2024-05-15 11:36:40 +08:00
parent 9d264af585
commit ccfa93488c
2 changed files with 13 additions and 13 deletions

View File

@ -4,7 +4,7 @@ import com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 集成任务-实例详情(integration_task_living_details: table)表数据库访问层
* 集成任务-实例详情(integration_task_log: table)表数据库访问层
*
* @author makejava
* @since 2024-05-06 15:37:55

View File

@ -48,14 +48,14 @@
<select id="entity_get" resultMap="get-IntegrationTaskLogEntity-result">
select
<include refid="IntegrationTaskLogEntity_Base_Column_List"/>
from integration_task_living_details where id = #{id} and sts = 'Y'
from integration_task_log where id = #{id} and sts = 'Y'
</select>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-IntegrationTaskLogEntity-result"
parameterType="com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
select
<include refid="IntegrationTaskLogEntity_Base_Column_List"/>
from integration_task_living_details
from integration_task_log
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id = #{id}</if>
<if test="taskLinvingId != null and taskLinvingId != ''">and task_linving_id = #{taskLinvingId}</if>
@ -84,7 +84,7 @@
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer"
parameterType="com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
select count(1) from integration_task_living_details
select count(1) from integration_task_log
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id = #{id}</if>
<if test="taskLinvingId != null and taskLinvingId != ''">and task_linving_id = #{taskLinvingId}</if>
@ -115,7 +115,7 @@
parameterType="com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
select
<include refid="IntegrationTaskLogEntity_Base_Column_List"/>
from integration_task_living_details
from integration_task_log
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
<if test="taskLinvingId != null and taskLinvingId != ''">and task_linving_id like
@ -152,7 +152,7 @@
parameterType="com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
select
<include refid="IntegrationTaskLogEntity_Base_Column_List"/>
from integration_task_living_details
from integration_task_log
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">or id = #{id}</if>
<if test="taskLinvingId != null and taskLinvingId != ''">or task_linving_id = #{taskLinvingId}</if>
@ -181,7 +181,7 @@
<!--新增所有列-->
<insert id="entity_insert"
parameterType="com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
insert into integration_task_living_details(
insert into integration_task_log(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''">id ,</if>
<if test="taskLinvingId != null and taskLinvingId != ''">task_linving_id ,</if>
@ -230,7 +230,7 @@
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" >
insert into integration_task_living_details(task_linving_id, task_id, task_code, task_name, remark, task_status,
insert into integration_task_log(task_linving_id, task_id, task_code, task_name, remark, task_status,
start_time, end_time, diff_time, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id,
company_id, sts)
values
@ -241,7 +241,7 @@
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" >
insert into integration_task_living_details(task_linving_id, task_id, task_code, task_name, remark, task_status,
insert into integration_task_log(task_linving_id, task_id, task_code, task_name, remark, task_status,
start_time, end_time, diff_time, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id,
company_id)
values
@ -270,7 +270,7 @@
<!--通过主键修改方法-->
<update id="entity_update"
parameterType="com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
update integration_task_living_details set
update integration_task_log set
<trim suffix="" suffixOverrides=",">
<if test="taskLinvingId != null and taskLinvingId != ''">task_linving_id = #{taskLinvingId},</if>
<if test="taskId != null and taskId != ''">task_id = #{taskId},</if>
@ -295,13 +295,13 @@
<!-- 逻辑删除 -->
<update id="entity_logicDelete"
parameterType="com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
update integration_task_living_details set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
update integration_task_log set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition"
parameterType="com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
update integration_task_living_details set sts= 'N' ,modify_time = #{modify_time},modify_user_id =
update integration_task_log set sts= 'N' ,modify_time = #{modify_time},modify_user_id =
#{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id = #{id}</if>
@ -322,7 +322,7 @@ where id = #{id}
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from integration_task_living_details where id = #{id}
delete from integration_task_log where id = #{id}
</delete>
</mapper>