package com.testor.workflow.user.aop;//package com.testor.workflow.user.aop;
//
//import lombok.Data;
//import lombok.extern.slf4j.Slf4j;
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.annotation.After;
//import org.aspectj.lang.annotation.AfterReturning;
//import org.aspectj.lang.annotation.Pointcut;
//import org.springframework.stereotype.Service;
//
//@Service
//@Slf4j
//public class SystemUserAopService {
//
//    //新增用户后执行
//    @After(value="execution(* com.testor.biz.sys.user.service.SysUserService.save(*))")
//    public void addAfterLogger(JoinPoint joinPoint) {
//        log.info("*********执行SystemUserAopService addAfterLogger******");
//        System.out.println("*********执行SystemUserAopService addAfterLogger******");
//    }
//
//    //修改用户后执行(删除用户同样使用此方法：逻辑删除，修改用户状态)
//    @After(value="execution(* com.testor.biz.sys.user.service.SysUserService.updateById(*))")
//    public void updateAfterLogger(JoinPoint joinPoint) {
//        log.info("*********执行SystemUserAopService updateAfterLogger******");
//        System.out.println("*********执行SystemUserAopService updateAfterLogger******");
//    }
//
//    //批量删除
//    @After(value="execution(* com.testor.biz.sys.user.service.SysUserService.updateById(*))")
//    public void updateBatchAfterLogger(JoinPoint joinPoint) {
//        log.info("*********执行SystemUserAopService updateBatchAfterLogger******");
//        System.out.println("*********执行SystemUserAopService updateBatchAfterLogger******");
//    }
//}
