From af2959545a9c5d61b45b3b69d40d3d33f90ce407 Mon Sep 17 00:00:00 2001 From: "476474485@qq.com" <q8928627q> Date: Mon, 13 Jan 2025 10:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E9=9B=86?= =?UTF-8?q?=E6=88=90=E6=8F=92=E4=BB=B6=E5=86=85=E5=AE=B9=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E6=A0=B9=E6=8D=AE=E6=8F=92=E4=BB=B6idlike?= =?UTF-8?q?=EF=BC=8C=E8=B0=83=E6=95=B4=E4=B8=BA=3D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SysIntegratedForegroundTaskEntity.xml | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTask/entity/SysIntegratedForegroundTaskEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTask/entity/SysIntegratedForegroundTaskEntity.xml index 617674c7..f597f30d 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTask/entity/SysIntegratedForegroundTaskEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTask/entity/SysIntegratedForegroundTaskEntity.xml @@ -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>