|
@@ -8,6 +8,7 @@
|
|
|
package cn.com.qmth.examcloud.app.controller;
|
|
|
|
|
|
import cn.com.qmth.examcloud.app.model.DeviceRecord;
|
|
|
+import cn.com.qmth.examcloud.app.model.DeviceRecordQuery;
|
|
|
import cn.com.qmth.examcloud.app.model.Result;
|
|
|
import cn.com.qmth.examcloud.app.service.DeviceRecordService;
|
|
|
import org.slf4j.Logger;
|
|
@@ -15,7 +16,10 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
/**
|
|
|
* 设备访问记录Controller
|
|
@@ -34,10 +38,8 @@ public class DeviceRecordController {
|
|
|
|
|
|
@ResponseBody
|
|
|
@RequestMapping(value = "/list", method = RequestMethod.POST)
|
|
|
- public Result<Page<DeviceRecord>> list(@RequestBody(required = false) DeviceRecord params,
|
|
|
- @RequestParam(defaultValue = "1") Integer pageNo,
|
|
|
- @RequestParam(defaultValue = "10") Integer pageSize) throws Exception {
|
|
|
- return deviceRecordService.getDeviceRecordList(params, pageNo, pageSize);
|
|
|
+ public Result<Page<DeviceRecord>> list(@RequestBody(required = false) DeviceRecordQuery params) throws Exception {
|
|
|
+ return deviceRecordService.getDeviceRecordList(params);
|
|
|
}
|
|
|
|
|
|
}
|