|  | @@ -47,6 +47,9 @@ public class EmsWebsocketLogController extends BaseRESTfulController {
 | 
	
		
			
				|  |  |      //@RequiresPermissions("emswebsocketlog:view")
 | 
	
		
			
				|  |  |      @GetMapping(value = "/")
 | 
	
		
			
				|  |  |      public RESTfulResult list(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
 | 
	
		
			
				|  |  | +        if ( parmas.get("relation") != null && "admin".equals(parmas.get("relation").toString())) {
 | 
	
		
			
				|  |  | +            parmas.put("relation","");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          PageList<EmsWebsocketLog> list = emsWebsocketLogService.queryForPage(parmas, pageNum, pageSize);
 | 
	
		
			
				|  |  |          return success(list);
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -59,6 +62,9 @@ public class EmsWebsocketLogController extends BaseRESTfulController {
 | 
	
		
			
				|  |  |      //@RequiresPermissions("emswebsocketlog:view")
 | 
	
		
			
				|  |  |      @GetMapping(value = "/like/")
 | 
	
		
			
				|  |  |      public RESTfulResult listLike(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
 | 
	
		
			
				|  |  | +        if ( parmas.get("relation") != null && "admin".equals(parmas.get("relation").toString())) {
 | 
	
		
			
				|  |  | +            parmas.put("relation","");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          PageList<EmsWebsocketLog> list = emsWebsocketLogService.queryLikeForPage(parmas, pageNum, pageSize);
 | 
	
		
			
				|  |  |          return success(list);
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -110,4 +116,23 @@ public class EmsWebsocketLogController extends BaseRESTfulController {
 | 
	
		
			
				|  |  |      	}
 | 
	
		
			
				|  |  |        return success();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +    @ApiOperation(value="更新详细信息", notes="根据根据传过来的emsWebsocketLog信息来更新详细信息")
 | 
	
		
			
				|  |  | +    @ApiImplicitParams({
 | 
	
		
			
				|  |  | +            @ApiImplicitParam(name = "emsWebsocketLog", value = "详细实体emsWebsocketLog", required = true, dataType = "EmsWebsocketLog")
 | 
	
		
			
				|  |  | +    })
 | 
	
		
			
				|  |  | +    @PutMapping(value = "/batchupdate", produces  = "application/json;charset=UTF-8")
 | 
	
		
			
				|  |  | +    public RESTfulResult batchupdate(@RequestBody EmsWebsocketLog[] models) {
 | 
	
		
			
				|  |  | +        String userId = JwtUtil.getUseridByToken();
 | 
	
		
			
				|  |  | +        for (int i = 0; i < models.length; i++) {
 | 
	
		
			
				|  |  | +            EmsWebsocketLog model = models[i];
 | 
	
		
			
				|  |  | +            if (model.getId() == null || model.getId().equals("")) {
 | 
	
		
			
				|  |  | +                return failed(null, "id为空");
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            model.setState("1");
 | 
	
		
			
				|  |  | +            model.setClosetime(DateUtils.dateStr(new Date(),"yyyy-MM-dd HH:mm:ss"));
 | 
	
		
			
				|  |  | +            model.setCloseman(JwtUtil.getUseridByToken());
 | 
	
		
			
				|  |  | +            emsWebsocketLogService.modify(model);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return success();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 |