src/main/resources/mapper/BattInfMapper.xml
@@ -502,7 +502,7 @@ order by battgroup_num asc </select> <select id="getScoreByHehavior" resultType="com.whyc.pojo.db_station.BattInf"> select distinct tb_batt_inf.*,#{stic.inuserYear} as inuse_year select distinct tb_batt_inf.*,(TIMESTAMPDIFF(YEAR, tb_batt_inf.inuse_time,CURDATE())+1) as batt_year,#{stic.inuseYear} as inuse_year from db_station.tb_batt_inf <where> <if test="stic.product!=null">