| | |
| | | and bu.uid = #{userId} |
| | | ) |
| | | </select> |
| | | <select id="getListByCondition" resultType="com.whyc.pojo.db_station.BattInf"> |
| | | select * from db_station.tb_batt_inf where |
| | | <if test="product!=null"> |
| | | and product=#{product} |
| | | </if> |
| | | <if test="inuseTime!=null"> |
| | | and inuse_time >= #{inuseTime} |
| | | </if> |
| | | and battgroup_id in( |
| | | select distinct battgroup_id from db_user.tb_baojigroup_usr bu,db_user.tb_baojigroup_power bp,db_station.tb_batt_inf bi |
| | | where bu.baoji_group_id = bp.baoji_group_id |
| | | and bp.station_id = bi.station_id |
| | | and bu.uid = #{userId} |
| | | </select> |
| | | |
| | | <select id="getBattByUid" resultType="com.whyc.pojo.db_station.BattInf"> |
| | | select distinct * from db_station.tb_batt_inf,db_station.tb_station_inf |