修改链接数据库名

dev
wangpeng 2024-04-17 00:32:49 +08:00
parent d8e10066fc
commit 655a47faea
2 changed files with 12 additions and 12 deletions

View File

@ -401,9 +401,9 @@
left join bus_checkrecord bc on bc.CHECKRECORD_ID = f.CHECKRECORD_ID and bc.ISDELETE = 0
left join <include refid="dicTableName"></include> lv on f.HIDDENLEVEL = lv.BIANMA
left join <include refid="dicTableName"></include> ht on f.HIDDENTYPE = ht.BIANMA
left join `zcloud_system`.sys_dictionaries hto on f.HIDDENTYPE1 = hto.DICTIONARIES_ID
left join `zcloud_system`.sys_dictionaries htt on f.HIDDENTYPE2 = htt.DICTIONARIES_ID
left join `zcloud_system`.sys_dictionaries htth on f.HIDDENTYPE3 = htth.DICTIONARIES_ID
left join sys_dictionaries hto on f.HIDDENTYPE1 = hto.DICTIONARIES_ID
left join sys_dictionaries htt on f.HIDDENTYPE2 = htt.DICTIONARIES_ID
left join sys_dictionaries htth on f.HIDDENTYPE3 = htth.DICTIONARIES_ID
where
f.HIDDEN_ID = #{HIDDEN_ID}
</select>
@ -1152,13 +1152,13 @@
htth.NAME as HIDDENTYPE3_NAME
from bus_hidden a
left join bus_corp_info c on c.CORPINFO_ID = a.CORPINFO_ID
left join `zcloud_system`.sys_dictionaries ito on c.CORP_TYPE = ito.DICTIONARIES_ID
left join `zcloud_system`.sys_dictionaries itt on c.CORP_TYPE2 = itt.DICTIONARIES_ID
left join `zcloud_system`.sys_dictionaries itth on c.CORP_TYPE3 = itth.DICTIONARIES_ID
left join `zcloud_system`.sys_dictionaries itf on c.CORP_TYPE4 = itf.DICTIONARIES_ID
left join `zcloud_system`.sys_dictionaries hto on a.HIDDENTYPE1 = hto.DICTIONARIES_ID
left join `zcloud_system`.sys_dictionaries htt on a.HIDDENTYPE2 = htt.DICTIONARIES_ID
left join `zcloud_system`.sys_dictionaries htth on a.HIDDENTYPE3 = htth.DICTIONARIES_ID
left join sys_dictionaries ito on c.CORP_TYPE = ito.DICTIONARIES_ID
left join sys_dictionaries itt on c.CORP_TYPE2 = itt.DICTIONARIES_ID
left join sys_dictionaries itth on c.CORP_TYPE3 = itth.DICTIONARIES_ID
left join sys_dictionaries itf on c.CORP_TYPE4 = itf.DICTIONARIES_ID
left join sys_dictionaries hto on a.HIDDENTYPE1 = hto.DICTIONARIES_ID
left join sys_dictionaries htt on a.HIDDENTYPE2 = htt.DICTIONARIES_ID
left join sys_dictionaries htth on a.HIDDENTYPE3 = htth.DICTIONARIES_ID
where a.ISDELETE = '0' and a.ADD_LIBRARY_FLAG is null
<if test="pd.CORP_TYPE != null and pd.CORP_TYPE != ''">
and c.CORP_TYPE = #{pd.CORP_TYPE}

View File

@ -284,11 +284,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
u.CREATCOUNT,
r.ROLE_ID,
r.ROLE_NAME,
(select a.AGENCY_NAME from `qa-traffic-prevention`.bus_agency_management a where u.AGENCY_MANAGEMENT_ID = a.AGENCY_MANAGEMENT_ID and a.ISDELETE = '0')
(select a.AGENCY_NAME from bus_agency_management a where u.AGENCY_MANAGEMENT_ID = a.AGENCY_MANAGEMENT_ID and a.ISDELETE = '0')
as AGENCY_NAME
from <include refid="tableName"></include> u
left join SYS_ROLE r on u.ROLE_ID = r.ROLE_ID
left join `qa-traffic-prevention`.bus_agency_management a on a.AGENCY_MANAGEMENT_ID = u.AGENCY_MANAGEMENT_ID
left join bus_agency_management a on a.AGENCY_MANAGEMENT_ID = u.AGENCY_MANAGEMENT_ID
left join SYS_DICTIONARIES s on s.DICTIONARIES_ID = u.SEX
where
u.USERNAME != 'admin'