fix: 优化过鱼历史数据查询
This commit is contained in:
parent
d4ea1186bc
commit
4ba5a2c05d
@ -353,10 +353,10 @@ public class FishDraftDataServiceImpl extends ServiceImpl<FishDraftDataMapper, F
|
||||
if ("RVCD".equals(orgType)) {
|
||||
hbrvcdSet.add(orgId);
|
||||
|
||||
SdRvcdDic hbrv = rvcdDicMapper.selectById(orgId);
|
||||
if (hbrv != null && hbrv.getRvnm() != null) {
|
||||
hbrvnmSet.add(hbrv.getRvnm());
|
||||
}
|
||||
// SdRvcdDic hbrv = rvcdDicMapper.selectById(orgId);
|
||||
// if (hbrv != null && hbrv.getRvnm() != null) {
|
||||
// hbrvnmSet.add(hbrv.getRvnm());
|
||||
// }
|
||||
|
||||
List<SdEngInfoBH> stationList = engInfoBHMapper.selectByRvcd(null,orgId);
|
||||
if (stationList != null) {
|
||||
@ -367,14 +367,17 @@ public class FishDraftDataServiceImpl extends ServiceImpl<FishDraftDataMapper, F
|
||||
if (station.getEnnm() != null) {
|
||||
ennmSet.add(station.getEnnm());
|
||||
}
|
||||
if(station.getReachcdName() != null){
|
||||
hbrvnmSet.add(station.getReachcdName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else if ("STATION".equals(orgType)) {
|
||||
SdEngInfoBH station = engInfoBHMapper.selectById(orgId);
|
||||
if (station != null) {
|
||||
if (station.getRvcd() != null) {
|
||||
hbrvcdSet.add(station.getRvcd());
|
||||
if (station.getReachcd() != null) {
|
||||
hbrvcdSet.add(station.getReachcd());
|
||||
}
|
||||
if (station.getStcd() != null) {
|
||||
stcdSet.add(station.getStcd());
|
||||
@ -382,11 +385,14 @@ public class FishDraftDataServiceImpl extends ServiceImpl<FishDraftDataMapper, F
|
||||
if (station.getEnnm() != null) {
|
||||
ennmSet.add(station.getEnnm());
|
||||
}
|
||||
|
||||
SdRvcdDic hbrv = rvcdDicMapper.selectById(station.getRvcd());
|
||||
if (hbrv != null && hbrv.getRvnm() != null) {
|
||||
hbrvnmSet.add(hbrv.getRvnm());
|
||||
if(station.getReachcdName() != null){
|
||||
hbrvnmSet.add(station.getReachcdName());
|
||||
}
|
||||
|
||||
// SdRvcdDic hbrv = rvcdDicMapper.selectById(station.getRvcd());
|
||||
// if (hbrv != null && hbrv.getRvnm() != null) {
|
||||
// hbrvnmSet.add(hbrv.getRvnm());
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user