From 00ef571f12414e065868d6a9ce37e494b57958e5 Mon Sep 17 00:00:00 2001 From: Fancy <Fancy.fx@outlook.com> Date: 星期二, 23 七月 2024 16:32:42 +0800 Subject: [PATCH] login change --- pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml | 36 +++++++++++++++++++++++++++++++++++- 1 files changed, 35 insertions(+), 1 deletions(-) diff --git a/pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml index 8b32de7..bfd33b8 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml @@ -297,7 +297,41 @@ </if> </where> </select> - + <select id="existsEntity" resultMap="BaseResultMap"> + select + <include refid="Base_Column_List"/> + from sta_assembly_work_last + where user_id = #{userId,jdbcType=BIGINT} + and station_id = #{stationId,jdbcType=BIGINT} + <choose> + <when test="planId != null"> + and plan_id = #{planId,jdbcType=BIGINT} + </when> + <otherwise> + and plan_id is null + </otherwise> + </choose> + <choose> + <when test="processId != null"> + and process_id = #{processId,jdbcType=BIGINT} + </when> + <otherwise> + and process_id is null + </otherwise> + </choose> + <choose> + <when test="nodeId != null"> + and node_id = #{nodeId,jdbcType=BIGINT} + </when> + <otherwise> + and node_id is null + </otherwise> + </choose> + and work_type = #{workType,jdbcType=TINYINT} + <if test="id != null"> + and id != #{id,jdbcType=BIGINT} + </if> + </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from sta_assembly_work_last -- Gitblit v1.8.0