whycxzp
2025-05-27 3e6ac0b05ec1ee4456c7402f17677e449a3dcc09
src/main/resources/mapper/BattTestInfMapper.xml
@@ -55,11 +55,12 @@
    </select>
    <select id="getDischargeList" resultType="com.whyc.pojo.db_dis_batt.BattTestInf">
        select
        binf_name as battGroupName,batt_test_inf.binf_id as battGroupId,test_record_count,group_vol,test_curr,max_monvol,min_monvol,test_cap,test_starttime,record_time,test_timelong,test_stoptype
        binf_name as battGroupName,batt_test_inf.binf_id as battGroupId,mon_cap,mon_vol,test_record_count,group_vol,test_curr,max_monvol,min_monvol,test_cap,test_starttime,record_time,test_timelong,test_stoptype
        from db_dis_batt.batt_test_inf,db_batt.power_inf where db_batt.power_inf.binf_id=db_dis_batt.batt_test_inf.binf_id
        and test_starttype=3 and test_type=3
        and (test_stoptype in (3, 4, 6)
        or (test_stoptype=2 and test_timelong>=7200))
        <if test="battGroupId!=null">
            and db_dis_batt.batt_test_inf.binf_id=#{battGroupId}
        </if>
        and test_type=3
        ORDER BY db_dis_batt.batt_test_inf.test_starttime desc
    </select>
</mapper>