修改任务集成插件内容查询条件根据插件idlike,调整为=

This commit is contained in:
476474485@qq.com 2025-01-13 10:32:27 +08:00
parent 61fea10764
commit af2959545a
1 changed files with 20 additions and 20 deletions

View File

@ -19,24 +19,24 @@
<!-- 查询的字段-->
<sql id = "SysIntegratedForegroundTaskEntity_Base_Column_List">
id
,workshop_name
,plug_id
,plug_name
,remark
,sorts
,create_user_id
,create_time
,modify_user_id
,modify_time
,sts
,org_id
,workshop_name
,plug_id
,plug_name
,remark
,sorts
,create_user_id
,create_time
,modify_user_id
,modify_time
,sts
,org_id
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-SysIntegratedForegroundTaskEntity-result" parameterType = "com.hzya.frame.sysnew.integratedForegroundTask.entity.SysIntegratedForegroundTaskEntity">
select
<include refid="SysIntegratedForegroundTaskEntity_Base_Column_List" />
from sys_integrated_foreground_task
<trim prefix="where" prefixOverrides="and">
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="workshopName != null and workshopName != ''"> and workshop_name = #{workshopName} </if>
<if test="plugId != null and plugId != ''"> and plug_id = #{plugId} </if>
@ -54,11 +54,11 @@
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.sysnew.integratedForegroundTask.entity.SysIntegratedForegroundTaskEntity">
select count(1) from sys_integrated_foreground_task
<trim prefix="where" prefixOverrides="and">
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="workshopName != null and workshopName != ''"> and workshop_name = #{workshopName} </if>
<if test="plugId != null and plugId != ''"> and plug_id = #{plugId} </if>
@ -82,10 +82,10 @@
select
<include refid="SysIntegratedForegroundTaskEntity_Base_Column_List" />
from sys_integrated_foreground_task
<trim prefix="where" prefixOverrides="and">
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
<if test="workshopName != null and workshopName != ''"> and workshop_name like concat('%',#{workshopName},'%') </if>
<if test="plugId != null and plugId != ''"> and plug_id like concat('%',#{plugId},'%') </if>
<if test="plugId != null and plugId != ''"> and plug_id = #{plugId} </if>
<if test="plugName != null and plugName != ''"> and plug_name like concat('%',#{plugName},'%') </if>
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </if>
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
@ -106,7 +106,7 @@
select
<include refid="SysIntegratedForegroundTaskEntity_Base_Column_List" />
from sys_integrated_foreground_task
<trim prefix="where" prefixOverrides="and">
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> or id = #{id} </if>
<if test="workshopName != null and workshopName != ''"> or workshop_name = #{workshopName} </if>
<if test="plugId != null and plugId != ''"> or plug_id = #{plugId} </if>
@ -164,11 +164,11 @@
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
<if test="sts == null ">'Y',</if>
</trim>
)
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" >
insert into sys_integrated_foreground_task(workshop_name, plug_id, plug_name, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
insert into sys_integrated_foreground_task(workshop_name, plug_id, plug_name, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.workshopName},#{entity.plugId},#{entity.plugName},#{entity.remark},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, 'Y')
@ -219,7 +219,7 @@ where id = #{id}
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.sysnew.integratedForegroundTask.entity.SysIntegratedForegroundTaskEntity" >
update sys_integrated_foreground_task 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="workshopName != null and workshopName != ''"> and workshop_name = #{workshopName} </if>
<if test="plugId != null and plugId != ''"> and plug_id = #{plugId} </if>