|
@@ -1,6 +1,7 @@
|
|
|
package com.qx.didi.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.extension.api.R;
|
|
|
import com.qx.didi.dto.ApiDTO;
|
|
|
import com.qx.didi.dto.Response;
|
|
|
import com.qx.didi.dto.SohResultDto;
|
|
@@ -190,9 +191,14 @@ public class ShowDataController {
|
|
|
} catch (Exception e) {
|
|
|
throw new ApiRuntimeException(500, e.toString());
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
+ @ApiOperation(value = "获取sn列表")
|
|
|
+ @PostMapping("/getSn")
|
|
|
+ public ApiDTO getSn(@RequestBody QueryParam param) {
|
|
|
+ List<String> snList = new ArrayList<>();
|
|
|
+ List<ResultOriginData> resultOriginData = resultOriginDataService.list(new QueryWrapper<ResultOriginData>().eq("type", param.getTableId()));
|
|
|
+ resultOriginData.forEach(p->snList.add(p.getDeviceId()));
|
|
|
+ return ApiDTO.ok(snList);
|
|
|
|
|
|
-
|
|
|
+ }
|
|
|
}
|