diff --git a/xhpc-modules/xhpc-charging-station/src/main/resources/mapper/XhpcChargingStationMapper.xml b/xhpc-modules/xhpc-charging-station/src/main/resources/mapper/XhpcChargingStationMapper.xml index 53cdc63e..abea1e60 100644 --- a/xhpc-modules/xhpc-charging-station/src/main/resources/mapper/XhpcChargingStationMapper.xml +++ b/xhpc-modules/xhpc-charging-station/src/main/resources/mapper/XhpcChargingStationMapper.xml @@ -235,11 +235,16 @@ ct.business_instructions as businessInstructions, ct.reminder_instructions as reminderInstructions, ct.client_visible as clientVisible, - ct.img_id as imgId + ct.img_id as imgId, + GROUP_CONCAT(DISTINCT xdbs.dict_value ORDER BY xdbs.create_time ASC separator ',' ) serviceFacilitiesName, + GROUP_CONCAT(DISTINCT xdbp.dict_value ORDER BY xdbp.create_time ASC separator ',' ) peripheryFacilitiesName from xhpc_charging_station as ct left join xhpc_operator as op on op.operator_id = ct.operator_id + left join xhpc_dict_biz xdbs on xdbs.code = 'service_facilities' and FIND_IN_SET(xdbs.dict_key,ct.service_facilities) + left join xhpc_dict_biz xdbp on xdbp.code = 'charging_periphery_facilities' and FIND_IN_SET(xdbp.dict_key,ct.periphery_facilities) where ct.charging_station_id = #{chargingStationId} and ct.del_flag = 0 + group by ct.charging_station_id