| | |
| | | <select id="getNoDischargeData" resultType="com.whyc.pojo.db_batt_testdata.BatttestdataInf"> |
| | | select * from db_batt_testdata.tb_batttestdata_inf |
| | | <where> |
| | | battgroup_id=#{battgroupId} and test_type=3 |
| | | and (test_starttype!=3 or test_timelong <7200) |
| | | battgroup_id=#{battgroupId} |
| | | and test_type=3 |
| | | and data_available!=1 |
| | | <if test="testStartTime!=null"> |
| | | and tb_batttestdata_inf.test_starttime>=#{stic.testStartTime} |
| | | </if> |
| | | <if test="testEndTime!=null"> |
| | | and tb_batttestdata_inf.test_starttime<=#{stic.testEndTime} |
| | | </if> |
| | | <if test="typeList!=null"> |
| | | <!--<if test="typeList!=null"> |
| | | and test_stoptype in |
| | | <foreach item="item" index="index" collection="typeList" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </if>--> |
| | | </where> |
| | | order by test_starttime desc |
| | | </select> |