src/main/resources/mapper/PowerInfMapper.xml
@@ -111,5 +111,15 @@ order by tb_power_inf.power_id asc </where> </select> <select id="getGroupName" resultType="java.lang.String"> select distinct ifnull(baoji_group_name,'none') from db_user.tb_baojigroup,db_user.tb_baojigroup_power <where> tb_baojigroup.baoji_group_id=tb_baojigroup_power.baoji_group_id and tb_baojigroup.team_flag=1 <if test="powerId!=null"> and power_id=#{powerId} </if> </where> </select> </mapper>