Compare commits
No commits in common. "56bd405d8d08754a925bf8b96d5a85f801699437" and "2d96fbe7d02cb8b75dce51a679606db9e6784633" have entirely different histories.
56bd405d8d
...
2d96fbe7d0
|
@ -36,6 +36,4 @@ public class EmailDto implements Serializable {
|
||||||
private String username; // 邮箱用户名
|
private String username; // 邮箱用户名
|
||||||
|
|
||||||
private Integer isQiye; // 是否企业邮箱
|
private Integer isQiye; // 是否企业邮箱
|
||||||
|
|
||||||
private Integer emailServerType;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
e.is_qiye,
|
e.is_qiye,
|
||||||
e.enabled,
|
e.enabled,
|
||||||
e.email_server_address,
|
e.email_server_address,
|
||||||
e.email_server_type,
|
|
||||||
COUNT (l.id) AS alarms
|
COUNT (l.id) AS alarms
|
||||||
FROM
|
FROM
|
||||||
sys_email e
|
sys_email e
|
||||||
|
|
|
@ -9,7 +9,6 @@ import org.jeecg.common.util.DateUtils;
|
||||||
import org.jeecg.common.util.NumberFormatUtil;
|
import org.jeecg.common.util.NumberFormatUtil;
|
||||||
import org.jeecg.modules.base.entity.configuration.GardsStations;
|
import org.jeecg.modules.base.entity.configuration.GardsStations;
|
||||||
import org.jeecg.modules.base.entity.original.GardsMetData;
|
import org.jeecg.modules.base.entity.original.GardsMetData;
|
||||||
import org.jeecg.modules.base.entity.original.GardsSohData;
|
|
||||||
import org.jeecg.modules.file.FileOperation;
|
import org.jeecg.modules.file.FileOperation;
|
||||||
import org.jeecg.modules.mapper.GardsMetDataMapper;
|
import org.jeecg.modules.mapper.GardsMetDataMapper;
|
||||||
import org.jeecg.modules.mapper.GardsStationsMapper;
|
import org.jeecg.modules.mapper.GardsStationsMapper;
|
||||||
|
@ -23,7 +22,6 @@ import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 处理气象谱
|
* 处理气象谱
|
||||||
|
@ -38,7 +36,6 @@ public class MetSpectrumServiceImpl extends ServiceImpl<GardsMetDataMapper, Gard
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存气象谱数据
|
* 保存气象谱数据
|
||||||
*
|
|
||||||
* @param struct
|
* @param struct
|
||||||
* @param fileName
|
* @param fileName
|
||||||
* @return
|
* @return
|
||||||
|
@ -53,13 +50,6 @@ public class MetSpectrumServiceImpl extends ServiceImpl<GardsMetDataMapper, Gard
|
||||||
final GardsStations station = stationsService.check(struct.station_code,fileName);
|
final GardsStations station = stationsService.check(struct.station_code,fileName);
|
||||||
List<GardsMetData> list = Lists.newArrayList();
|
List<GardsMetData> list = Lists.newArrayList();
|
||||||
if(struct.record_count > 0){
|
if(struct.record_count > 0){
|
||||||
String finalFileName = FileOperation.separatorConvert(fileName);
|
|
||||||
LambdaQueryWrapper<GardsMetData> queryWrapper = new LambdaQueryWrapper<>();
|
|
||||||
queryWrapper.select(GardsMetData::getMetId);
|
|
||||||
queryWrapper.eq(GardsMetData::getInputFileName, finalFileName);
|
|
||||||
GardsMetData metDataOne= this.getOne(queryWrapper,false);
|
|
||||||
if (Objects.isNull(metDataOne)) {
|
|
||||||
|
|
||||||
for(int i=0;i<struct.record_count;i++){
|
for(int i=0;i<struct.record_count;i++){
|
||||||
GardsMetData metData = new GardsMetData();
|
GardsMetData metData = new GardsMetData();
|
||||||
metData.setStationId(station.getStationId());
|
metData.setStationId(station.getStationId());
|
||||||
|
@ -81,8 +71,6 @@ public class MetSpectrumServiceImpl extends ServiceImpl<GardsMetDataMapper, Gard
|
||||||
this.save(metData);
|
this.save(metData);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.val;
|
|
||||||
import org.apache.commons.compress.utils.Lists;
|
import org.apache.commons.compress.utils.Lists;
|
||||||
import org.jeecg.common.util.DateUtils;
|
import org.jeecg.common.util.DateUtils;
|
||||||
import org.jeecg.common.util.NumberFormatUtil;
|
import org.jeecg.common.util.NumberFormatUtil;
|
||||||
|
@ -23,7 +22,6 @@ import org.springframework.util.Assert;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 健康谱数据处理
|
* 健康谱数据处理
|
||||||
|
@ -57,11 +55,6 @@ public class SOHSpectrumServiceImpl extends ServiceImpl<GardsSohDataMapper, Gard
|
||||||
|
|
||||||
List<GardsSohData> list = Lists.newArrayList();
|
List<GardsSohData> list = Lists.newArrayList();
|
||||||
if(struct.af_record_count > 0){
|
if(struct.af_record_count > 0){
|
||||||
String finalFileName = FileOperation.separatorConvert(fileName);
|
|
||||||
LambdaQueryWrapper<GardsSohData> queryWrapper = new LambdaQueryWrapper<>();
|
|
||||||
queryWrapper.eq(GardsSohData::getInputFileName,finalFileName);
|
|
||||||
GardsSohData sohDataOne= this.getOne(queryWrapper,false);
|
|
||||||
if(Objects.isNull(sohDataOne)){
|
|
||||||
for(int i=0;i<struct.af_record_count;i++){
|
for(int i=0;i<struct.af_record_count;i++){
|
||||||
GardsSohData sohData = new GardsSohData();
|
GardsSohData sohData = new GardsSohData();
|
||||||
sohData.setStationId(station.getStationId());
|
sohData.setStationId(station.getStationId());
|
||||||
|
@ -81,7 +74,6 @@ public class SOHSpectrumServiceImpl extends ServiceImpl<GardsSohDataMapper, Gard
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user