From 7189009850befd6dbd844ea61dee393c8e60e2ab Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期四, 02 一月 2025 15:26:16 +0800 Subject: [PATCH] 20250102-02 --- 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..e5f61fb 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