| | |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pmsGlobal.aop.LogSv; |
| | | import com.dy.pmsGlobal.aop.Log; |
| | | import com.dy.pmsGlobal.pojoBa.BaLog; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | @RequestMapping(path = "log") |
| | | @SuppressWarnings("unchecked") |
| | | public class LogCtrl { |
| | | |
| | | private LogSv sv; |
| | | @Autowired |
| | | public void setSv(LogSv sv) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * 分页查询日志 |
| | | * 查询日志 |
| | | * @return |
| | | */ |
| | | @PostMapping(path = "some", consumes = MediaType.APPLICATION_JSON_VALUE) |
| | | @SsoPowerAop(power = "10100010") //登录与权限同时验证 |
| | | @Log("分页查询日志") |
| | | @Log("查询日志") |
| | | public BaseResponse<QueryResultVo<List<BaLog>>> some(@RequestBody QueryVo vo){ |
| | | try { |
| | | QueryResultVo<List<BaLog>> res = sv.selectSome(vo); |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | } catch (Exception e) { |
| | | log.error("分页查询日志异常", e); |
| | | log.error("查询日志异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |