feat(consultation,emergency): 修复达梦数据库字段别名及资源等级查询问题
- ConResourceMapper.xml 查询中新增 RESOURCE_LEVEL 字段别名映射,解决达梦数据库大写字段名导致的 level 字段无法正确返回问题 - AedEquipmentMangerServiceImpl 相关逻辑优化
This commit is contained in:
+3
-3
@@ -8,7 +8,7 @@
|
||||
</update>
|
||||
|
||||
<select id="queryPageList" resultType="com.renkang.consultation.entity.ConResource">
|
||||
SELECT cr.* FROM qh_con_resource cr
|
||||
SELECT cr.*,cr.RESOURCE_LEVEL "level" FROM qh_con_resource cr
|
||||
<where>
|
||||
cr.del_flag = 0
|
||||
<if test="conResource.resourceName != null and conResource.resourceName != ''">
|
||||
@@ -21,7 +21,7 @@
|
||||
AND cr.address LIKE CONCAT('%', #{conResource.province}, '%')
|
||||
</if>
|
||||
<if test="conResource.level != null and conResource.level != ''">
|
||||
AND cr."LEVEL" = #{conResource.level}
|
||||
AND cr.RESOURCE_LEVEL = #{conResource.level}
|
||||
</if>
|
||||
<if test="conResource.status != null and conResource.status != ''">
|
||||
AND cr.status = #{conResource.status}
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
<select id="selectBatchIds" resultType="com.renkang.consultation.entity.ConResource">
|
||||
SELECT id, resource_name, longitude, latitude, "TYPE", second_type, aidrange, gd_id, url, province, city, area,
|
||||
address, "LEVEL", img, synopsis, sort, "STATUS", del_flag, create_by, create_time, update_by, update_time, memo,
|
||||
address, RESOURCE_LEVEL, img, synopsis, sort, "STATUS", del_flag, create_by, create_time, update_by, update_time, memo,
|
||||
key_departments, user_score, user_score_num, resource_detail, tf_top
|
||||
FROM qh_con_resource
|
||||
WHERE id IN
|
||||
|
||||
Reference in New Issue
Block a user