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;
|
}
|
|
}
|