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