From 63447fec93e8e562833db30bc848884001b808c4 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期四, 28 十二月 2023 12:13:06 +0800
Subject: [PATCH] 修改

---
 core/src/main/resources/mapper/core/ProductDao.xml |   48 ++++++++++++++++++++++++------------------------
 1 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/core/src/main/resources/mapper/core/ProductDao.xml b/core/src/main/resources/mapper/core/ProductDao.xml
index beb58b0..2753e06 100644
--- a/core/src/main/resources/mapper/core/ProductDao.xml
+++ b/core/src/main/resources/mapper/core/ProductDao.xml
@@ -16,17 +16,17 @@
 
     <select id="getShipList" resultType="com.zt.life.core.model.Product">
         select a.*, a.level2 as LEVEL
-        from CORE_PRODUCT a
+        from core_product a
         where a.is_delete = 0 and a.status = 1 and a.level2='L2'
         <if test="localAear!=null">
-            and ship_id in (select ship_id from SYS_AREA_SHIP where area='${localAear}')
+            and ship_id in (select ship_id from sys_area_ship where area='${localAear}')
         </if>
         ORDER BY sort
     </select>
 
     <select id="getList" resultType="com.zt.life.core.model.Product">
         select a.*, a.level2 as LEVEL
-        from CORE_PRODUCT a
+        from core_product a
         <where>
             <if test="whereSql!=null">
                 ${whereSql}
@@ -40,50 +40,50 @@
     <select id="getLevelList" parameterType="java.lang.String" resultType="com.zt.life.core.model.Product">
         SELECT
           a.*, a.level2 as LEVEL
-        FROM CORE_PRODUCT a
+        FROM core_product a
         WHERE
         a.level2 =  #{level}
     </select>
 
     <select id="getSubList" parameterType="java.lang.String" resultType="com.zt.life.core.model.Product">
         SELECT id, product_id, name, level2 as level
-        FROM CORE_PRODUCT
+        FROM core_product
         WHERE 1=1 AND is_delete=0
         <if test='pid=="0"'>
-            and product_id IN( SELECT SHIP_ID
+            and product_id IN( SELECT ship_id
             FROM
-            SYS_AREA_SHIP
+            sys_area_ship
             WHERE
-            AREA = 'sy'
+            area = 'sy'
             )
         </if>
         <if test="pid!='0'.toString()">
-            and Parent_Product_ID = #{pid}
+            and parent_product_id = #{pid}
         </if>
 
     </select>
     <select id="getListByIds" parameterType="java.lang.String" resultType="com.zt.life.core.model.Product">
         SELECT id, product_id, name, level2 as level
-        FROM CORE_PRODUCT
+        FROM core_product
         WHERE 1=1 AND is_delete=0
         <if test="ids!=null and ids!=''">
             and CONCAT(',',#{ids},',') like CONCAT('%,',product_id,',%')
         </if>
         <if test="ids==null or ids==''">
-            and Parent_Product_ID = -1
+            and parent_product_id = -1
         </if>
     </select>
 
     <select id="getAllNodeByShipId" parameterType="java.lang.Long" resultType="com.zt.common.entity.MapData">
-        SELECT PRODUCT_ID as id,name
-        FROM CORE_PRODUCT
+        SELECT product_id as id,name
+        FROM core_product
         WHERE 1=1 AND is_delete=0
         and status=1 and ship_id = #{shipId}
     </select>
 
     <select id="getIdByName" resultType="java.lang.Long">
         SELECT
-        PRODUCT_ID
+        product_id
         FROM
         view_zt_boat_tree
         WHERE 1=1
@@ -102,7 +102,7 @@
             and layer in (${levels})
         </if>
         <if test="productId != null and productId != ''">
-            and CONNECT_ID = concat(#{productId})
+            and connect_id = concat(#{productId})
         </if>
         group by info_id
         order by label
@@ -113,7 +113,7 @@
             SELECT
                 a.id,
                 a.product_id,
-                CONCAT(d.name,'-',a.`YEAR`,'-',c.Dict_label) AS `name`,
+                CONCAT(d.name,'-',a.`year`,'-',c.dict_label) AS `name`,
                 'qd' as area
             FROM
                 wx_qd_project a
@@ -122,11 +122,11 @@
                         where isdelete = 0 and layer = 'side'
                         group by info_id
                     ) d on d.info_id = concat(a.product_id)
-                LEFT JOIN QD_SYS_DICT_DATA c ON a.maintain_level = c.Dict_Value AND dict_type_id IN (SELECT id FROM SYS_DICT_TYPE WHERE DICT_TYPE='question_level_type')
+                LEFT JOIN qd_sys_dict_data c ON a.maintain_level = c.dict_value AND dict_type_id IN (SELECT id FROM sys_dict_type WHERE dict_type='question_level_type')
                 WHERE
                     a.is_delete = 0
                     <if test="sideId != null and sideId != ''">
-                        and a.PRODUCT_ID = #{sideId}
+                        and a.product_id = #{sideId}
                     </if>
             UNION
             SELECT
@@ -136,11 +136,11 @@
                 'sy' as area
             FROM
                 wx_project a
-                LEFT JOIN SYS_DICT_DATA c ON a.maintain_level = c.Dict_Value AND dict_type_id IN (SELECT id FROM SYS_DICT_TYPE WHERE DICT_TYPE='question_level_type')
+                LEFT JOIN sys_dict_data c ON a.maintain_level = c.dict_value AND dict_type_id IN (SELECT id FROM sys_dict_type WHERE dict_type='question_level_type')
                 WHERE
                     a.is_delete = 0
                     <if test="sideId != null and sideId != ''">
-                        and a.PRODUCT_ID = #{sideId}
+                        and a.product_id = #{sideId}
                     </if>
             ) b
     </select>
@@ -151,7 +151,7 @@
                 a.id,
                 a.product_id,
                 /*d.parent_product_id,*/
-				a.`YEAR`
+				a.`year`
             FROM
                 wx_qd_project a
                 /*left join view_zt_boat_tree d on d.product_id = concat(a.product_id)*/
@@ -162,7 +162,7 @@
                 a.id,
                 a.product_id,
                /* d.parent_product_id,*/
-				a.`YEAR`
+				a.`year`
             FROM
                 wx_project a
                /* left join view_zt_boat_tree d on d.product_id = concat(a.product_id)*/
@@ -173,11 +173,11 @@
             LIMIT 1;
     </select>
     <select id="getIdByNameByProductId" resultType="java.lang.Long">
-        SELECT PRODUCT_ID
+        SELECT product_id
         FROM view_zt_boat_tree
         WHERE is_delete = 0
           and (`level` = 'system1' or `level` = 'system2')
           and name = #{name}
-          and concat(',', parent_Product_Ids, ',') like concat('%,', #{productId}, ',%')
+          and concat(',', parent_product_ids, ',') like concat('%,', #{productId}, ',%')
     </select>
 </mapper>

--
Gitblit v1.9.1