|
|
@@ -41,6 +41,7 @@ import org.apache.commons.collections.MapUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.rocketmq.client.producer.SendResult;
|
|
|
import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.context.event.EventListener;
|
|
|
import org.springframework.core.env.Environment;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
@@ -354,6 +355,7 @@ public class OrderService {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @Cacheable(value = "order", key = "#id+'_'+#payChannel")
|
|
|
public Object payAdapay(Long id, String payChannel, String openId) throws BaseAdaPayException {
|
|
|
List<String> aliChannels = Arrays.asList("alipay", "alipay_qr", "alipay_wap");
|
|
|
List<String> wxChannels = Arrays.asList("wx_pub", "wx_lite");
|