|
@@ -3,9 +3,11 @@ package com.xlht.xlhtproject.service.impl;
|
|
|
|
|
|
import com.xlht.xlhtproject.domain.SmartAdd;
|
|
|
import com.xlht.xlhtproject.domain.TTbDu;
|
|
|
+import com.xlht.xlhtproject.domain.TTbXie;
|
|
|
import com.xlht.xlhtproject.domain.TXlhtMedicineParam;
|
|
|
import com.xlht.xlhtproject.mapper.TShuju1Mapper;
|
|
|
import com.xlht.xlhtproject.mapper.TTbDuMapper;
|
|
|
+import com.xlht.xlhtproject.mapper.TTbXieMapper;
|
|
|
import com.xlht.xlhtproject.mapper.TXlhtMedicineParamMapper;
|
|
|
import com.xlht.xlhtproject.service.ITXlhtMedicineParamService;
|
|
|
import com.xlht.xlhtproject.utils.CalculateUtils;
|
|
@@ -43,6 +45,9 @@ public class TXlhtMedicineParamServiceImpl implements ITXlhtMedicineParamService
|
|
|
@Autowired
|
|
|
private TTbDuMapper tTbDuMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TTbXieMapper tTbXieMapper;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 查询智能投药参数设置
|
|
@@ -285,10 +290,17 @@ public class TXlhtMedicineParamServiceImpl implements ITXlhtMedicineParamService
|
|
|
}
|
|
|
latestRecord.setMedicineAmountTwo(val2);
|
|
|
//获取2个池子的瞬时投药流量
|
|
|
- TTbDu tTbDu = tTbDuMapper.selectTTbDuByID(LONG_1);
|
|
|
+ /*TTbDu tTbDu = tTbDuMapper.selectTTbDuByID(LONG_1);
|
|
|
if(!Objects.isNull(tTbDu)){
|
|
|
latestRecord.setTytjTransientLLOne(tTbDu.getC1TjLl());
|
|
|
latestRecord.setTytjTransientLLTwo(tTbDu.getC2TjLl());
|
|
|
+ }*/
|
|
|
+ TTbXie tTbXie = this.tTbXieMapper.selectTTbXieByID(LONG_1);
|
|
|
+ if(!Objects.isNull(tTbXie)){
|
|
|
+ latestRecord.setTytjTransientLLOne(tTbXie.getOneJYL());
|
|
|
+ latestRecord.setTytjTransientLLTwo(tTbXie.getTwoJYL());
|
|
|
+ latestRecord.setOneRemoteStatus(tTbXie.getOneRemoteStatus());
|
|
|
+ latestRecord.setTwoRemoteStatus(tTbXie.getTwoRemoteStatus());
|
|
|
}
|
|
|
|
|
|
}
|