From 723d38375c45d24737bfef6f33a9686254abf99b Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 17 十月 2024 13:42:27 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml | 19 ++++--------------- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml index 65a6411..f9e35c8 100644 --- a/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml @@ -146,26 +146,15 @@ <if test="sendState != null ">and send_state = #{sendState}</if> <if test="leavehospitaldistrictname != null ">and leavehospitaldistrictname = #{leavehospitaldistrictname}</if> <if test="leavehospitaldistrictcode != null ">and leavehospitaldistrictcode = #{leavehospitaldistrictcode}</if> - <if test="leavehospitaldistrictcodes != null and leaveldeptcodes != null"> - AND (leavehospitaldistrictcode IN - <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," - close=")"> - #{leavehospitaldistrictcode} - </foreach> - OR deptcode IN - <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," - close="))"> - #{leaveldeptcode} - </foreach> - </if> - <if test="leavehospitaldistrictcodes != null and leaveldeptcodes == null"> + + <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size()>0"> AND leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> </if> - <if test="leavehospitaldistrictcodes == null and leaveldeptcodes != null"> + <if test="leaveldeptcodes != null and leaveldeptcodes.size()>0"> AND deptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close=")"> @@ -327,7 +316,7 @@ <if test="serviceType != null and serviceType != ''">service_type = #{serviceType},</if> <if test="longTask != null and longTask != ''">long_task = #{longTask},</if> <if test="kcb != null and kcb != ''">kcb = #{kcb},</if> - <if test="jsy != null and jsy != ''">kcb = #{jsy},</if> + <if test="jsy != null and jsy != ''">jsy = #{jsy},</if> <if test="leavehospitaldistrictname != null ">leavehospitaldistrictname = #{leavehospitaldistrictname},</if> <if test="leavehospitaldistrictcode != null ">leavehospitaldistrictcode = #{leavehospitaldistrictcode},</if> </trim> -- Gitblit v1.9.3