|
@@ -1,5 +1,6 @@
|
|
|
package com.zhongshu.payment.server.core.service.common;
|
|
package com.zhongshu.payment.server.core.service.common;
|
|
|
|
|
|
|
|
|
|
+import com.github.microservice.models.type.PaymentType;
|
|
|
import com.zhongshu.payment.client.annotation.PayAnnotationService;
|
|
import com.zhongshu.payment.client.annotation.PayAnnotationService;
|
|
|
import com.zhongshu.payment.server.core.dao.ExecuteMethodInfoDao;
|
|
import com.zhongshu.payment.server.core.dao.ExecuteMethodInfoDao;
|
|
|
import com.zhongshu.payment.server.core.domain.unionFrictionlessPay.ExecuteMethodInfo;
|
|
import com.zhongshu.payment.server.core.domain.unionFrictionlessPay.ExecuteMethodInfo;
|
|
@@ -7,6 +8,7 @@ import com.zhongshu.payment.server.core.service.other.ScanSupport;
|
|
|
import com.zhongshu.payment.server.core.utils.CommonUtil;
|
|
import com.zhongshu.payment.server.core.utils.CommonUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
@@ -42,8 +44,13 @@ public class ScanExecuteService {
|
|
|
PayAnnotationService annotation = (PayAnnotationService) cls.getAnnotation(PayAnnotationService.class);
|
|
PayAnnotationService annotation = (PayAnnotationService) cls.getAnnotation(PayAnnotationService.class);
|
|
|
ExecuteMethodInfo executeMethodInfo = new ExecuteMethodInfo();
|
|
ExecuteMethodInfo executeMethodInfo = new ExecuteMethodInfo();
|
|
|
executeMethodInfo.setBeanName(className);
|
|
executeMethodInfo.setBeanName(className);
|
|
|
- executeMethodInfo.setPaymentType(annotation.paymentType());
|
|
|
|
|
- executeMethodInfo.setRemark(annotation.remark());
|
|
|
|
|
|
|
+ PaymentType paymentType = annotation.paymentType();
|
|
|
|
|
+ String remark = annotation.remark();
|
|
|
|
|
+ if (StringUtils.isEmpty(remark)) {
|
|
|
|
|
+ remark = paymentType.getRemark();
|
|
|
|
|
+ }
|
|
|
|
|
+ executeMethodInfo.setPaymentType(paymentType);
|
|
|
|
|
+ executeMethodInfo.setRemark(remark);
|
|
|
list.add(executeMethodInfo);
|
|
list.add(executeMethodInfo);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|