fix(sql):health-emergency和health-watch模块
部分sql别名双引号回退
This commit is contained in:
+7
-7
@@ -4,8 +4,8 @@
|
||||
<select id="officerOnDutyJoinSessionInfoByOP"
|
||||
resultType="com.renkang.emergency.bean.response.EmergencyUser">
|
||||
select
|
||||
operation_user_id AS "userId",
|
||||
count(*) AS "num"
|
||||
operation_user_id AS userId,
|
||||
count(*) AS num
|
||||
FROM
|
||||
QH_EME_ORDER
|
||||
WHERE operation_user_id is not null
|
||||
@@ -19,8 +19,8 @@
|
||||
<select id="officerOnDutyJoinSessionInfoByMajor"
|
||||
resultType="com.renkang.emergency.bean.response.EmergencyUser">
|
||||
select
|
||||
major_user_id AS "userId",
|
||||
count(*) AS "num"
|
||||
major_user_id AS userId,
|
||||
count(*) AS num
|
||||
FROM
|
||||
QH_EME_ORDER
|
||||
WHERE major_user_id is not null
|
||||
@@ -31,7 +31,7 @@
|
||||
major_user_id
|
||||
</select>
|
||||
<select id="selectHelpCentor" resultType="com.renkang.emergency.entity.TblHelpCentorVo">
|
||||
SELECT Initiator_type AS "type", COUNT(*) AS "count"
|
||||
SELECT Initiator_type AS type, COUNT(*) AS count
|
||||
FROM QH_EME_ORDER
|
||||
<where>
|
||||
<if test="sex != null and sex != '' and sex != '0'">
|
||||
@@ -46,8 +46,8 @@
|
||||
</select>
|
||||
|
||||
<select id="emergencyNum" resultType="com.renkang.emergency.archives.model.vo.EmergencyNum">
|
||||
SELECT center_id AS "id",
|
||||
count(*) AS "num"
|
||||
SELECT center_id AS id,
|
||||
count(*) AS num
|
||||
FROM QH_EME_ORDER
|
||||
<where>
|
||||
and del_flag = 0
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<mapper namespace="com.renkang.emergency.mapper.TblBaseHospitalMapper">
|
||||
|
||||
<select id="getHospitalList" resultType="com.renkang.emergency.entity.TblBaseHospitalVo">
|
||||
SELECT id,name,latitude AS "lat" ,longitude AS "lon",type
|
||||
SELECT id,name,latitude AS lat ,longitude AS lon,type
|
||||
FROM QH_EME_RESOURCE
|
||||
WHERE 1 = 1 and del_flag = 0
|
||||
<if test="type != null and type.length() > 0">
|
||||
@@ -16,7 +16,7 @@
|
||||
</select>
|
||||
|
||||
<select id="getHospitalListNew" resultType="com.renkang.emergency.entity.TblBaseHospitalVo">
|
||||
SELECT id,name,latitude AS "lat" ,longitude AS "lon",type
|
||||
SELECT id,name,latitude AS lat ,longitude AS lon,type
|
||||
FROM QH_EME_RESOURCE
|
||||
WHERE 1 = 1 and del_flag = 0 and type != 3
|
||||
<if test="type != null and type != ''">
|
||||
|
||||
Reference in New Issue
Block a user