From ee7f2c1ff8b8bdc2352db35dc26253ac8e4d832d Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期三, 24 七月 2024 11:06:30 +0800
Subject: [PATCH] check station API add check line disabled
---
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