jz.kai 5 years ago
parent
commit
902803921a

+ 9 - 3
web/src/main/java/com/jpsoft/smart/modules/mobile/controller/PersonDeviceFilterLogController.java

@@ -39,8 +39,12 @@ public class PersonDeviceFilterLogController {
     private PersonInfoService personInfoService;
     private PersonInfoService personInfoService;
 
 
     @ApiOperation(value="体温记录(正常、异常)")
     @ApiOperation(value="体温记录(正常、异常)")
-    @GetMapping("detail/{id}")
-    public MessageResult<PersonDeviceFilterLogDTO> detail(@PathVariable("id") Long id){
+    @RequestMapping(value = "detail",method = RequestMethod.POST)
+    @ApiImplicitParams({
+            @ApiImplicitParam(name="token",value = "令牌",required = true,paramType = "form"),
+            @ApiImplicitParam(name="id",value = "编号",paramType = "form")
+    })
+    public MessageResult<PersonDeviceFilterLogDTO> detail(@PathVariable("id") Long id,String token){
         MessageResult<PersonDeviceFilterLogDTO> msgResult = new MessageResult<>();
         MessageResult<PersonDeviceFilterLogDTO> msgResult = new MessageResult<>();
 
 
         try {
         try {
@@ -81,11 +85,13 @@ public class PersonDeviceFilterLogController {
     @ApiOperation(value="体温记录(个人列表)")
     @ApiOperation(value="体温记录(个人列表)")
     @RequestMapping(value = "list",method = RequestMethod.POST)
     @RequestMapping(value = "list",method = RequestMethod.POST)
     @ApiImplicitParams({
     @ApiImplicitParams({
+            @ApiImplicitParam(name="token",value = "令牌",required = true,paramType = "form"),
             @ApiImplicitParam(name = "personId",value = "人员编号", required = false, paramType = "form",dataType = "Long"),
             @ApiImplicitParam(name = "personId",value = "人员编号", required = false, paramType = "form",dataType = "Long"),
             @ApiImplicitParam(name = "recordDate",value = "查询日期(yyyy-MM-dd)", required = false, paramType = "form",dataType = "String")
             @ApiImplicitParam(name = "recordDate",value = "查询日期(yyyy-MM-dd)", required = false, paramType = "form",dataType = "String")
     })
     })
     public MessageResult<List<PersonDeviceFilterLogDTO>> list(@RequestParam(value="personId",defaultValue="") Long personId,
     public MessageResult<List<PersonDeviceFilterLogDTO>> list(@RequestParam(value="personId",defaultValue="") Long personId,
-                                                              @RequestParam(value="recordDate",defaultValue="") String recordDate){
+                                                              @RequestParam(value="recordDate",defaultValue="") String recordDate,
+                                                              String token){
         MessageResult<List<PersonDeviceFilterLogDTO>> msgResult = new MessageResult<>();
         MessageResult<List<PersonDeviceFilterLogDTO>> msgResult = new MessageResult<>();
 
 
         try {
         try {