实体类部分参数未使用驼峰命名修改
查询折线图接口调用方法名称修改
This commit is contained in:
parent
4250ff26fe
commit
917a76da41
|
@ -41,7 +41,7 @@ public class PHDFileUtil {
|
|||
//Collection Stop
|
||||
Date CollectionStop = DateUtils.parseDate(struct.collection_stop_date.replace(StringPool.SLASH,StringPool.DASH) + StringPool.SPACE + struct.collection_stop_time.substring(0, struct.collection_stop_time.indexOf(StringPool.DOT)), "yyyy-MM-dd HH:mm:ss");
|
||||
//Collection Time
|
||||
String CollectionTime = String.format ("%.2f",Double.valueOf(CollectionStop.getTime() - CollectionStart.getTime()/ 1000));
|
||||
String CollectionTime = String.format ("%.2f",Double.valueOf(CollectionStop.getTime()/1000 - CollectionStart.getTime()/ 1000));
|
||||
//Acquisition Start
|
||||
Date AcquisitionStart = DateUtils.parseDate(struct.acquisition_start_date.replace(StringPool.SLASH,StringPool.DASH) + StringPool.SPACE + struct.acquisition_start_time.substring(0, struct.acquisition_start_time.indexOf(StringPool.DOT)), "yyyy-MM-dd HH:mm:ss");
|
||||
//Acq Real Time
|
||||
|
|
|
@ -32,7 +32,7 @@ public class GammaController {
|
|||
@GetMapping("gammaByFile")
|
||||
public Result gammaByFile(@RequestParam Integer sampleId,
|
||||
@RequestParam String dbName){
|
||||
return spectrumAnalysisService.getDBSpectrumPie(dbName, sampleId);
|
||||
return spectrumAnalysisService.getDBSpectrumChart(dbName, sampleId);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public class SpectrumAnalysesController {
|
|||
@GetMapping("getDBSpectrumChart")
|
||||
@ApiOperation(value = "查询折线图相关信息接口", notes = "查询折线图相关信息接口")
|
||||
public Result getDBSpectrumPie(String dbName, Integer sampleId){
|
||||
return spectrumAnalysisService.getDBSpectrumPie(dbName, sampleId);
|
||||
return spectrumAnalysisService.getDBSpectrumChart(dbName, sampleId);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -18,24 +18,24 @@ public class SpectrumData implements Serializable {
|
|||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date CollectionStart;
|
||||
private Date collectionStart;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date CollectionStop;
|
||||
private Date collectionStop;
|
||||
|
||||
private String CollectionTime;
|
||||
private String collectionTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date AcquisitionStart;
|
||||
private Date acquisitionStart;
|
||||
|
||||
private double AcquisitionRealTime;
|
||||
private double acquisitionRealTime;
|
||||
|
||||
private double AcquisitionLiveTime;
|
||||
private double acquisitionLiveTime;
|
||||
|
||||
private double AirVolume;
|
||||
private double airVolume;
|
||||
|
||||
private double XeVolume;
|
||||
private double xeVolume;
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@ public interface ISpectrumAnalysisService {
|
|||
|
||||
Result getDBSpectrumList(QueryRequest queryRequest, GardsSampleData gardsSampleData, String dbName, String[] menuTypes, boolean CollectStop, boolean AcqStart, Date startDate, Date endDate);
|
||||
|
||||
Result getDBSpectrumPie(String dbName, Integer sampleId);
|
||||
Result getDBSpectrumChart(String dbName, Integer sampleId);
|
||||
|
||||
}
|
||||
|
|
|
@ -134,7 +134,7 @@ public class SpectrumAnalysisServiceImpl implements ISpectrumAnalysisService {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Result getDBSpectrumPie(String dbName, Integer sampleId) {
|
||||
public Result getDBSpectrumChart(String dbName, Integer sampleId) {
|
||||
Result result = new Result();
|
||||
Map<String, Map<String, Object>> resultMap = new HashMap<>();
|
||||
if (redisUtil.hasKey("Spectrum_"+sampleId)){
|
||||
|
|
Loading…
Reference in New Issue
Block a user