Commit cd46ad72 authored by 李健华's avatar 李健华

Merge branch 'hotfix/registgerEvent-20220705' into 'master'

去掉注册无意义的监听

See merge request !78
parents 765c2798 66c21959
...@@ -6,16 +6,13 @@ import cn.quantgroup.xyqb.model.UserRegisterParam; ...@@ -6,16 +6,13 @@ import cn.quantgroup.xyqb.model.UserRegisterParam;
import cn.quantgroup.xyqb.repository.IAddressRepository; import cn.quantgroup.xyqb.repository.IAddressRepository;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener; import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import java.sql.Timestamp;
/** /**
* 注册成功后保存地址 * 注册成功后保存地址
* *
* @author ag * @author ag
*/ */
@Component //@Component
public class AddressRegisteredEventListener implements ApplicationListener<RegisterEvent> { public class AddressRegisteredEventListener implements ApplicationListener<RegisterEvent> {
@Autowired @Autowired
......
...@@ -7,12 +7,10 @@ import cn.quantgroup.xyqb.model.UserRegisterParam; ...@@ -7,12 +7,10 @@ import cn.quantgroup.xyqb.model.UserRegisterParam;
import cn.quantgroup.xyqb.service.user.IUserBtRegisterService; import cn.quantgroup.xyqb.service.user.IUserBtRegisterService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener; import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import java.sql.Timestamp;
import java.util.Objects; import java.util.Objects;
@Component //@Component
public class BtRegisteredEventListener implements ApplicationListener<RegisterEvent> { public class BtRegisteredEventListener implements ApplicationListener<RegisterEvent> {
@Autowired @Autowired
......
...@@ -6,8 +6,6 @@ import cn.quantgroup.xyqb.model.UserRegisterParam; ...@@ -6,8 +6,6 @@ import cn.quantgroup.xyqb.model.UserRegisterParam;
import cn.quantgroup.xyqb.repository.IContactRepository; import cn.quantgroup.xyqb.repository.IContactRepository;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener; import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.util.List; import java.util.List;
...@@ -17,7 +15,7 @@ import java.util.List; ...@@ -17,7 +15,7 @@ import java.util.List;
* *
* @author ag * @author ag
*/ */
@Component //@Component
public class ContactRegisteredEventListener implements ApplicationListener<RegisterEvent> { public class ContactRegisteredEventListener implements ApplicationListener<RegisterEvent> {
@Autowired @Autowired
......
...@@ -10,12 +10,11 @@ import lombok.extern.slf4j.Slf4j; ...@@ -10,12 +10,11 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener; import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.persistence.PersistenceException; import javax.persistence.PersistenceException;
@Component //@Component
@Slf4j @Slf4j
public class PhoneHashEventListener implements ApplicationListener<RegisterEvent> { public class PhoneHashEventListener implements ApplicationListener<RegisterEvent> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment