| | |
| | | import com.whyc.mapper.CKPowerDevBattRtStateMapper; |
| | | import com.whyc.pojo.db_ckpwrdev_data_rt.CKPowerDevBattRtData; |
| | | import com.whyc.pojo.db_ckpwrdev_data_rt.CKPowerDevBattRtState; |
| | | import com.whyc.pojo.db_ckpwrdev_inf.CKPwrDevInf; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | @Resource |
| | | private CKPowerDevBattRtDataMapper mapper; |
| | | |
| | | @Autowired |
| | | private CKPwrDevInfService ckPwrDevInfService; |
| | | |
| | | public List<CKPowerDevBattRtData> getList() { |
| | | //查询有单体数量 |
| | | CKPwrDevInf ckPwrDevInf = ckPwrDevInfService.get(); |
| | | |
| | | QueryWrapper<CKPowerDevBattRtData> query = Wrappers.query(); |
| | | query.eq("batt_index",0); |
| | | query.le("mon_num",ckPwrDevInf.getBattMonCount()); |
| | | return mapper.selectList(query); |
| | | } |
| | | } |