人口基本信息- 修改Mapper中的Bug

This commit is contained in:
java_cuibaocheng@163.com 2023-11-30 18:09:38 +08:00
parent 1080c90a09
commit cd5cd37685

View File

@ -257,12 +257,12 @@
t1.community_name AS area2_name t1.community_name AS area2_name
FROM FROM
v_community_boss_community t1 v_community_boss_community t1
WHERE
t1.community_boss_user_id = #{creator}
LEFT JOIN LEFT JOIN
v_community_boss t2 v_community_boss t2
ON ON
t1.community_boss_id = t2.community_boss_id t1.community_boss_id = t2.community_boss_id
WHERE
t1.community_boss_user_id = #{creator}
ORDER BY ORDER BY
t2.community_boss_level DESC t2.community_boss_level DESC
LIMIT 1 LIMIT 1
@ -271,8 +271,8 @@
<!-- 取第一条/街道 --> <!-- 取第一条/街道 -->
<select id="getCreatorArea1" parameterType="java.lang.String" resultMap="populationInfoAreaDTO"> <select id="getCreatorArea1" parameterType="java.lang.String" resultMap="populationInfoAreaDTO">
SELECT SELECT
area1_id, area_id AS area1_id,
area1_name area_name AS area1_name
FROM FROM
v_community_boss v_community_boss
WHERE WHERE