src/main/resources/mapper/BattInfMapper.xml
@@ -183,8 +183,9 @@ </where> </select> <select id="getMonStatistic" resultType="com.whyc.pojo.db_station.BattInf"> select distinct tb_batt_inf.* from db_station.tb_batt_inf select distinct tb_batt_inf.*,tb_station_inf.station_name from db_station.tb_batt_inf,db_station.tb_station_inf <where> tb_batt_inf.station_id=tb_station_inf.station_id <if test="stic.product!=null"> and tb_batt_inf.product=#{stic.product} </if>