还原代码
This commit is contained in:
parent
0d3bb44fe1
commit
ee8a057881
|
|
@ -47,6 +47,8 @@ public class GardsNuclearfacility implements Serializable {
|
||||||
@TableField(value = "LONGITUDE")
|
@TableField(value = "LONGITUDE")
|
||||||
private String longitude;
|
private String longitude;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Double lonValue;
|
||||||
/**
|
/**
|
||||||
* 纬度
|
* 纬度
|
||||||
*/
|
*/
|
||||||
|
|
@ -54,7 +56,8 @@ public class GardsNuclearfacility implements Serializable {
|
||||||
@TableField(value = "LATITUDE")
|
@TableField(value = "LATITUDE")
|
||||||
private String latitude;
|
private String latitude;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Double latValue;
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,11 @@ public class DataAnalysisController {
|
||||||
|
|
||||||
@GetMapping("/getNuclideActConcChartData")
|
@GetMapping("/getNuclideActConcChartData")
|
||||||
@ApiOperation(value = "样品统计分析-核素等级时序分析", notes = "样品统计分析-核素等级时序分析")
|
@ApiOperation(value = "样品统计分析-核素等级时序分析", notes = "样品统计分析-核素等级时序分析")
|
||||||
public Result getNuclideActConcChartData(String sampleType,String station, String nuclideName, Integer dataSource, @RequestParam("startDate")
|
public Result getNuclideActConcChartData(@RequestParam("sampleType")String sampleType,
|
||||||
|
@RequestParam("station") String station,
|
||||||
|
@RequestParam("nuclideName") String nuclideName,
|
||||||
|
@RequestParam("dataSource") Integer dataSource,
|
||||||
|
@RequestParam("startDate")
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd") Date startDate,
|
@DateTimeFormat(pattern = "yyyy-MM-dd") Date startDate,
|
||||||
@RequestParam("endDate") @DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate) throws JsonProcessingException {
|
@RequestParam("endDate") @DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate) throws JsonProcessingException {
|
||||||
return sampleStatAnalysisService.getNuclideActConcChartData(sampleType,station, nuclideName, dataSource, startDate, endDate);
|
return sampleStatAnalysisService.getNuclideActConcChartData(sampleType,station, nuclideName, dataSource, startDate, endDate);
|
||||||
|
|
|
||||||
|
|
@ -271,6 +271,11 @@ public class SampleStatAnalysisService extends ServiceImpl<GardsSampleStatAnalys
|
||||||
result.error500("Station Code cannot be null");
|
result.error500("Station Code cannot be null");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
if (StringUtils.isBlank(nuclideName)) {
|
||||||
|
result.error500("nuclideName cannot be null");
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
if (Objects.isNull(startDate)) {
|
if (Objects.isNull(startDate)) {
|
||||||
result.error500("The start time cannot be empty");
|
result.error500("The start time cannot be empty");
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user