fix(emergency,watch): 更新数据库表名前缀为标准化命名
更新health-emergency和health-watch模块中的所有实体类和XML映射文件以及mapper文件注解sql, 将数据库表名从原有命名格式统一更改为带项目前缀的标准化格式, 如QH_EME开头用于应急健康模块,QH_WAT开头用于健康监测模块
This commit is contained in:
+6
-6
@@ -31,8 +31,8 @@
|
||||
aem.latitude AS latitude
|
||||
|
||||
FROM
|
||||
aed_equipment_maintain aem1
|
||||
INNER JOIN aed_equipment_manger aem ON aem.id = aem1.equipment_id AND aem.del_flag =0
|
||||
QH_EME_AED_EQUIP_MAINTAIN aem1
|
||||
INNER JOIN QH_EME_AED_EQUIP_MANGER aem ON aem.id = aem1.equipment_id AND aem.del_flag =0
|
||||
<where>
|
||||
and aem1.del_flag=0
|
||||
<if test="name !=null and name !=''">
|
||||
@@ -70,8 +70,8 @@
|
||||
aem1.maintain_unit AS maintainUnit,
|
||||
aem.longitude AS longitude,
|
||||
aem.latitude AS latitude
|
||||
from aed_equipment_maintain aem1
|
||||
LEFT join aed_equipment_manger aem on aem.id = aem1.equipment_id and aem.del_flag = 0
|
||||
from QH_EME_AED_EQUIP_MAINTAIN aem1
|
||||
LEFT join QH_EME_AED_EQUIP_MANGER aem on aem.id = aem1.equipment_id and aem.del_flag = 0
|
||||
where aem1.id = #{id}
|
||||
</select>
|
||||
|
||||
@@ -89,8 +89,8 @@
|
||||
t2.manage_user_name,
|
||||
t2.manage_user_mobile
|
||||
FROM
|
||||
"aed_equipment_maintain" t1
|
||||
LEFT JOIN aed_equipment_manger t2 ON t1.equipment_id = t2.id
|
||||
"QH_EME_AED_EQUIP_MAINTAIN" t1
|
||||
LEFT JOIN QH_EME_AED_EQUIP_MANGER t2 ON t1.equipment_id = t2.id
|
||||
<where>
|
||||
<if test="name !=null and name !=''">
|
||||
and t2.name like concat('%',#{name},'%')
|
||||
|
||||
+3
-3
@@ -39,7 +39,7 @@
|
||||
camera_num as cameraNum,
|
||||
camera_code as cameraCode
|
||||
from
|
||||
aed_equipment_manger
|
||||
QH_EME_AED_EQUIP_MANGER
|
||||
<where>
|
||||
del_flag=0
|
||||
<if test="name !=null and name !=''">
|
||||
@@ -95,7 +95,7 @@
|
||||
camera_num as cameraNum,
|
||||
camera_code as cameraCode
|
||||
from
|
||||
aed_equipment_manger
|
||||
QH_EME_AED_EQUIP_MANGER
|
||||
<where>
|
||||
del_flag=0
|
||||
and publish_flag=1
|
||||
@@ -124,7 +124,7 @@
|
||||
</select>
|
||||
<select id="getLocation" resultType="com.renkang.emergency.aed.entity.AedLocationEquipment" parameterType="java.util.List">
|
||||
SELECT *
|
||||
FROM aed_location_equipment
|
||||
FROM QH_EME_AED_LOC_EQUIP
|
||||
WHERE equipment_id IN
|
||||
<foreach collection="idList" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
|
||||
+4
-4
@@ -28,8 +28,8 @@
|
||||
aer.site_profile AS siteProfile,
|
||||
aer.effect AS effect
|
||||
FROM
|
||||
aed_equipment_train aer
|
||||
LEFT JOIN aed_equipment_manger aem ON aem.id = aer.equipment_id and aem.del_flag=0
|
||||
QH_EME_AED_EQUIP_TRAIN aer
|
||||
LEFT JOIN QH_EME_AED_EQUIP_MANGER aem ON aem.id = aer.equipment_id and aem.del_flag=0
|
||||
<where>
|
||||
and aer.del_flag=0
|
||||
and aer.flag=#{flag}
|
||||
@@ -56,8 +56,8 @@
|
||||
t2.install_address,
|
||||
t2.status
|
||||
FROM
|
||||
"aed_equipment_train" t1
|
||||
LEFT JOIN aed_equipment_manger t2 ON t1.equipment_id = t2.id
|
||||
"QH_EME_AED_EQUIP_TRAIN" t1
|
||||
LEFT JOIN QH_EME_AED_EQUIP_MANGER t2 ON t1.equipment_id = t2.id
|
||||
<where>
|
||||
and t1.flag = #{trainType}
|
||||
<if test="name !=null and name !=''">
|
||||
|
||||
+2
-2
@@ -26,8 +26,8 @@
|
||||
aur.fail_rate as failRate,
|
||||
aur.use_result as useResult
|
||||
from
|
||||
aed_use_record aur
|
||||
left join aed_equipment_manger aem on aem.id = aur.equipment_id
|
||||
QH_EME_AED_USE_RECORD aur
|
||||
left join QH_EME_AED_EQUIP_MANGER aem on aem.id = aur.equipment_id
|
||||
<where>
|
||||
and aur.del_flag=0
|
||||
<if test="name !=null and name !=''">
|
||||
|
||||
Reference in New Issue
Block a user