whycrzg
2021-02-20 aa885eba07f4b84390922b4b146d1806676293c0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.fgkj.controller;
 
import com.fgkj.util.*;
 
import com.fgkj.dto.Batt_User_Permit;
import com.fgkj.dto.ServiceModel;
import com.fgkj.dto.User_log;
import com.fgkj.services.User_logService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
@RequestMapping("userLog")
@RestController
@Api
public class UserLogController{
 
    @Resource
    private User_logService service;
 
    //5.4用户操作记录查询(根据用户名和操作类型以及操作时间)
    @GetMapping("byCondition")
    public ServiceModel serchByCondition(@RequestBody Batt_User_Permit bup){
        //System.out.println(bup.getUlog());
        ServiceModel model=service.serchByCondition(bup);
        
        return model;
    }
    
    //查询所有的用户操作记录
    @GetMapping("all")
    public ServiceModel searchAll(){
        ServiceModel model=service.searchAll();
        
        return model;
    }
 
    //0.2当前时间的操作记录
    @GetMapping("byInfo")
    public ServiceModel serchByInfo(@RequestBody User_log ulog) {
        //System.out.println(ulog+"******");
        ServiceModel model=service.serchByInfo(ulog);
        
        return model;
    }
    
}