修改任务集成插件内容查询条件根据插件idlike,调整为=
This commit is contained in:
parent
61fea10764
commit
af2959545a
|
@ -19,24 +19,24 @@
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id = "SysIntegratedForegroundTaskEntity_Base_Column_List">
|
<sql id = "SysIntegratedForegroundTaskEntity_Base_Column_List">
|
||||||
id
|
id
|
||||||
,workshop_name
|
,workshop_name
|
||||||
,plug_id
|
,plug_id
|
||||||
,plug_name
|
,plug_name
|
||||||
,remark
|
,remark
|
||||||
,sorts
|
,sorts
|
||||||
,create_user_id
|
,create_user_id
|
||||||
,create_time
|
,create_time
|
||||||
,modify_user_id
|
,modify_user_id
|
||||||
,modify_time
|
,modify_time
|
||||||
,sts
|
,sts
|
||||||
,org_id
|
,org_id
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-SysIntegratedForegroundTaskEntity-result" parameterType = "com.hzya.frame.sysnew.integratedForegroundTask.entity.SysIntegratedForegroundTaskEntity">
|
<select id="entity_list_base" resultMap="get-SysIntegratedForegroundTaskEntity-result" parameterType = "com.hzya.frame.sysnew.integratedForegroundTask.entity.SysIntegratedForegroundTaskEntity">
|
||||||
select
|
select
|
||||||
<include refid="SysIntegratedForegroundTaskEntity_Base_Column_List" />
|
<include refid="SysIntegratedForegroundTaskEntity_Base_Column_List" />
|
||||||
from sys_integrated_foreground_task
|
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="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="workshopName != null and workshopName != ''"> and workshop_name = #{workshopName} </if>
|
<if test="workshopName != null and workshopName != ''"> and workshop_name = #{workshopName} </if>
|
||||||
<if test="plugId != null and plugId != ''"> and plug_id = #{plugId} </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 == 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>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
<!-- 查询符合条件的数量 -->
|
||||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.sysnew.integratedForegroundTask.entity.SysIntegratedForegroundTaskEntity">
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.sysnew.integratedForegroundTask.entity.SysIntegratedForegroundTaskEntity">
|
||||||
select count(1) from sys_integrated_foreground_task
|
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="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="workshopName != null and workshopName != ''"> and workshop_name = #{workshopName} </if>
|
<if test="workshopName != null and workshopName != ''"> and workshop_name = #{workshopName} </if>
|
||||||
<if test="plugId != null and plugId != ''"> and plug_id = #{plugId} </if>
|
<if test="plugId != null and plugId != ''"> and plug_id = #{plugId} </if>
|
||||||
|
@ -82,10 +82,10 @@
|
||||||
select
|
select
|
||||||
<include refid="SysIntegratedForegroundTaskEntity_Base_Column_List" />
|
<include refid="SysIntegratedForegroundTaskEntity_Base_Column_List" />
|
||||||
from sys_integrated_foreground_task
|
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="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="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="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="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </if>
|
||||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
select
|
select
|
||||||
<include refid="SysIntegratedForegroundTaskEntity_Base_Column_List" />
|
<include refid="SysIntegratedForegroundTaskEntity_Base_Column_List" />
|
||||||
from sys_integrated_foreground_task
|
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="id != null and id != ''"> or id = #{id} </if>
|
||||||
<if test="workshopName != null and workshopName != ''"> or workshop_name = #{workshopName} </if>
|
<if test="workshopName != null and workshopName != ''"> or workshop_name = #{workshopName} </if>
|
||||||
<if test="plugId != null and plugId != ''"> or plug_id = #{plugId} </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="org_id != null and org_id != ''"> #{org_id} ,</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 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
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<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')
|
(#{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 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}
|
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="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="workshopName != null and workshopName != ''"> and workshop_name = #{workshopName} </if>
|
<if test="workshopName != null and workshopName != ''"> and workshop_name = #{workshopName} </if>
|
||||||
<if test="plugId != null and plugId != ''"> and plug_id = #{plugId} </if>
|
<if test="plugId != null and plugId != ''"> and plug_id = #{plugId} </if>
|
||||||
|
|
Loading…
Reference in New Issue