修改区域从regionId获取到synDingDeptId

This commit is contained in:
guohb
2024-05-27 17:26:49 +08:00
parent 18dabff82b
commit ec5859c8d7
3 changed files with 9 additions and 1 deletions

View File

@@ -107,4 +107,5 @@ public interface RegionMapper {
List<RegionDO> getFightRegionByRegionIds(@Param("regionIds") List<String> regionIds);
RegionDO getRegionInfoBySynDingDeptId(@Param("synDingDeptId") Long synDingDeptId);
}

View File

@@ -399,6 +399,12 @@
</if>
</select>
<select id="getRegionInfoBySynDingDeptId" resultType="com.cool.store.entity.RegionDO">
select <include refid="fields"/>
from region_${enterpriseId}
where deleted = 0
and syn_ding_dept_id = #{synDingDeptId}
</select>
</mapper>