|
|
@@ -1,6 +1,7 @@
|
|
|
package org.springblade.point.listener;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springblade.common.enums.OrderType;
|
|
|
import org.springblade.common.enums.ResCode;
|
|
|
@@ -30,6 +31,7 @@ import org.springframework.stereotype.Component;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.Assert;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Objects;
|
|
|
|
|
|
@@ -40,6 +42,7 @@ import java.util.Objects;
|
|
|
*/
|
|
|
@Component
|
|
|
@Slf4j
|
|
|
+@AllArgsConstructor
|
|
|
public class SendPointHandle {
|
|
|
private ILoginUserService loginUserService;
|
|
|
private IBalanceBillsService balanceBillsService;
|
|
|
@@ -49,10 +52,9 @@ public class SendPointHandle {
|
|
|
private IUserChannelPointService userChannelPointService;
|
|
|
private IBillsService billsService;
|
|
|
private IMemberService memberService;
|
|
|
-
|
|
|
+
|
|
|
@EventListener
|
|
|
@Transactional
|
|
|
- @Async
|
|
|
public void handleSendPoint(BillSuccessEvent billSuccessEvent){
|
|
|
SuccessParams successParams = billSuccessEvent.getSuccessParams();
|
|
|
Bills bill = successParams.getBills();
|