From 950264a579736c1c51f1efe4baf0ac1476d5748c Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期一, 02 十二月 2024 11:06:46 +0800 Subject: [PATCH] bug修改 --- finance-system/src/main/resources/mapper/system/TbScoreMapper.xml | 16 +++------------- 1 files changed, 3 insertions(+), 13 deletions(-) diff --git a/finance-system/src/main/resources/mapper/system/TbScoreMapper.xml b/finance-system/src/main/resources/mapper/system/TbScoreMapper.xml index 1ef4e11..244cb56 100644 --- a/finance-system/src/main/resources/mapper/system/TbScoreMapper.xml +++ b/finance-system/src/main/resources/mapper/system/TbScoreMapper.xml @@ -72,19 +72,9 @@ CURDATE()) AND su.user_id in (SELECT user_id FROM sys_user - WHERE ( - ( - #{areaCode} = '510000' - AND area_code LIKE CONCAT( SUBSTRING( #{areaCode}, 1, 2 ), '%' )) - OR ( - #{areaCode} != '510000' - AND area_code LIKE CONCAT( SUBSTRING( #{areaCode}, 1, 4 ), '%' )) - OR ( - #{areaCode}= '510100' - AND area_code IN ( '510008', '510015', '510017', '510025' )) + WHERE user_type = 2 + AND area_level in (1,2,3,4) ) - AND user_type = 2 - AND area_level in (1,2,3,4)) </where> GROUP BY tbc.dept_area_code @@ -127,7 +117,7 @@ AND su.area_code=#{query.areaCode} </if> <if test="query.previousQuarter != null and query.previousQuarter != ''"> - AND tbd.quarter=#{previousQuarter} + AND tbd.quarter=#{query.previousQuarter} </if> group by su.area_code </where> -- Gitblit v1.7.1