Browse Source

修改sql

hgw 3 years ago
parent
commit
2e1e4e826a

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/PlatformProductMapper.xml

@@ -157,7 +157,7 @@
         FROM
         tenant_info AS a
                 JOIN `tenant_product_info` AS b
-                     ON a.`id_` = b.`tenant_id_` and b.using = 0
+                     ON a.`id_` = b.`tenant_id_` and b.using_ = 0
                 JOIN
             (SELECT
                  a.id_ AS serveId,

+ 2 - 2
mec-biz/src/main/resources/config/mybatis/TenantInfoMapper.xml

@@ -60,7 +60,7 @@
         d.`student_up_limit_`,
         b.`expiry_date_`
         FROM tenant_info AS a
-        LEFT JOIN tenant_product_info AS b ON a.`id_` = b.`tenant_id_` and b.using = 0
+        LEFT JOIN tenant_product_info AS b ON a.`id_` = b.`tenant_id_` and b.using_ = 0
         LEFT JOIN platform_serve AS c ON b.`serve_id_` = c.`id_`
         LEFT JOIN platform_serve_detail AS d ON b.`serve_detail_id_` = d.`id_` AND c.`id_` = d.`serve_id_`
         LEFT JOIN sys_user AS u ON a.`created_by_` = u.`id_`
@@ -100,7 +100,7 @@
                    psd.student_up_limit_ as studentUpLimit
             FROM `tenant_info` t
                      left join tenant_assets_info ta on ta.tenant_id_ = t.id_
-                     left join tenant_product_info tp on tp.tenant_id_ = t.id_ and tp.using = 0
+                     left join tenant_product_info tp on tp.tenant_id_ = t.id_ and tp.using_ = 0
                      left join platform_serve ps on tp.serve_id_ = ps.id_
                      left join platform_serve_detail psd on tp.serve_detail_id_ = psd.id_
             where t.id_ = #{tenantId}