package com.whyc.service;
|
|
import com.whyc.dto.BattMaintDealarm;
|
import com.whyc.dto.Response;
|
import com.whyc.mapper.BattInfMapper;
|
import com.whyc.mapper.BattMaintDealarmMapper;
|
import com.whyc.pojo.Battinf;
|
import com.whyc.pojo.BatttestdataInf;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
@Service
|
public class BattMaintDealarmService {
|
@Resource
|
private BattMaintDealarmMapper mapper;
|
@Resource
|
private BattInfMapper battInfMapper;
|
|
public Response searchLow(BattMaintDealarm bmd, int userId){
|
BatttestdataInf tinf = new BatttestdataInf();
|
List<Battinf> battinfList = battInfMapper.searchByTestType(tinf, userId);
|
BatttestdataInf tdata = bmd.getBtestinf();
|
if (battinfList!=null && battinfList.size()>0){
|
for (Battinf binf:battinfList) {
|
|
}
|
}
|
|
return null;
|
}
|
}
|