| | |
| | | |
| | | |
| | | <select id="findByMonNum" resultType="com.whyc.pojo.BattTestDataStop"> |
| | | select stop.battgroupid,stop.test_curr,stop.test_cap,stop.mon_vol,stop.test_record_count,stop.mon_num,inf.max_monvol |
| | | select stop.battgroupid,stop.test_curr,stop.test_cap,stop.mon_vol,stop.test_record_count,stop.mon_num,stop.group_vol,inf.max_monvol |
| | | from db_batt_testdata.tb_batttestdatastop_${battGroupId} stop,db_batt_testdata.tb_batttestdata_inf inf |
| | | where stop.battGroupId = inf.battGroupId and stop.test_starttime = inf.test_starttime and stop.mon_num = #{monNum} |
| | | and stop.data_available=1 and inf.test_type=3 |
| | | order by stop.test_starttime desc limit 1 |
| | | </select> |
| | | <select id="getRealCap" resultType="java.lang.Float"> |
| | | <select id="getRealCap" resultType="java.lang.Float" parameterType="com.whyc.pojo.BattTestDataStop"> |
| | | select test_cap from db_batt_testdata.tb_batttestdata_${stop.battGroupId} |
| | | where test_record_count=? and mon_vol>? and mon_num=? and data_available=1 |
| | | where test_record_count=#{stop.testRecordCount} and mon_vol>#{stop.monVol} and mon_num=#{stop.monNum} and data_available=1 |
| | | order by record_time desc limit 1 |
| | | |
| | | </select> |