Commit fbe6a474 authored by wujiang's avatar wujiang

修改逆变器电流查询

parent 26d8aa51
......@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.module.hygf.api.dto.JpInverterElectricityDto;
import org.typroject.tyboot.core.foundation.utils.Bean;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
......@@ -24,6 +25,13 @@ import java.util.List;
public class JpInverterElectricityServiceImpl
extends BaseService<JpInverterElectricityDto, JpInverterElectricity, JpInverterElectricityMapper>
implements IJpInverterElectricityService {
@Autowired
private JpStationServiceImpl jpStationServiceImpl;
@Autowired
private JpInverterServiceImpl JpInverterServiceImpl;
/**
* 分页查询
*/
......@@ -35,8 +43,10 @@ public class JpInverterElectricityServiceImpl
* 列表查询 示例
*/
public List<JpInverterElectricityDto> queryForJpInverterElectricityList(String id) {
JpInverter jpInverter = JpInverterServiceImpl.getById(id);
LambdaQueryWrapper<JpInverterElectricity> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(JpInverterElectricity::getInverterId, id);
wrapper.eq(JpInverterElectricity::getSnCode, jpInverter.getSnCode());
wrapper.eq(JpInverterElectricity::getThirdStationId, jpInverter.getThirdStationId());
List<JpInverterElectricity> list = this.list(wrapper);
return Bean.toModels(list, this.getModelClass());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment