From 5c58a8a9fa43c671af54358172f853f02c4acfc7 Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期四, 16 一月 2025 21:18:36 +0800 Subject: [PATCH] zjh20250116 --- ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjSamplingMapper.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjSamplingMapper.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjSamplingMapper.java index 8204779..58f8184 100644 --- a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjSamplingMapper.java +++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjSamplingMapper.java @@ -178,4 +178,21 @@ "\t\ta.id = #{id} \n" + "\t) aa WHERE aa.jyfldm NOT IN ( SELECT c.flbm FROM lis_jyflhb c )") int isMergeItem(@Param("id") String id); + + + @Update("UPDATE tj_sampling a SET\n" + + "a.update_time=SYSDATE(),\n" + + "a.update_by= #{userName},\n" + + "a.update_id= #{userId},\n" + + "a.create_id = #{userId}\n"+ + "WHERE a.tj_num=#{tjNum}") + boolean updateUserIdByTjNum(@Param("tjNum")String tjNum,@Param("userName")String userName,@Param("userId") String userId); + + @Update("UPDATE tj_sampling a SET\n" + + "a.update_time=SYSDATE(),\n" + + "a.update_by= #{userName},\n" + + "a.update_id= #{userId},\n" + + "a.create_id = #{userId}\n"+ + "WHERE a.tj_num=#{tjNum} AND a.jxbz = #{jxbz}") + boolean updateUserIdByTjNumAndJxbz(@Param("tjNum")String tjNum,@Param("userName")String userName,@Param("userId") String userId,@Param("jxbz") String jxbz); } -- Gitblit v1.8.0