修改表名及引用地方

This commit is contained in:
lvleigang 2024-05-15 14:33:29 +08:00
parent 8a1114bb35
commit 74b7005879
3 changed files with 28 additions and 28 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.impl.IntegrationTaskLivingDetailsDaoImpl">
<mapper namespace="com.hzya.frame.sysnew.integtationTaskLog.dao.impl.IntegrationTaskLogDaoImpl">
<resultMap id="get-IntegrationTaskLivingDetailsEntity-result" type="com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity" >
<resultMap id="get-IntegrationTaskLogEntity-result" type="com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity" >
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="taskLinvingId" column="task_linving_id" jdbcType="VARCHAR"/>
<result property="result" column="result" jdbcType="VARCHAR"/>
@ -37,7 +37,7 @@
<result property="def5" column="def5" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "IntegrationTaskLivingDetailsEntity_Base_Column_List">
<sql id = "IntegrationTaskLogEntity_Base_Column_List">
id
,task_linving_id
,result
@ -72,9 +72,9 @@
,def5
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-IntegrationTaskLivingDetailsEntity-result" parameterType = "com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity">
<select id="entity_list_base" resultMap="get-IntegrationTaskLogEntity-result" parameterType = "com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
select
<include refid="IntegrationTaskLivingDetailsEntity_Base_Column_List" />
<include refid="IntegrationTaskLogEntity_Base_Column_List" />
from integration_task_living_details
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
@ -116,7 +116,7 @@
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity">
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
select count(1) from integration_task_living_details
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
@ -158,9 +158,9 @@
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-IntegrationTaskLivingDetailsEntity-result" parameterType = "com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity">
<select id="entity_list_like" resultMap="get-IntegrationTaskLogEntity-result" parameterType = "com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
select
<include refid="IntegrationTaskLivingDetailsEntity_Base_Column_List" />
<include refid="IntegrationTaskLogEntity_Base_Column_List" />
from integration_task_living_details
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
@ -202,9 +202,9 @@
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="IntegrationTaskLivingDetailsentity_list_or" resultMap="get-IntegrationTaskLivingDetailsEntity-result" parameterType = "com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity">
<select id="IntegrationTaskLogentity_list_or" resultMap="get-IntegrationTaskLogEntity-result" parameterType = "com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity">
select
<include refid="IntegrationTaskLivingDetailsEntity_Base_Column_List" />
<include refid="IntegrationTaskLogEntity_Base_Column_List" />
from integration_task_living_details
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> or id = #{id} </if>
@ -246,7 +246,7 @@
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity" >
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity" >
insert into integration_task_living_details(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> id , </if>
@ -370,7 +370,7 @@
def4 = values(def4),
def5 = values(def5)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity" >
<update id="entity_update" parameterType = "com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity" >
update integration_task_living_details set
<trim suffix="" suffixOverrides=",">
<if test="taskLinvingId != null and taskLinvingId != ''"> task_linving_id = #{taskLinvingId},</if>
@ -407,12 +407,12 @@ update integration_task_living_details set
where id = #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity" >
<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}
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity" >
<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 = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>

View File

@ -1,12 +1,12 @@
package com.hzya.frame.sysnew.integtationTaskLivingDetails.service;
package com.hzya.frame.sysnew.integtationTaskLog.service;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity;
import com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity;
import com.hzya.frame.basedao.service.IBaseService;
/**
* 集成任务-实例详情(IntegrationTaskLivingDetails)表服务接口
* 集成任务-实例详情(IntegrationTaskLog)表服务接口
*
* @author makejava
* @since 2024-05-15 14:06:43
*/
public interface IIntegrationTaskLivingDetailsService extends IBaseService<IntegrationTaskLivingDetailsEntity, String>{
public interface IIntegrationTaskLogService extends IBaseService<IntegrationTaskLogEntity, String>{
}

View File

@ -1,26 +1,26 @@
package com.hzya.frame.sysnew.integtationTaskLivingDetails.service.impl;
package com.hzya.frame.sysnew.integtationTaskLog.service.impl;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.IIntegrationTaskLivingDetailsDao;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.service.IIntegrationTaskLivingDetailsService;
import com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity;
import com.hzya.frame.sysnew.integtationTaskLog.dao.IIntegrationTaskLogDao;
import com.hzya.frame.sysnew.integtationTaskLog.service.IIntegrationTaskLogService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* 集成任务-实例详情(IntegrationTaskLivingDetails)表服务实现类
* 集成任务-实例详情(IntegrationTaskLog)表服务实现类
*
* @author makejava
* @since 2024-05-15 14:06:46
*/
@Service(value = "integrationTaskLivingDetailsService")
public class IntegrationTaskLivingDetailsServiceImpl extends BaseService<IntegrationTaskLivingDetailsEntity, String> implements IIntegrationTaskLivingDetailsService {
@Service(value = "integrationTaskLogService")
public class IntegrationTaskLogServiceImpl extends BaseService<IntegrationTaskLogEntity, String> implements IIntegrationTaskLogService {
private IIntegrationTaskLivingDetailsDao integrationTaskLivingDetailsDao;
private IIntegrationTaskLogDao integrationTaskLogDao;
@Autowired
public void setIntegrationTaskLivingDetailsDao(IIntegrationTaskLivingDetailsDao dao) {
this.integrationTaskLivingDetailsDao = dao;
public void setIntegrationTaskLogDao(IIntegrationTaskLogDao dao) {
this.integrationTaskLogDao = dao;
this.dao = dao;
}
}