From d40a69e7d455c12e32201330a9fbe22a7b6b4b5d Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期四, 29 十二月 2022 14:44:45 +0800 Subject: [PATCH] fix: 获取部门树为启用的 --- ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml b/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml index 70b64c2..a82df1a 100644 --- a/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml +++ b/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml @@ -63,8 +63,11 @@ LEFT JOIN ums_data_dictionary AS t4 ON uv.type_id = t4.id LEFT JOIN ums_sccg_region t5 ON ubc.street_id = t5.id <where> - <if test="state!=null"> + <if test="state!=null and state!=6"> ubc.state=#{state} + </if> + <if test="state!=null and state==6"> + ubc.state >=#{state} </if> <if test="resource!=null"> and ubc.event_source=#{resource} @@ -95,9 +98,12 @@ left JOIN ums_data_dictionary AS t1 ON uib.category_id = t1.id left JOIN ums_sccg_region t2 ON ubc.community_id = t2.id <where> - <if test="state!=null"> + <if test="state!=null and state!=6"> ubc.state=#{state} </if> + <if test="state!=null and state==6"> + ubc.state >=#{state} + </if> <if test="resource!=null"> and ubc.event_source=#{resource} </if> -- Gitblit v1.8.0