@@ -37,7 +37,7 @@ public class AirDataController { | |||
* @return | |||
*/ | |||
@GetMapping("/list/{id}") | |||
public List<AirData> getList(@PathVariable("id") String id) { | |||
public JsonResult getList(@PathVariable("id") String id) { | |||
return airDataService.getAirDataList(id); | |||
} | |||
@@ -176,7 +176,7 @@ public class AirData extends BaseEntity { | |||
/** | |||
* 二氧化氮(单位ppm) | |||
*/ | |||
private String n02; | |||
private String no2; | |||
@@ -76,13 +76,13 @@ public class AirDataExcelVo { | |||
* 一氧化碳(单位ppm) | |||
*/ | |||
@ExcelProperty(value = {"CO ppm"},index = 9) | |||
private String c0; | |||
private String co; | |||
/** | |||
* 二氧化氮(单位ppm) | |||
*/ | |||
@ExcelProperty(value = {"NO2 ppb"},index = 10) | |||
private String n02; | |||
private String no2; | |||
/** | |||
* o3+NO2 |
@@ -35,7 +35,7 @@ public class AirDataServiceImpl extends BaseServiceImpl<AirDataMapper, AirData> | |||
* @return | |||
*/ | |||
@Override | |||
public List<AirData> getAirDataList(String id) { | |||
public JsonResult getAirDataList(String id) { | |||
return queryAirDataListService.list(id); | |||
} | |||
@@ -17,7 +17,7 @@ public interface IAirDataService extends IBaseService<AirData> { | |||
* @param id | |||
* @return | |||
*/ | |||
List<AirData> getAirDataList(String id); | |||
JsonResult getAirDataList(String id); | |||
JsonResult generateTable(String id); | |||
@@ -59,12 +59,12 @@ public class QueryAirDataListService { | |||
private AliyunOSSUtil aliyunOSSUtil; | |||
public List<AirData> list(String id) { | |||
public JsonResult list(String id) { | |||
List<AirData> airDataList = airDataMapper.selectList(Wrappers.<AirData>lambdaQuery() | |||
.eq(AirData::getMark, MarkEnum.VALID.getCode()) | |||
.eq(AirData::getInspectionId, id)); | |||
return airDataList; | |||
return JsonResult.success(airDataList); | |||
} | |||
public JsonResult generateTable(String id) { |