| | |
| | | and gb.power_id = p.power_id |
| | | and g.team_flag = 1 |
| | | </select> |
| | | <select id="getListByUserId" resultType="com.whyc.pojo.db_user.BaojigroupPower"> |
| | | SELECT distinct gb.baoji_group_id,gb.station_id,g.baoji_group_name as baoJiGroupName,b.station_name |
| | | FROM db_user.tb_baojigroup g,db_user.tb_baojigroup_power gb,db_station.tb_station_inf b |
| | | where g.baoji_group_id = gb.baoji_group_id 0 |
| | | and gb.station_id = b.station_id |
| | | and g.team_flag = 1 |
| | | and gb.station_id in ( |
| | | select distinct station_id from db_user.tb_baojigroup_usr bu,db_user.tb_baojigroup_power bp |
| | | where bu.baoji_group_id = bp.baoji_group_id |
| | | and bu.uid = #{userId} |
| | | ) |
| | | order by g.baoji_group_name |
| | | </select> |
| | | </mapper> |