feat: 增加任务的区县和镇街信息

This commit is contained in:
moonlight557
2025-10-13 17:24:49 +08:00
parent ec7d0e09df
commit 3a4aa12619
5 changed files with 32 additions and 3 deletions

View File

@@ -79,4 +79,18 @@
WHERE "${column}" = #{parentId}
</select>
<!-- 查找schema对应区县名 -->
<select id="getDistrictNameBySchema" resultType="string">
SELECT district
FROM public.unit_info
WHERE schema_code = #{schema}
</select>
<!-- 查找schema对应镇街名 -->
<select id="getVillageNameBySchema" resultType="string">
SELECT village
FROM public.unit_info
WHERE schema_code = #{schema}
</select>
</mapper>