xuekang
2024-05-13 15a0280ae9e7db96fdf0744c722d214d2cb5a0e5
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
package com.nuvole.four.config.mybatisInt;//package com.nuvole.shop.config.mybatisInt;
//
//import com.nuvole.shop.domain.StoreMemberBankcard;
//import com.nuvole.shop.service.ActivityDetailHeadBandCoupDetailService;
//import com.nuvole.util.AESUtil;
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.annotation.After;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Pointcut;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//import org.springframework.util.CollectionUtils;
//
//import java.util.Arrays;
//import java.util.List;
//
///**
// * @ClassName HeadBandGiveCoup
// * @Author cy
// * @Date 2022/12/13
// * @Description
// * @Version 1.0
// **/
//@Aspect
//@Component
//public class HeadBandGiveCoup {
//    @Autowired
//    private ActivityDetailHeadBandCoupDetailService activityDetailHeadBandCoupDetailService;
//
//    @Pointcut("execution(* com.nuvole.shop.mapper.StoreMemberBankcardMapper.insertSelective(..))")
//    public void bindCard() {
//    }
//
//    @After("bindCard()")
//    public void afterMethod(JoinPoint point) {
//        String methodName = point.getSignature().getName();
//        System.out.println("调用后连接点方法为:" + methodName);
//        List<Object> args = Arrays.asList(point.getArgs());
//        if (!CollectionUtils.isEmpty(args)) {
//            Object o = args.get(0);
//            if (o instanceof StoreMemberBankcard) {
//                StoreMemberBankcard record = (StoreMemberBankcard) o;
//                activityDetailHeadBandCoupDetailService.doGetGiveCoupon(record.getMemberId(), AESUtil.decode(record.getCardNo()));
//            }
//        }
//        System.out.println("参数为:" + args);
//    }
//
//}