Browse Source

设备自检详情查看 结果返回

su-lmstack 3 years ago
parent
commit
2387ad1665

+ 4 - 1
src/main/java/cn/fastfun/controller/api/ApiAppDeviceLogController.java

@@ -181,9 +181,12 @@ public class ApiAppDeviceLogController {
     @RequestMapping(value = "selfcheck/detail", method = RequestMethod.POST)
     public ApiDTO selfCheckDetailQuery(@RequestBody @ApiParam(name = "入库参数", value = "指定sn", required = true) BenchQueryDetailParam param) {
         AppDevice device = appDeviceService.getOne(QueryParamExp.eq("sn", param.getSn()));
+        List<AppDevice> res = new ArrayList<>();
+        res.add(device);
 //        device.setCheckStatus(1);
 //        appDeviceService.save(device);
-        return ApiDTO.ok();
+        return new ApiPageDTO(null, res);
+
     }
 
     @ApiOperation(value = "根据sn或batch调拨 ")

+ 0 - 1
src/main/java/cn/fastfun/service/impl/AppDeviceLogServiceImpl.java

@@ -109,7 +109,6 @@ public class AppDeviceLogServiceImpl extends JpaServiceImp<AppDeviceLog, String>
     @Override
     @Transactional
     public Map<String, Boolean> selfCheck(String sn) {
-        //TODO 添加自检
         Map<String, Boolean> res = new HashMap<>();
         Boolean checkResult = true;
         Boolean checkDataConnectResult = true;