From d2c3f885edbcf18c80b28a0f29fcda02115c8b68 Mon Sep 17 00:00:00 2001 From: dinggang <2498628697@qq.com> Date: Mon, 28 Nov 2022 09:36:44 +0800 Subject: [PATCH] =?UTF-8?q?sql=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/processForm/TAbilityApplicationDao.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/renren-admin/src/main/resources/mapper/processForm/TAbilityApplicationDao.xml b/renren-admin/src/main/resources/mapper/processForm/TAbilityApplicationDao.xml index 43d98f0c..42e2d7ea 100644 --- a/renren-admin/src/main/resources/mapper/processForm/TAbilityApplicationDao.xml +++ b/renren-admin/src/main/resources/mapper/processForm/TAbilityApplicationDao.xml @@ -705,7 +705,7 @@ IFNULL( COUNT( taa.apply_price ), 0 ) AS "applyPrice", srg.sort FROM - ( SELECT id, NAME, sort FROM sys_region WHERE tree_level = 3 AND sort <= 9 ) srg + ( SELECT id, NAME, sort FROM sys_region WHERE tree_level = 3 AND 9 >= sort ) srg LEFT JOIN sys_dept sd ON sd.district = srg.id LEFT JOIN sys_user su ON su.dept_id = sd.id LEFT JOIN t_ability_application taa ON taa.user_id = su.id @@ -729,7 +729,7 @@ SELECT srg.id FROM - ( SELECT id, NAME, sort FROM sys_region WHERE tree_level = 3 AND sort <= 9 ) srg + ( SELECT id, NAME, sort FROM sys_region WHERE tree_level = 3 AND 9 >= sort ) srg LEFT JOIN sys_dept sd ON sd.district = srg.id LEFT JOIN sys_user su ON su.dept_id = sd.id LEFT JOIN t_ability_application taa ON taa.user_id = su.id @@ -887,7 +887,7 @@ IFNULL( SUM( taa.apply_price ), 0 ) AS "applyPrice", srg.sort FROM - ( SELECT id, NAME, sort FROM sys_region WHERE tree_level = 3 AND sort <= 9 ) srg + ( SELECT id, NAME, sort FROM sys_region WHERE tree_level = 3 AND 9 >= sort ) srg LEFT JOIN sys_dept sd ON sd.district = srg.id LEFT JOIN sys_user su ON su.dept_id = sd.id LEFT JOIN (SELECT user_id, SUM(apply_price) AS "apply_price", COUNT(id) AS "applyCount" FROM t_ability_application taa WHERE @@ -906,7 +906,7 @@ IFNULL( SUM(taa.apply_price ), 0 ) AS "applyPrice", srg.sort FROM - ( SELECT id, NAME, sort FROM sys_region WHERE tree_level = 3 AND sort <= 9 ) srg + ( SELECT id, NAME, sort FROM sys_region WHERE tree_level = 3 AND 9 >= sort ) srg LEFT JOIN sys_dept sd ON sd.district = srg.id LEFT JOIN tb_data_resource tdr ON tdr.dept_id = sd.id LEFT JOIN (SELECT resource_id, SUM(apply_price) AS "apply_price", COUNT(id) AS "applyCount" FROM t_ability_application taa WHERE