mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
新增 后管站点下拉列表查询方法
This commit is contained in:
@@ -448,4 +448,26 @@
|
||||
where
|
||||
id = #{stationId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<select id="getStationSelectList" resultType="com.jsowell.pile.vo.web.PileStationVO">
|
||||
select
|
||||
t1.id,
|
||||
t1.station_name as stationName
|
||||
from pile_station_info t1
|
||||
left join pile_merchant_info t2 on t2.id = t1.merchant_id and t2.del_flag = '0'
|
||||
where t1.del_flag = '0'
|
||||
<!-- 数据范围过滤 -->
|
||||
<if test="dto.merchantDeptIds != null and dto.merchantDeptIds.size() != 0">
|
||||
and t2.dept_id in
|
||||
<foreach collection="dto.merchantDeptIds" item="merchantDeptId" open="(" separator="," close=")">
|
||||
#{merchantDeptId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="dto.stationDeptIds != null and dto.stationDeptIds.size() != 0">
|
||||
and t1.dept_id in
|
||||
<foreach collection="dto.stationDeptIds" item="stationDeptId" open="(" separator="," close=")">
|
||||
#{stationDeptId}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user