| | |
| | | ) |
| | | |
| | | </select> |
| | | <select id="getHrDisCount" resultType="java.lang.Integer"> |
| | | select distinct battgroup_id from db_batt_testdata.tb_batttestdata_inf |
| | | where test_type=3 |
| | | and test_starttype=3 and test_timelong >=7200 |
| | | <if test="startTime!=null"> |
| | | and test_starttime >= #{startTime} |
| | | </if> |
| | | <if test="endTime!=null"> |
| | | and test_starttime <= #{endTime} |
| | | </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> |
| | | </mapper> |