fix(系统): 修复达梦数据库 SQL 别名缺少双引号导致的兼容性问题
This commit is contained in:
+4
-4
@@ -38,10 +38,10 @@
|
||||
order by tian asc
|
||||
</if>
|
||||
<if test="dbType == 'oracle' || dbType == 'oracle12c' || dbType == 'dm'">
|
||||
select count(*) as visit
|
||||
,count(distinct(ip)) as ip
|
||||
,to_char(create_time, 'yyyy-mm-dd') as tian
|
||||
,to_char(create_time, 'mm-dd') as type
|
||||
select count(*) as "visit"
|
||||
,count(distinct(ip)) as "ip"
|
||||
,to_char(create_time, 'yyyy-mm-dd') as "tian"
|
||||
,to_char(create_time, 'mm-dd') as "type"
|
||||
from QH_SYS_LOG
|
||||
where log_type = 1 and create_time >= #{dayStart} and create_time < #{dayEnd}
|
||||
group by to_char(create_time, 'yyyy-mm-dd'),to_char(create_time, 'mm-dd')
|
||||
|
||||
+1
-1
@@ -403,7 +403,7 @@
|
||||
where INSTR(',' || #{userIds} || ',', ',' || id || ',') > 0
|
||||
</select>
|
||||
<select id="getUserNumByOrgCodeList" resultType="java.util.HashMap">
|
||||
SELECT org_code as orgCode, count(org_code) as num
|
||||
SELECT org_code as "orgCode", count(org_code) as "num"
|
||||
FROM QH_SYS_USER
|
||||
WHERE org_code LIKE
|
||||
<foreach collection="orgCodeList" item="orgCode" separator=" OR " open="(" close=")">
|
||||
|
||||
Reference in New Issue
Block a user