From 15204e14f64e12d6156b7ca18b5d5603bc08330e Mon Sep 17 00:00:00 2001 From: songyunpeng Date: Wed, 16 Jun 2021 15:37:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB=E7=BC=96=E7=A0=81level+1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/item/ItemAnalysisDao.xml | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/item/ItemAnalysisDao.xml b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/item/ItemAnalysisDao.xml index 6833e2c6..83591e82 100644 --- a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/item/ItemAnalysisDao.xml +++ b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/item/ItemAnalysisDao.xml @@ -495,7 +495,14 @@ ) ) AS pid, ei.PARENT_DEPT_IDS AS pids, - ec.category_type AS LEVEL + CASE ec.category_type + WHEN 0 THEN '1' + WHEN 1 THEN '2' + WHEN 2 THEN '3' + WHEN 3 THEN '4' + WHEN 4 THEN '5' + ELSE '' + END AS level FROM .epdc_item ei LEFT JOIN .epdc_category ec ON ei.CATEGORY_CODE = ec.category_code @@ -519,7 +526,14 @@ comm.pid AS pid, comm.pids AS pids, 'community' AS orgType, - ec.category_type AS LEVEL + CASE ec.category_type + WHEN 0 THEN '1' + WHEN 1 THEN '2' + WHEN 2 THEN '3' + WHEN 3 THEN '4' + WHEN 4 THEN '5' + ELSE '' + END AS level FROM .epdc_item ei LEFT JOIN .epdc_category ec ON ei.CATEGORY_CODE = ec.category_code @@ -544,7 +558,14 @@ '0' AS pid, '0' AS pids, 'street' AS orgType, - ec.category_type AS LEVEL + CASE ec.category_type + WHEN 0 THEN '1' + WHEN 1 THEN '2' + WHEN 2 THEN '3' + WHEN 3 THEN '4' + WHEN 4 THEN '5' + ELSE '' + END AS level FROM .epdc_item ei LEFT JOIN .epdc_category ec ON ei.CATEGORY_CODE = ec.category_code