丽知:中台日志查询修改

This commit is contained in:
zhengyf 2024-09-19 16:11:07 +08:00
parent bab87f833d
commit 1894f9a15f
3 changed files with 17 additions and 0 deletions

View File

@ -40,5 +40,7 @@ public interface IIntegrationTaskLivingDetailsDao extends IBaseDao<IntegrationTa
IntegrationTaskLivingDetailsEntity queryEntity(IntegrationTaskLivingDetailsEntity entity);
Integer deleteEntity(IntegrationTaskLivingDetailsEntity deleteEntity);
IntegrationTaskLivingDetailsEntity queryEntityById(IntegrationTaskLivingDetailsEntity entity);
}

View File

@ -52,5 +52,9 @@ public class IntegrationTaskLivingDetailsDaoImpl extends MybatisGenericDao<Integ
public IntegrationTaskLivingDetailsEntity queryEntity(IntegrationTaskLivingDetailsEntity entity) {
return (IntegrationTaskLivingDetailsEntity) super.selectOne(getSqlIdPrifx() + "queryEntity", entity);
}
@Override
public IntegrationTaskLivingDetailsEntity queryEntityById(IntegrationTaskLivingDetailsEntity entity) {
return (IntegrationTaskLivingDetailsEntity) super.selectOne(getSqlIdPrifx() + "queryEntityById", entity);
}
}

View File

@ -573,6 +573,17 @@
</otherwise>
</choose> where id = #{id} and sts='Y'
</select>
<select id="queryEntityById" resultMap="get-IntegrationTaskLivingDetailsEntity-result" parameterType="com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity">
select
<include refid="IntegrationTaskLivingDetailsEntity_Base_Column_List" />
FROM integration_task_living_details WHERE id = #{id} AND sts='Y'
UNION ALL
select
<include refid="IntegrationTaskLivingDetailsEntity_Base_Column_List" />
FROM integration_task_living_details_success WHERE id = #{id} AND sts='Y'
</select>
<sql id="IntegrationTaskLivingDetailsVo_Base_Column_List">
id,
task_linving_id,