Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
head_group
xyqb-user2
Commits
3c8b53b3
Commit
3c8b53b3
authored
Sep 15, 2022
by
王亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused dependency.
parent
ae057614
Changes
296
Show whitespace changes
Inline
Side-by-side
Showing
296 changed files
with
1509 additions
and
1902 deletions
+1509
-1902
pom.xml
pom.xml
+357
-387
DynamicDataSourceRegister.java
...java/cn/quantgroup/tech/db/DynamicDataSourceRegister.java
+0
-127
Bootstrap.java
src/main/java/cn/quantgroup/xyqb/Bootstrap.java
+1
-5
IpValidateAdvisor.java
.../quantgroup/xyqb/aspect/accessable/IpValidateAdvisor.java
+1
-2
IpValidator.java
...ava/cn/quantgroup/xyqb/aspect/accessable/IpValidator.java
+5
-1
CaptchaFiniteValidateAdvisor.java
...oup/xyqb/aspect/captcha/CaptchaFiniteValidateAdvisor.java
+6
-10
CaptchaFiniteValidator.java
...uantgroup/xyqb/aspect/captcha/CaptchaFiniteValidator.java
+5
-1
CaptchaNewValidateAdvisor.java
...tgroup/xyqb/aspect/captcha/CaptchaNewValidateAdvisor.java
+6
-7
CaptchaNewValidator.java
...n/quantgroup/xyqb/aspect/captcha/CaptchaNewValidator.java
+5
-1
CaptchaValidateAdvisor.java
...uantgroup/xyqb/aspect/captcha/CaptchaValidateAdvisor.java
+4
-7
CaptchaValidator.java
...a/cn/quantgroup/xyqb/aspect/captcha/CaptchaValidator.java
+5
-1
LoginInterceptorAspect.java
...uantgroup/xyqb/aspect/captcha/LoginInterceptorAspect.java
+3
-4
AccessForbiddenAspect.java
...antgroup/xyqb/aspect/forbidden/AccessForbiddenAspect.java
+1
-2
AccessLimitAspect.java
...va/cn/quantgroup/xyqb/aspect/limit/AccessLimitAspect.java
+2
-3
PasswordFreeAccessValidateAdvisor.java
.../xyqb/aspect/limit/PasswordFreeAccessValidateAdvisor.java
+3
-4
PasswordFreeAccessValidator.java
...tgroup/xyqb/aspect/limit/PasswordFreeAccessValidator.java
+5
-1
PasswordErrorFiniteValidateAdvisor.java
.../xyqb/aspect/lock/PasswordErrorFiniteValidateAdvisor.java
+2
-5
PasswordErrorFiniteValidator.java
...tgroup/xyqb/aspect/lock/PasswordErrorFiniteValidator.java
+5
-1
RedisLock.java
src/main/java/cn/quantgroup/xyqb/aspect/lock/RedisLock.java
+5
-1
RedisLockAspect.java
.../java/cn/quantgroup/xyqb/aspect/lock/RedisLockAspect.java
+1
-2
LogCallHttpAspect.java
...n/quantgroup/xyqb/aspect/logcaller/LogCallHttpAspect.java
+4
-8
AuthenticationConfiguration.java
...n/quantgroup/xyqb/config/AuthenticationConfiguration.java
+5
-6
AuthenticationConfigurationProperties.java
...up/xyqb/config/AuthenticationConfigurationProperties.java
+1
-2
CustomCaptchaEngine.java
...n/quantgroup/xyqb/config/captcha/CustomCaptchaEngine.java
+2
-2
CustomCaptchaService.java
.../quantgroup/xyqb/config/captcha/CustomCaptchaService.java
+1
-2
RedisCaptchaStore.java
.../cn/quantgroup/xyqb/config/captcha/RedisCaptchaStore.java
+2
-5
JpaConfig.java
src/main/java/cn/quantgroup/xyqb/config/data/JpaConfig.java
+31
-9
LoginRiskJpaConfig.java
...va/cn/quantgroup/xyqb/config/data/LoginRiskJpaConfig.java
+3
-4
RedisConfig.java
...main/java/cn/quantgroup/xyqb/config/data/RedisConfig.java
+2
-4
EventConfig.java
...ain/java/cn/quantgroup/xyqb/config/event/EventConfig.java
+3
-4
HttpConfig.java
src/main/java/cn/quantgroup/xyqb/config/http/HttpConfig.java
+5
-6
MyWebMvcConfigurer.java
...va/cn/quantgroup/xyqb/config/http/MyWebMvcConfigurer.java
+3
-4
Timestamp2LongConverter.java
.../quantgroup/xyqb/config/http/Timestamp2LongConverter.java
+0
-1
LoanVestMqConfig.java
...n/java/cn/quantgroup/xyqb/config/mq/LoanVestMqConfig.java
+5
-1
RegisterMqConfig.java
...n/java/cn/quantgroup/xyqb/config/mq/RegisterMqConfig.java
+7
-4
CustomSentryExceptionResolver.java
...oup/xyqb/config/sentry/CustomSentryExceptionResolver.java
+8
-4
SentryConfig.java
...n/java/cn/quantgroup/xyqb/config/sentry/SentryConfig.java
+1
-2
ExceptionHandlingController.java
...antgroup/xyqb/controller/ExceptionHandlingController.java
+22
-11
IBaseController.java
...n/java/cn/quantgroup/xyqb/controller/IBaseController.java
+8
-9
UserAuthorizedController.java
...tgroup/xyqb/controller/dust/UserAuthorizedController.java
+1
-2
WechatVerifyController.java
.../controller/dust/wechatverify/WechatVerifyController.java
+2
-3
UserController.java
...n/quantgroup/xyqb/controller/external/UserController.java
+33
-14
UserDetailController.java
...tgroup/xyqb/controller/external/UserDetailController.java
+1
-6
WeChatController.java
...quantgroup/xyqb/controller/external/WeChatController.java
+23
-12
WechatFollowController.java
...roup/xyqb/controller/external/WechatFollowController.java
+2
-54
ImageCaptchaController.java
...b/controller/external/captcha/ImageCaptchaController.java
+9
-15
NewCaptchaController.java
...yqb/controller/external/captcha/NewCaptchaController.java
+6
-10
LockIpv4Controller.java
...oup/xyqb/controller/external/lock/LockIpv4Controller.java
+3
-6
SmsController.java
...uantgroup/xyqb/controller/external/sms/SmsController.java
+6
-3
AuthInfoController.java
...up/xyqb/controller/internal/login/AuthInfoController.java
+1
-2
UserQueryLogController.java
.../controller/internal/querylog/UserQueryLogController.java
+22
-13
AppController.java
...antgroup/xyqb/controller/internal/user/AppController.java
+5
-10
InnerController.java
...tgroup/xyqb/controller/internal/user/InnerController.java
+75
-79
SyncUserController.java
...oup/xyqb/controller/internal/user/SyncUserController.java
+11
-20
UserApiController.java
...roup/xyqb/controller/internal/user/UserApiController.java
+8
-9
UserCenterController.java
...controller/internal/user/center/UserCenterController.java
+27
-21
UserFullResp.java
...roup/xyqb/controller/internal/user/resp/UserFullResp.java
+1
-2
AppletController.java
...xyqb/controller/middleoffice/applet/AppletController.java
+6
-3
PwdVerifyStrategy.java
...yqb/controller/middleoffice/common/PwdVerifyStrategy.java
+1
-2
SmsVerifyStrategy.java
...yqb/controller/middleoffice/common/SmsVerifyStrategy.java
+1
-2
VerifyStrategyFactory.java
...controller/middleoffice/common/VerifyStrategyFactory.java
+0
-1
GeeVerifyStrategy.java
...ntroller/middleoffice/common/image/GeeVerifyStrategy.java
+2
-3
ImageVerifyStrategyFactory.java
...middleoffice/common/image/ImageVerifyStrategyFactory.java
+0
-1
QgVerifyStrategy.java
...ontroller/middleoffice/common/image/QgVerifyStrategy.java
+1
-2
ContactController.java
...qb/controller/middleoffice/contact/ContactController.java
+8
-4
ContactSaveDto.java
...b/controller/middleoffice/contact/dto/ContactSaveDto.java
+2
-3
ImageController.java
...p/xyqb/controller/middleoffice/image/ImageController.java
+9
-5
LoginController.java
...p/xyqb/controller/middleoffice/login/LoginController.java
+7
-3
LoginModule.java
...group/xyqb/controller/middleoffice/login/LoginModule.java
+3
-4
SmsController.java
...group/xyqb/controller/middleoffice/sms/SmsController.java
+1
-2
UserController.java
...oup/xyqb/controller/middleoffice/user/UserController.java
+10
-5
UserDetailController.java
...troller/middleoffice/userdetail/UserDetailController.java
+8
-5
UserExtController.java
...qb/controller/middleoffice/userext/UserExtController.java
+3
-5
UserExtReq.java
.../xyqb/controller/middleoffice/userext/req/UserExtReq.java
+1
-2
WxController.java
...ntgroup/xyqb/controller/middleoffice/wx/WxController.java
+11
-5
ModifyPhoneNoController.java
...yqb/controller/modifyphoneno/ModifyPhoneNoController.java
+3
-17
AuditReq.java
...uantgroup/xyqb/controller/modifyphoneno/req/AuditReq.java
+4
-6
ModifyPhoneNoQueryReq.java
...b/controller/modifyphoneno/req/ModifyPhoneNoQueryReq.java
+7
-9
Step1Req.java
...uantgroup/xyqb/controller/modifyphoneno/req/Step1Req.java
+7
-10
Step2Req.java
...uantgroup/xyqb/controller/modifyphoneno/req/Step2Req.java
+5
-7
ModifyPhoneNoResp.java
...xyqb/controller/modifyphoneno/resp/ModifyPhoneNoResp.java
+14
-16
Page.java
src/main/java/cn/quantgroup/xyqb/controller/req/Page.java
+2
-3
LoginWhiteListController.java
...tgroup/xyqb/controller/risk/LoginWhiteListController.java
+1
-2
TenantController.java
...n/quantgroup/xyqb/controller/tenant/TenantController.java
+2
-3
Address.java
src/main/java/cn/quantgroup/xyqb/entity/Address.java
+5
-4
BaseEntity.java
src/main/java/cn/quantgroup/xyqb/entity/BaseEntity.java
+9
-3
Contact.java
src/main/java/cn/quantgroup/xyqb/entity/Contact.java
+4
-5
CustomerInfoEntity.java
...in/java/cn/quantgroup/xyqb/entity/CustomerInfoEntity.java
+4
-3
CustomerLoginEntity.java
...n/java/cn/quantgroup/xyqb/entity/CustomerLoginEntity.java
+4
-2
GeetestLogEntity.java
...main/java/cn/quantgroup/xyqb/entity/GeetestLogEntity.java
+3
-4
LoginRecord.java
src/main/java/cn/quantgroup/xyqb/entity/LoginRecord.java
+2
-3
Merchant.java
src/main/java/cn/quantgroup/xyqb/entity/Merchant.java
+2
-3
MerchantConfig.java
src/main/java/cn/quantgroup/xyqb/entity/MerchantConfig.java
+2
-3
ModifyPhoneNo.java
src/main/java/cn/quantgroup/xyqb/entity/ModifyPhoneNo.java
+2
-3
OauthClientDetailsEntity.java
...a/cn/quantgroup/xyqb/entity/OauthClientDetailsEntity.java
+2
-3
ProductLoginEntity.java
...in/java/cn/quantgroup/xyqb/entity/ProductLoginEntity.java
+5
-3
SmsTemplateEntity.java
...ain/java/cn/quantgroup/xyqb/entity/SmsTemplateEntity.java
+1
-2
User.java
src/main/java/cn/quantgroup/xyqb/entity/User.java
+7
-4
UserAttached.java
src/main/java/cn/quantgroup/xyqb/entity/UserAttached.java
+4
-4
UserAuthorized.java
src/main/java/cn/quantgroup/xyqb/entity/UserAuthorized.java
+6
-3
UserBtRegister.java
src/main/java/cn/quantgroup/xyqb/entity/UserBtRegister.java
+4
-5
UserDeregisterRecord.java
.../java/cn/quantgroup/xyqb/entity/UserDeregisterRecord.java
+15
-3
UserDetail.java
src/main/java/cn/quantgroup/xyqb/entity/UserDetail.java
+5
-7
UserExtInfo.java
src/main/java/cn/quantgroup/xyqb/entity/UserExtInfo.java
+9
-5
UserHashMapping.java
src/main/java/cn/quantgroup/xyqb/entity/UserHashMapping.java
+3
-4
UserHashPhoneNoIdNoMapping.java
...cn/quantgroup/xyqb/entity/UserHashPhoneNoIdNoMapping.java
+3
-3
UserQueryLog.java
src/main/java/cn/quantgroup/xyqb/entity/UserQueryLog.java
+3
-5
UserSpouse.java
src/main/java/cn/quantgroup/xyqb/entity/UserSpouse.java
+9
-4
UuidPhoneMapping.java
...main/java/cn/quantgroup/xyqb/entity/UuidPhoneMapping.java
+8
-3
WechatInfoRelation.java
...in/java/cn/quantgroup/xyqb/entity/WechatInfoRelation.java
+4
-7
WechatUserInfo.java
src/main/java/cn/quantgroup/xyqb/entity/WechatUserInfo.java
+5
-4
EncryptConverter.java
...cn/quantgroup/xyqb/entity/converter/EncryptConverter.java
+2
-3
AppletParamEntry.java
...quantgroup/xyqb/entity/middleoffice/AppletParamEntry.java
+2
-3
BlackHoleRegisteredEventListener.java
...antgroup/xyqb/event/BlackHoleRegisteredEventListener.java
+3
-4
BtRegisteredEventListener.java
...a/cn/quantgroup/xyqb/event/BtRegisteredEventListener.java
+1
-2
CacheEvictPhoneNoUpdateEventListener.java
...roup/xyqb/event/CacheEvictPhoneNoUpdateEventListener.java
+3
-4
ContactRegisteredEventListener.java
...quantgroup/xyqb/event/ContactRegisteredEventListener.java
+1
-2
DetailRegisteredEventListener.java
.../quantgroup/xyqb/event/DetailRegisteredEventListener.java
+5
-11
LkbRegisteredEventListener.java
.../cn/quantgroup/xyqb/event/LkbRegisteredEventListener.java
+0
-1
NotifyWechatBindEventListener.java
.../quantgroup/xyqb/event/NotifyWechatBindEventListener.java
+2
-3
PhoneHashEventListener.java
...java/cn/quantgroup/xyqb/event/PhoneHashEventListener.java
+2
-3
RegisterEvent.java
src/main/java/cn/quantgroup/xyqb/event/RegisterEvent.java
+2
-4
UserDetailHashEventListener.java
...cn/quantgroup/xyqb/event/UserDetailHashEventListener.java
+1
-2
UserLoginEvent.java
src/main/java/cn/quantgroup/xyqb/event/UserLoginEvent.java
+1
-2
WechatPhoneNoUpdateEventListener.java
...antgroup/xyqb/event/WechatPhoneNoUpdateEventListener.java
+1
-2
CrosFilter.java
src/main/java/cn/quantgroup/xyqb/filter/CrosFilter.java
+11
-7
RequestFilter.java
src/main/java/cn/quantgroup/xyqb/filter/RequestFilter.java
+11
-7
AddressModel.java
src/main/java/cn/quantgroup/xyqb/model/AddressModel.java
+1
-2
AppSmsUserParam.java
src/main/java/cn/quantgroup/xyqb/model/AppSmsUserParam.java
+1
-2
AppUserParam.java
src/main/java/cn/quantgroup/xyqb/model/AppUserParam.java
+6
-2
AuthBean.java
src/main/java/cn/quantgroup/xyqb/model/AuthBean.java
+1
-3
ContactInfo.java
src/main/java/cn/quantgroup/xyqb/model/ContactInfo.java
+1
-2
ContactModel.java
src/main/java/cn/quantgroup/xyqb/model/ContactModel.java
+1
-2
ContactRet.java
src/main/java/cn/quantgroup/xyqb/model/ContactRet.java
+2
-3
JsonResult.java
src/main/java/cn/quantgroup/xyqb/model/JsonResult.java
+1
-3
PageModel.java
src/main/java/cn/quantgroup/xyqb/model/PageModel.java
+1
-2
TokenExchange.java
src/main/java/cn/quantgroup/xyqb/model/TokenExchange.java
+6
-2
UserAssociation.java
src/main/java/cn/quantgroup/xyqb/model/UserAssociation.java
+1
-2
UserAssociationModel.java
...n/java/cn/quantgroup/xyqb/model/UserAssociationModel.java
+1
-2
UserDetailRet.java
src/main/java/cn/quantgroup/xyqb/model/UserDetailRet.java
+1
-2
UserExtInfoRet.java
src/main/java/cn/quantgroup/xyqb/model/UserExtInfoRet.java
+5
-1
UserFullInfo.java
src/main/java/cn/quantgroup/xyqb/model/UserFullInfo.java
+1
-2
UserInfo.java
src/main/java/cn/quantgroup/xyqb/model/UserInfo.java
+1
-2
UserModel.java
src/main/java/cn/quantgroup/xyqb/model/UserModel.java
+2
-3
UserQueryInfo.java
src/main/java/cn/quantgroup/xyqb/model/UserQueryInfo.java
+1
-2
UserRegisterMqMessage.java
.../java/cn/quantgroup/xyqb/model/UserRegisterMqMessage.java
+1
-2
UserRegisterParam.java
...main/java/cn/quantgroup/xyqb/model/UserRegisterParam.java
+3
-5
UserRet.java
src/main/java/cn/quantgroup/xyqb/model/UserRet.java
+1
-4
SessionStruct.java
.../java/cn/quantgroup/xyqb/model/session/SessionStruct.java
+2
-3
SessionValue.java
...n/java/cn/quantgroup/xyqb/model/session/SessionValue.java
+2
-3
AccessTokenResponse.java
...cn/quantgroup/xyqb/model/webchat/AccessTokenResponse.java
+1
-2
ContactInfoResponse.java
...cn/quantgroup/xyqb/model/webchat/ContactInfoResponse.java
+1
-2
ContactListResponse.java
...cn/quantgroup/xyqb/model/webchat/ContactListResponse.java
+1
-4
CustomerListResponse.java
...n/quantgroup/xyqb/model/webchat/CustomerListResponse.java
+1
-2
DepartmentInfoResponse.java
...quantgroup/xyqb/model/webchat/DepartmentInfoResponse.java
+1
-3
DepartmentListResponse.java
...quantgroup/xyqb/model/webchat/DepartmentListResponse.java
+1
-2
WechatUserListResponse.java
...quantgroup/xyqb/model/webchat/WechatUserListResponse.java
+1
-3
IContactRepository.java
...ava/cn/quantgroup/xyqb/repository/IContactRepository.java
+1
-3
IGeetestLogRepository.java
.../cn/quantgroup/xyqb/repository/IGeetestLogRepository.java
+1
-3
ILoginRecordRepository.java
...cn/quantgroup/xyqb/repository/ILoginRecordRepository.java
+0
-6
IProductLoginRepository.java
...n/quantgroup/xyqb/repository/IProductLoginRepository.java
+1
-3
ISmsTemplateRepository.java
...cn/quantgroup/xyqb/repository/ISmsTemplateRepository.java
+1
-2
IUserAttachedRepository.java
...n/quantgroup/xyqb/repository/IUserAttachedRepository.java
+1
-2
IUserDeregisterRecordRepository.java
...roup/xyqb/repository/IUserDeregisterRecordRepository.java
+2
-3
IUserDetailRepository.java
.../cn/quantgroup/xyqb/repository/IUserDetailRepository.java
+1
-2
IUserExtInfoRepository.java
...cn/quantgroup/xyqb/repository/IUserExtInfoRepository.java
+1
-4
IUserQueryLogRepository.java
...n/quantgroup/xyqb/repository/IUserQueryLogRepository.java
+2
-3
IUserRepository.java
...n/java/cn/quantgroup/xyqb/repository/IUserRepository.java
+1
-2
IWeChatInfoRelationRepository.java
...tgroup/xyqb/repository/IWeChatInfoRelationRepository.java
+1
-5
IWeChatUserRepository.java
.../cn/quantgroup/xyqb/repository/IWeChatUserRepository.java
+3
-4
CountDevice.java
...main/java/cn/quantgroup/xyqb/risk/entity/CountDevice.java
+5
-2
LoginInfo.java
src/main/java/cn/quantgroup/xyqb/risk/entity/LoginInfo.java
+1
-2
WhiteList.java
src/main/java/cn/quantgroup/xyqb/risk/entity/WhiteList.java
+1
-2
WhiteListRepository.java
.../quantgroup/xyqb/risk/repository/WhiteListRepository.java
+1
-1
AssentHeader.java
src/main/java/cn/quantgroup/xyqb/security/AssentHeader.java
+0
-2
AuthenticationAdapter.java
...va/cn/quantgroup/xyqb/security/AuthenticationAdapter.java
+1
-4
AuthenticationPrincipal.java
.../cn/quantgroup/xyqb/security/AuthenticationPrincipal.java
+1
-1
AuthorizationPoint.java
.../java/cn/quantgroup/xyqb/security/AuthorizationPoint.java
+5
-1
CustomerAuthenticationManager.java
...antgroup/xyqb/security/CustomerAuthenticationManager.java
+2
-3
HttpAspect.java
src/main/java/cn/quantgroup/xyqb/security/HttpAspect.java
+3
-4
RSADecrypt.java
src/main/java/cn/quantgroup/xyqb/security/RSADecrypt.java
+1
-1
LoginInfoService.java
...ain/java/cn/quantgroup/xyqb/service/LoginInfoService.java
+2
-2
IUserApiService.java
.../java/cn/quantgroup/xyqb/service/api/IUserApiService.java
+0
-1
UserApiServiceImpl.java
.../quantgroup/xyqb/service/api/impl/UserApiServiceImpl.java
+1
-2
IIdCardService.java
.../java/cn/quantgroup/xyqb/service/auth/IIdCardService.java
+0
-1
IdCardServiceImpl.java
.../quantgroup/xyqb/service/auth/impl/IdCardServiceImpl.java
+9
-6
UserAuthorizedServiceImpl.java
...oup/xyqb/service/auth/impl/UserAuthorizedServiceImpl.java
+3
-8
GeetestLib.java
...n/java/cn/quantgroup/xyqb/service/captcha/GeetestLib.java
+4
-5
IGeetestCaptchaService.java
...antgroup/xyqb/service/captcha/IGeetestCaptchaService.java
+0
-1
GeetestCaptchaServiceImpl.java
.../xyqb/service/captcha/impl/GeetestCaptchaServiceImpl.java
+3
-4
GeetestLogServiceImpl.java
...roup/xyqb/service/captcha/impl/GeetestLogServiceImpl.java
+4
-5
QuantgroupCaptchaServiceImpl.java
...qb/service/captcha/impl/QuantgroupCaptchaServiceImpl.java
+7
-8
HttpServiceImpl.java
...cn/quantgroup/xyqb/service/http/impl/HttpServiceImpl.java
+9
-6
MerchantServiceImpl.java
...group/xyqb/service/merchant/impl/MerchantServiceImpl.java
+3
-4
AppletServiceImpl.java
...b/service/middleoffice/applet/impl/AppletServiceImpl.java
+2
-2
IRegisterMqServiceImpl.java
...antgroup/xyqb/service/mq/impl/IRegisterMqServiceImpl.java
+1
-4
LoanVestMqServiceImpl.java
...uantgroup/xyqb/service/mq/impl/LoanVestMqServiceImpl.java
+1
-2
PageServiceImpl.java
...cn/quantgroup/xyqb/service/page/impl/PageServiceImpl.java
+3
-4
IUserDeregisterService.java
...ntgroup/xyqb/service/register/IUserDeregisterService.java
+0
-2
IUserRegisterService.java
...uantgroup/xyqb/service/register/IUserRegisterService.java
+0
-1
IUserDeregisterServiceImpl.java
...yqb/service/register/impl/IUserDeregisterServiceImpl.java
+3
-4
UserRegisterServiceImpl.java
...p/xyqb/service/register/impl/UserRegisterServiceImpl.java
+9
-5
LoginRiskServiceImpl.java
...antgroup/xyqb/service/risk/impl/LoginRiskServiceImpl.java
+1
-2
ISessionService.java
...a/cn/quantgroup/xyqb/service/session/ISessionService.java
+0
-1
UserBtRegisterFill.java
...group/xyqb/service/session/aspect/UserBtRegisterFill.java
+5
-1
SessionServiceImpl.java
...ntgroup/xyqb/service/session/impl/SessionServiceImpl.java
+11
-5
SmsServiceImpl.java
...a/cn/quantgroup/xyqb/service/sms/impl/SmsServiceImpl.java
+1
-2
IAddressService.java
...java/cn/quantgroup/xyqb/service/user/IAddressService.java
+0
-1
IContactService.java
...java/cn/quantgroup/xyqb/service/user/IContactService.java
+0
-2
IOauthClientDetailsService.java
...ntgroup/xyqb/service/user/IOauthClientDetailsService.java
+0
-2
IProductLoginService.java
...cn/quantgroup/xyqb/service/user/IProductLoginService.java
+0
-1
ISmsService.java
...ain/java/cn/quantgroup/xyqb/service/user/ISmsService.java
+6
-3
ITenantService.java
.../java/cn/quantgroup/xyqb/service/user/ITenantService.java
+0
-1
IUserDetailService.java
...a/cn/quantgroup/xyqb/service/user/IUserDetailService.java
+1
-2
IUserExtInfoService.java
.../cn/quantgroup/xyqb/service/user/IUserExtInfoService.java
+0
-3
IUserQueryLogService.java
...cn/quantgroup/xyqb/service/user/IUserQueryLogService.java
+0
-1
IUserService.java
...in/java/cn/quantgroup/xyqb/service/user/IUserService.java
+1
-2
UserCenterService.java
...va/cn/quantgroup/xyqb/service/user/UserCenterService.java
+0
-1
AddressServiceImpl.java
...quantgroup/xyqb/service/user/impl/AddressServiceImpl.java
+1
-4
CleanDataServiceImp.java
...uantgroup/xyqb/service/user/impl/CleanDataServiceImp.java
+8
-9
ContactServiceImpl.java
...quantgroup/xyqb/service/user/impl/ContactServiceImpl.java
+2
-4
CustomerInfoServiceImpl.java
...group/xyqb/service/user/impl/CustomerInfoServiceImpl.java
+0
-2
CustomerLoginServiceImpl.java
...roup/xyqb/service/user/impl/CustomerLoginServiceImpl.java
+0
-3
LkbUserviceImpl.java
...cn/quantgroup/xyqb/service/user/impl/LkbUserviceImpl.java
+2
-3
LockIpv4ServiceImpl.java
...uantgroup/xyqb/service/user/impl/LockIpv4ServiceImpl.java
+2
-5
LoginRecordServiceImpl.java
...tgroup/xyqb/service/user/impl/LoginRecordServiceImpl.java
+1
-2
ModifyPhoneNoServiceImpl.java
...roup/xyqb/service/user/impl/ModifyPhoneNoServiceImpl.java
+8
-7
OauthClientDetailsServiceImpl.java
...xyqb/service/user/impl/OauthClientDetailsServiceImpl.java
+2
-7
OauthLoginInfoServiceImpl.java
...oup/xyqb/service/user/impl/OauthLoginInfoServiceImpl.java
+7
-4
ProductLoginServiceImpl.java
...group/xyqb/service/user/impl/ProductLoginServiceImpl.java
+1
-6
TenantServiceImpl.java
.../quantgroup/xyqb/service/user/impl/TenantServiceImpl.java
+8
-5
UserBtRegisterServiceImpl.java
...oup/xyqb/service/user/impl/UserBtRegisterServiceImpl.java
+3
-5
UserCenterServiceImpl.java
...ntgroup/xyqb/service/user/impl/UserCenterServiceImpl.java
+5
-9
UserDetailServiceImpl.java
...ntgroup/xyqb/service/user/impl/UserDetailServiceImpl.java
+6
-12
UserExtInfoServiceImpl.java
...tgroup/xyqb/service/user/impl/UserExtInfoServiceImpl.java
+2
-13
UserQueryLogServiceImpl.java
...group/xyqb/service/user/impl/UserQueryLogServiceImpl.java
+2
-3
UserServiceImpl.java
...cn/quantgroup/xyqb/service/user/impl/UserServiceImpl.java
+45
-17
UserSpouseServiceImpl.java
...ntgroup/xyqb/service/user/impl/UserSpouseServiceImpl.java
+0
-1
UserDetailVO.java
...java/cn/quantgroup/xyqb/service/user/vo/UserDetailVO.java
+2
-3
IWechatFollowService.java
.../quantgroup/xyqb/service/wechat/IWechatFollowService.java
+0
-2
IWechatService.java
...ava/cn/quantgroup/xyqb/service/wechat/IWechatService.java
+0
-1
WechatFollowServiceImpl.java
...oup/xyqb/service/wechat/impl/WechatFollowServiceImpl.java
+14
-19
WechatServiceImpl.java
...uantgroup/xyqb/service/wechat/impl/WechatServiceImpl.java
+6
-7
XyqbSessionContextHolder.java
.../cn/quantgroup/xyqb/session/XyqbSessionContextHolder.java
+2
-3
AbstractManageableCaptchaService.java
...thirdparty/jcaptcha/AbstractManageableCaptchaService.java
+1
-2
AbstractManageableImageCaptchaService.java
...party/jcaptcha/AbstractManageableImageCaptchaService.java
+0
-1
CustomGimpyFactory.java
...antgroup/xyqb/thirdparty/jcaptcha/CustomGimpyFactory.java
+0
-1
SimpleCaptcha.java
...cn/quantgroup/xyqb/thirdparty/jcaptcha/SimpleCaptcha.java
+1
-2
UroraAuthenticationManager.java
.../cn/quantgroup/xyqb/urora/UroraAuthenticationManager.java
+7
-4
UroraAuthenticationToken.java
...va/cn/quantgroup/xyqb/urora/UroraAuthenticationToken.java
+1
-2
AddressFilter.java
src/main/java/cn/quantgroup/xyqb/util/AddressFilter.java
+4
-5
AesUtil.java
src/main/java/cn/quantgroup/xyqb/util/AesUtil.java
+2
-3
ApplicationContextHolder.java
...ava/cn/quantgroup/xyqb/util/ApplicationContextHolder.java
+1
-2
AtomicSequencer.java
src/main/java/cn/quantgroup/xyqb/util/AtomicSequencer.java
+1
-2
BctyptPasswordUtil.java
...main/java/cn/quantgroup/xyqb/util/BctyptPasswordUtil.java
+1
-2
DateUtils.java
src/main/java/cn/quantgroup/xyqb/util/DateUtils.java
+2
-3
IpUtil.java
src/main/java/cn/quantgroup/xyqb/util/IpUtil.java
+3
-4
JsonUtil.java
src/main/java/cn/quantgroup/xyqb/util/JsonUtil.java
+1
-2
MqUtils.java
src/main/java/cn/quantgroup/xyqb/util/MqUtils.java
+3
-5
PasswordUtil.java
src/main/java/cn/quantgroup/xyqb/util/PasswordUtil.java
+1
-2
RedisLock.java
src/main/java/cn/quantgroup/xyqb/util/RedisLock.java
+1
-2
ServerUtils.java
src/main/java/cn/quantgroup/xyqb/util/ServerUtils.java
+5
-6
ValidationUtil.java
src/main/java/cn/quantgroup/xyqb/util/ValidationUtil.java
+2
-3
Md5Util.java
src/main/java/cn/quantgroup/xyqb/util/encrypt/Md5Util.java
+1
-4
Rsa.java
src/main/java/cn/quantgroup/xyqb/util/encrypt/Rsa.java
+10
-4
ChineseName.java
src/main/java/cn/quantgroup/xyqb/validator/ChineseName.java
+2
-2
ChineseNameValidator.java
...va/cn/quantgroup/xyqb/validator/ChineseNameValidator.java
+0
-1
IdCard.java
src/main/java/cn/quantgroup/xyqb/validator/IdCard.java
+2
-2
IdCardValidator.java
...in/java/cn/quantgroup/xyqb/validator/IdCardValidator.java
+1
-2
DeregisterTimeJobHandler.java
...a/cn/quantgroup/xyqb/xxlJob/DeregisterTimeJobHandler.java
+0
-1
GeetestLogTimeJobHandler.java
...a/cn/quantgroup/xyqb/xxlJob/GeetestLogTimeJobHandler.java
+0
-1
XxlJobConfig.java
src/main/java/cn/quantgroup/xyqb/xxlJob/XxlJobConfig.java
+1
-1
Enums.java
src/main/java/springfox/documentation/schema/Enums.java
+0
-106
persistence.xml
src/main/resources/META-INF/persistence.xml
+1
-0
DemoTest.java
src/test/java/DemoTest.java
+9
-1
TestApp.java
src/test/java/TestApp.java
+1
-2
Jdk8Test.java
src/test/java/common/Jdk8Test.java
+3
-5
JsonTest.java
src/test/java/common/JsonTest.java
+4
-7
ValidationUtilTest.java
src/test/java/common/ValidationUtilTest.java
+1
-2
DynamicTest.java
src/test/java/demo/DynamicTest.java
+16
-7
MockMvcTest.java
src/test/java/demo/MockMvcTest.java
+6
-7
MvcTest.java
src/test/java/demo/MvcTest.java
+3
-4
ParametersJunit4Test.java
src/test/java/demo/ParametersJunit4Test.java
+2
-3
ParametersJunit5Test.java
src/test/java/demo/ParametersJunit5Test.java
+2
-2
RepsitoryJpaTest.java
src/test/java/demo/RepsitoryJpaTest.java
+4
-5
RepsitoryTest.java
src/test/java/demo/RepsitoryTest.java
+3
-4
ServiceTest.java
src/test/java/demo/ServiceTest.java
+3
-4
WebTest.java
src/test/java/demo/WebTest.java
+1
-2
UserLoginTest.java
src/test/java/login/UserLoginTest.java
+4
-5
UserAuthorizedRepsitoryTest.java
src/test/java/repsitory/UserAuthorizedRepsitoryTest.java
+3
-4
GeetestCaptchaServiceTest.java
src/test/java/service/GeetestCaptchaServiceTest.java
+2
-3
QuantgroupCaptchaServiceTest.java
src/test/java/service/QuantgroupCaptchaServiceTest.java
+2
-3
UserAuthorizedServiceTest.java
src/test/java/service/UserAuthorizedServiceTest.java
+4
-5
UserServiceTest.java
src/test/java/service/UserServiceTest.java
+4
-7
UserAuthorizedControllerTest.java
src/test/java/web/UserAuthorizedControllerTest.java
+2
-3
WechatTest.java
src/test/java/wechat/WechatTest.java
+1
-5
No files found.
pom.xml
View file @
3c8b53b3
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns=
"http://maven.apache.org/POM/4.0.0"
<project
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns=
"http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<parent>
...
@@ -45,12 +46,7 @@
...
@@ -45,12 +46,7 @@
<artifactId>
SensorsAnalyticsSDK
</artifactId>
<artifactId>
SensorsAnalyticsSDK
</artifactId>
<version>
3.2.0
</version>
<version>
3.2.0
</version>
</dependency>
</dependency>
<!-- swagger2 start -->
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<version>
RELEASE
</version>
</dependency>
<dependency>
<dependency>
<groupId>
io.swagger
</groupId>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-core
</artifactId>
<artifactId>
swagger-core
</artifactId>
...
@@ -153,16 +149,6 @@
...
@@ -153,16 +149,6 @@
<groupId>
org.hibernate
</groupId>
<groupId>
org.hibernate
</groupId>
<artifactId>
hibernate-core
</artifactId>
<artifactId>
hibernate-core
</artifactId>
<version>
5.0.4.Final
</version>
<version>
5.0.4.Final
</version>
<exclusions>
<exclusion>
<groupId>
commons-collections
</groupId>
<artifactId>
commons-collections
</artifactId>
</exclusion>
<exclusion>
<artifactId>
xml-apis
</artifactId>
<groupId>
xml-apis
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.hibernate
</groupId>
<groupId>
org.hibernate
</groupId>
...
@@ -253,7 +239,7 @@
...
@@ -253,7 +239,7 @@
<dependency>
<dependency>
<groupId>
com.zaxxer
</groupId>
<groupId>
com.zaxxer
</groupId>
<artifactId>
HikariCP
</artifactId>
<artifactId>
HikariCP
</artifactId>
<version>
2.5.1
</version>
<version>
2.7.9
</version>
</dependency>
</dependency>
<dependency>
<dependency>
...
@@ -289,28 +275,11 @@
...
@@ -289,28 +275,11 @@
<dependency>
<dependency>
<groupId>
cn.quantgroup
</groupId>
<groupId>
cn.quantgroup
</groupId>
<artifactId>
commons-spring
</artifactId>
<artifactId>
commons-spring
</artifactId>
<version>
0.2.6
</version>
</dependency>
<dependency>
<groupId>
cn.quantgroup
</groupId>
<artifactId>
commons-core
</artifactId>
<version>
0.2.6
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.quantgroup
</groupId>
<groupId>
cn.quantgroup
</groupId>
<artifactId>
shutdown-spring-boot-starter
</artifactId>
<artifactId>
shutdown-spring-boot-starter
</artifactId>
<version>
0.2.6
</version>
</dependency>
</dependency>
<!-- <dependency>-->
<!-- <groupId>cn.quantgroup</groupId>-->
<!-- <artifactId>brave-spring-boot-starter</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>cn.quantgroup</groupId>-->
<!-- <artifactId>enoch-agent-spring-boot-starter</artifactId>-->
<!-- </dependency>-->
<!--logback使用1.1.4版本-->
<dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
<artifactId>
logback-classic
</artifactId>
...
@@ -327,6 +296,7 @@
...
@@ -327,6 +296,7 @@
<version>
1.1.6-SNAPSHOT
</version>
<version>
1.1.6-SNAPSHOT
</version>
</dependency>
</dependency>
<!-- 兼容旧 Spring Session 配置-->
<!-- 兼容旧 Spring Session 配置-->
<dependency>
<dependency>
<groupId>
org.springframework.security
</groupId>
<groupId>
org.springframework.security
</groupId>
...
...
src/main/java/cn/quantgroup/tech/db/DynamicDataSourceRegister.java
deleted
100644 → 0
View file @
ae057614
package
cn
.
quantgroup
.
tech
.
db
;
import
com.zaxxer.hikari.HikariConfig
;
import
com.zaxxer.hikari.HikariDataSource
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.MutablePropertyValues
;
import
org.springframework.beans.PropertyValues
;
import
org.springframework.beans.factory.support.BeanDefinitionRegistry
;
import
org.springframework.beans.factory.support.GenericBeanDefinition
;
import
org.springframework.boot.bind.RelaxedDataBinder
;
import
org.springframework.boot.bind.RelaxedPropertyResolver
;
import
org.springframework.context.EnvironmentAware
;
import
org.springframework.context.annotation.ImportBeanDefinitionRegistrar
;
import
org.springframework.core.convert.ConversionService
;
import
org.springframework.core.convert.support.DefaultConversionService
;
import
org.springframework.core.env.Environment
;
import
org.springframework.core.type.AnnotationMetadata
;
import
javax.sql.DataSource
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
public
class
DynamicDataSourceRegister
implements
ImportBeanDefinitionRegistrar
,
EnvironmentAware
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
cn
.
quantgroup
.
tech
.
db
.
DynamicDataSourceRegister
.
class
);
private
ConversionService
conversionService
=
new
DefaultConversionService
();
private
static
final
String
DATASOURCE_TYPE_DEFAULT
=
"com.zaxxer.hikari.HikariDataSource"
;
private
static
final
String
DATABASE_TYPE_DEFAULT
=
"com.mysql.jdbc.Driver"
;
private
static
final
String
MASTER_PREFIX
=
"spring.datasource."
;
private
static
final
String
SLAVE_PREFIX
=
"slave.datasource."
;
private
DataSource
masterDataSource
;
private
DataSource
slaveDataSource
;
public
DynamicDataSourceRegister
()
{
}
public
void
setEnvironment
(
Environment
environment
)
{
this
.
masterDataSource
=
this
.
buildDataSource
(
this
.
initDataSource
(
environment
,
"spring.datasource."
));
this
.
dataBinder
(
this
.
masterDataSource
,
environment
,
"spring.datasource."
);
this
.
slaveDataSource
=
this
.
buildDataSource
(
this
.
initDataSource
(
environment
,
"slave.datasource."
));
this
.
dataBinder
(
this
.
slaveDataSource
,
environment
,
"slave.datasource."
);
}
public
void
registerBeanDefinitions
(
AnnotationMetadata
annotationMetadata
,
BeanDefinitionRegistry
beanDefinitionRegistry
)
{
Map
<
Object
,
Object
>
targetDataSources
=
new
HashMap
(
1
);
targetDataSources
.
put
(
DSType
.
MASTER
,
this
.
masterDataSource
);
DynamicDataSourceContextHolder
.
dataSourceIds
.
add
(
DSType
.
MASTER
);
targetDataSources
.
put
(
DSType
.
SLAVE
,
this
.
slaveDataSource
);
DynamicDataSourceContextHolder
.
dataSourceIds
.
add
(
DSType
.
SLAVE
);
GenericBeanDefinition
beanDefinition
=
new
GenericBeanDefinition
();
beanDefinition
.
setBeanClass
(
DynamicDataSource
.
class
);
beanDefinition
.
setSynthetic
(
true
);
MutablePropertyValues
mpv
=
beanDefinition
.
getPropertyValues
();
mpv
.
addPropertyValue
(
"defaultTargetDataSource"
,
this
.
masterDataSource
);
mpv
.
addPropertyValue
(
"targetDataSources"
,
targetDataSources
);
beanDefinitionRegistry
.
registerBeanDefinition
(
"dataSource"
,
beanDefinition
);
log
.
info
(
"Dynamic DataSource Registry Success"
);
}
private
Map
<
String
,
Object
>
initDataSource
(
Environment
env
,
String
prefix
)
{
RelaxedPropertyResolver
propertyResolver
=
new
RelaxedPropertyResolver
(
env
,
prefix
);
Map
<
String
,
Object
>
dsMap
=
new
HashMap
(
1
);
dsMap
.
put
(
"type"
,
propertyResolver
.
getProperty
(
"type"
,
"com.zaxxer.hikari.HikariDataSource"
));
dsMap
.
put
(
"driver-class-name"
,
propertyResolver
.
getProperty
(
"driver-class-name"
,
"com.mysql.jdbc.Driver"
));
dsMap
.
put
(
"url"
,
propertyResolver
.
getProperty
(
"url"
));
dsMap
.
put
(
"username"
,
propertyResolver
.
getProperty
(
"username"
));
dsMap
.
put
(
"password"
,
propertyResolver
.
getProperty
(
"password"
));
dsMap
.
put
(
"maxPoolSize"
,
propertyResolver
.
getProperty
(
"maxPoolSize"
));
return
dsMap
;
}
private
void
dataBinder
(
DataSource
dataSource
,
Environment
env
,
String
prefix
)
{
RelaxedDataBinder
dataBinder
=
new
RelaxedDataBinder
(
dataSource
);
dataBinder
.
setConversionService
(
this
.
conversionService
);
dataBinder
.
setIgnoreNestedProperties
(
false
);
dataBinder
.
setIgnoreInvalidFields
(
false
);
dataBinder
.
setIgnoreUnknownFields
(
true
);
Map
<
String
,
Object
>
rpr
=
(
new
RelaxedPropertyResolver
(
env
,
prefix
)).
getSubProperties
(
""
);
Map
<
String
,
Object
>
values
=
new
HashMap
(
rpr
);
values
.
remove
(
"type"
);
values
.
remove
(
"driver-class-name"
);
values
.
remove
(
"url"
);
values
.
remove
(
"username"
);
values
.
remove
(
"password"
);
PropertyValues
dataSourcePropertyValues
=
new
MutablePropertyValues
(
values
);
dataBinder
.
bind
(
dataSourcePropertyValues
);
}
private
DataSource
buildDataSource
(
Map
<
String
,
Object
>
dsMap
)
{
try
{
String
type
=
dsMap
.
get
(
"type"
).
toString
();
Class
<?
extends
DataSource
>
dataSourceType
=
(
Class
<?
extends
DataSource
>)
Class
.
forName
(
type
);
String
driverClassName
=
dsMap
.
get
(
"driver-class-name"
).
toString
();
String
url
=
dsMap
.
get
(
"url"
).
toString
();
String
username
=
dsMap
.
get
(
"username"
).
toString
();
String
password
=
dsMap
.
get
(
"password"
).
toString
();
Integer
maxPoolSize
=
Integer
.
parseInt
(
dsMap
.
get
(
"maxPoolSize"
).
toString
());
HikariConfig
config
=
new
HikariConfig
();
config
.
setJdbcUrl
(
url
);
config
.
setPassword
(
password
);
config
.
setUsername
(
username
);
// 连接池中允许的最大连接数。缺省值:10;推荐的公式:((core_count * 2) + effective_spindle_count)
//线上是双核机器,100已经非常多。。。。
config
.
setMaximumPoolSize
(
maxPoolSize
);
config
.
setMinimumIdle
(
20
);
//个连接idle状态的最大时长(毫秒),超时则被释放(retired),缺省:10分钟
config
.
setIdleTimeout
(
60000
);
//等待连接池分配连接的最大时长(毫秒),超过这个时长还没可用的连接则发生SQLException, 缺省:30秒
config
.
setConnectionTimeout
(
30000
);
config
.
setValidationTimeout
(
3000
);
//个连接的生命时长(毫秒),超时而且没被使用则被释放(retired),缺省:30分钟,建议设置比数据库超时时长少30秒,
// 参考MySQL wait_timeout参数(show variables like '%timeout%';)
config
.
setMaxLifetime
(
TimeUnit
.
HOURS
.
toMillis
(
7
));
config
.
addDataSourceProperty
(
"cachePrepStmts"
,
"true"
);
config
.
addDataSourceProperty
(
"prepStmtCacheSize"
,
"250"
);
config
.
addDataSourceProperty
(
"prepStmtCacheSqlLimit"
,
"2048"
);
HikariDataSource
datasource
=
new
HikariDataSource
(
config
);
// DataSourceBuilder factory = DataSourceBuilder.create().driverClassName(driverClassName).url(url).username(username).password(password).type(dataSourceType);
return
datasource
;
}
catch
(
ClassNotFoundException
var9
)
{
log
.
error
(
"找不到数据源..你没配置hikari的包么? :{}"
,
var9
.
getMessage
());
return
null
;
}
}
}
\ No newline at end of file
src/main/java/cn/quantgroup/xyqb/Bootstrap.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
;
package
cn
.
quantgroup
.
xyqb
;
import
cn.quantgroup.xyqb.config.SequencerProperties
;
import
cn.quantgroup.xyqb.config.SequencerProperties
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
;
...
@@ -10,10 +11,6 @@ import org.springframework.context.annotation.ComponentScan;
...
@@ -10,10 +11,6 @@ import org.springframework.context.annotation.ComponentScan;
import
org.springframework.context.annotation.EnableAspectJAutoProxy
;
import
org.springframework.context.annotation.EnableAspectJAutoProxy
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
lombok.extern.slf4j.Slf4j
;
import
cn.quantgroup.tech.db.EnableDynamicDataSource
;
/**
/**
* @author Anonymous
* @author Anonymous
* 本地启动 :
* 本地启动 :
...
@@ -26,7 +23,6 @@ import cn.quantgroup.tech.db.EnableDynamicDataSource;
...
@@ -26,7 +23,6 @@ import cn.quantgroup.tech.db.EnableDynamicDataSource;
@EnableAsync
@EnableAsync
@EnableAspectJAutoProxy
@EnableAspectJAutoProxy
@SpringBootApplication
(
exclude
=
{
DataSourceAutoConfiguration
.
class
})
@SpringBootApplication
(
exclude
=
{
DataSourceAutoConfiguration
.
class
})
@EnableDynamicDataSource
@EnableConfigurationProperties
({
SequencerProperties
.
class
})
@EnableConfigurationProperties
({
SequencerProperties
.
class
})
public
class
Bootstrap
{
public
class
Bootstrap
{
...
...
src/main/java/cn/quantgroup/xyqb/aspect/accessable/IpValidateAdvisor.java
View file @
3c8b53b3
...
@@ -2,6 +2,7 @@ package cn.quantgroup.xyqb.aspect.accessable;
...
@@ -2,6 +2,7 @@ package cn.quantgroup.xyqb.aspect.accessable;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Around
;
...
@@ -11,8 +12,6 @@ import org.springframework.stereotype.Component;
...
@@ -11,8 +12,6 @@ import org.springframework.stereotype.Component;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
/**
/**
* IP白名单检验
* IP白名单检验
*
*
...
...
src/main/java/cn/quantgroup/xyqb/aspect/accessable/IpValidator.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
aspect
.
accessable
;
package
cn
.
quantgroup
.
xyqb
.
aspect
.
accessable
;
import
java.lang.annotation.*
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
/**
* Ip白名单检验标记
* Ip白名单检验标记
...
...
src/main/java/cn/quantgroup/xyqb/aspect/captcha/CaptchaFiniteValidateAdvisor.java
View file @
3c8b53b3
...
@@ -7,6 +7,12 @@ import cn.quantgroup.xyqb.thirdparty.jcaptcha.AbstractManageableImageCaptchaServ
...
@@ -7,6 +7,12 @@ import cn.quantgroup.xyqb.thirdparty.jcaptcha.AbstractManageableImageCaptchaServ
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
java.nio.charset.Charset
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Optional
;
import
java.util.UUID
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -14,8 +20,6 @@ import org.aspectj.lang.ProceedingJoinPoint;
...
@@ -14,8 +20,6 @@ import org.aspectj.lang.ProceedingJoinPoint;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Aspect
;
import
org.aspectj.lang.annotation.Aspect
;
import
org.aspectj.lang.annotation.Pointcut
;
import
org.aspectj.lang.annotation.Pointcut
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
...
@@ -24,14 +28,6 @@ import org.springframework.stereotype.Component;
...
@@ -24,14 +28,6 @@ import org.springframework.stereotype.Component;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
import
java.nio.charset.Charset
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Optional
;
import
java.util.UUID
;
import
java.util.concurrent.TimeUnit
;
/**
/**
* 限次图形验证码校验标记
* 限次图形验证码校验标记
*
*
...
...
src/main/java/cn/quantgroup/xyqb/aspect/captcha/CaptchaFiniteValidator.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
aspect
.
captcha
;
package
cn
.
quantgroup
.
xyqb
.
aspect
.
captcha
;
import
java.lang.annotation.*
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
/**
* 限次的图形验证码校验标记
* 限次的图形验证码校验标记
...
...
src/main/java/cn/quantgroup/xyqb/aspect/captcha/CaptchaNewValidateAdvisor.java
View file @
3c8b53b3
...
@@ -8,6 +8,12 @@ import cn.quantgroup.xyqb.service.captcha.IGeetestCaptchaService;
...
@@ -8,6 +8,12 @@ import cn.quantgroup.xyqb.service.captcha.IGeetestCaptchaService;
import
cn.quantgroup.xyqb.service.captcha.IGeetestLogService
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestLogService
;
import
cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService
;
import
cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Optional
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.ProceedingJoinPoint
;
...
@@ -18,13 +24,6 @@ import org.springframework.stereotype.Component;
...
@@ -18,13 +24,6 @@ import org.springframework.stereotype.Component;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Optional
;
/**
/**
* @author xufei on 2018/1/30.
* @author xufei on 2018/1/30.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/aspect/captcha/CaptchaNewValidator.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
aspect
.
captcha
;
package
cn
.
quantgroup
.
xyqb
.
aspect
.
captcha
;
import
java.lang.annotation.*
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
/**
* @author xufei on 2018/1/30.
* @author xufei on 2018/1/30.
...
...
src/main/java/cn/quantgroup/xyqb/aspect/captcha/CaptchaValidateAdvisor.java
View file @
3c8b53b3
...
@@ -5,14 +5,16 @@ import cn.quantgroup.xyqb.model.JsonResult;
...
@@ -5,14 +5,16 @@ import cn.quantgroup.xyqb.model.JsonResult;
import
cn.quantgroup.xyqb.thirdparty.jcaptcha.AbstractManageableImageCaptchaService
;
import
cn.quantgroup.xyqb.thirdparty.jcaptcha.AbstractManageableImageCaptchaService
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
java.nio.charset.Charset
;
import
java.util.Optional
;
import
java.util.UUID
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Aspect
;
import
org.aspectj.lang.annotation.Aspect
;
import
org.aspectj.lang.annotation.Pointcut
;
import
org.aspectj.lang.annotation.Pointcut
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
...
@@ -21,11 +23,6 @@ import org.springframework.stereotype.Component;
...
@@ -21,11 +23,6 @@ import org.springframework.stereotype.Component;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
import
java.nio.charset.Charset
;
import
java.util.Optional
;
import
java.util.UUID
;
/**
/**
* 类名称:CaptchaValidateAdvisor
* 类名称:CaptchaValidateAdvisor
* 类描述:
* 类描述:
...
...
src/main/java/cn/quantgroup/xyqb/aspect/captcha/CaptchaValidator.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
aspect
.
captcha
;
package
cn
.
quantgroup
.
xyqb
.
aspect
.
captcha
;
import
java.lang.annotation.*
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
/**
* 类名称:CaptchaValidate
* 类名称:CaptchaValidate
...
...
src/main/java/cn/quantgroup/xyqb/aspect/captcha/LoginInterceptorAspect.java
View file @
3c8b53b3
...
@@ -11,6 +11,9 @@ import cn.quantgroup.xyqb.risk.repository.WhiteListRepository;
...
@@ -11,6 +11,9 @@ import cn.quantgroup.xyqb.risk.repository.WhiteListRepository;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
java.util.Map
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Around
;
...
@@ -21,10 +24,6 @@ import org.springframework.stereotype.Component;
...
@@ -21,10 +24,6 @@ import org.springframework.stereotype.Component;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Map
;
/**
/**
* @author :dongjianhua
* @author :dongjianhua
* @date :Created in 2020/11/20 14:55
* @date :Created in 2020/11/20 14:55
...
...
src/main/java/cn/quantgroup/xyqb/aspect/forbidden/AccessForbiddenAspect.java
View file @
3c8b53b3
...
@@ -2,6 +2,7 @@ package cn.quantgroup.xyqb.aspect.forbidden;
...
@@ -2,6 +2,7 @@ package cn.quantgroup.xyqb.aspect.forbidden;
import
cn.quantgroup.xyqb.exception.AccessForbiddenException
;
import
cn.quantgroup.xyqb.exception.AccessForbiddenException
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.aspectj.lang.annotation.Aspect
;
import
org.aspectj.lang.annotation.Aspect
;
import
org.aspectj.lang.annotation.Before
;
import
org.aspectj.lang.annotation.Before
;
...
@@ -10,8 +11,6 @@ import org.springframework.stereotype.Component;
...
@@ -10,8 +11,6 @@ import org.springframework.stereotype.Component;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
@Aspect
@Aspect
@Component
@Component
@Slf4j
@Slf4j
...
...
src/main/java/cn/quantgroup/xyqb/aspect/limit/AccessLimitAspect.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
aspect
.
limit
;
package
cn
.
quantgroup
.
xyqb
.
aspect
.
limit
;
import
java.util.concurrent.TimeUnit
;
import
javax.annotation.Resource
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Aspect
;
import
org.aspectj.lang.annotation.Aspect
;
...
@@ -7,9 +9,6 @@ import org.aspectj.lang.reflect.MethodSignature;
...
@@ -7,9 +9,6 @@ import org.aspectj.lang.reflect.MethodSignature;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
import
java.util.concurrent.TimeUnit
;
@Aspect
@Aspect
@Component
@Component
public
class
AccessLimitAspect
{
public
class
AccessLimitAspect
{
...
...
src/main/java/cn/quantgroup/xyqb/aspect/limit/PasswordFreeAccessValidateAdvisor.java
View file @
3c8b53b3
...
@@ -8,6 +8,9 @@ import cn.quantgroup.xyqb.model.session.SessionStruct;
...
@@ -8,6 +8,9 @@ import cn.quantgroup.xyqb.model.session.SessionStruct;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
java.util.Objects
;
import
java.util.Set
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.ProceedingJoinPoint
;
...
@@ -18,10 +21,6 @@ import org.springframework.stereotype.Component;
...
@@ -18,10 +21,6 @@ import org.springframework.stereotype.Component;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Objects
;
import
java.util.Set
;
/**
/**
* 免密访问校验切面
* 免密访问校验切面
*
*
...
...
src/main/java/cn/quantgroup/xyqb/aspect/limit/PasswordFreeAccessValidator.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
aspect
.
limit
;
package
cn
.
quantgroup
.
xyqb
.
aspect
.
limit
;
import
java.lang.annotation.*
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
/**
* 免密访问校验标记
* 免密访问校验标记
...
...
src/main/java/cn/quantgroup/xyqb/aspect/lock/PasswordErrorFiniteValidateAdvisor.java
View file @
3c8b53b3
...
@@ -4,14 +4,14 @@ package cn.quantgroup.xyqb.aspect.lock;
...
@@ -4,14 +4,14 @@ package cn.quantgroup.xyqb.aspect.lock;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
java.util.Objects
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Aspect
;
import
org.aspectj.lang.annotation.Aspect
;
import
org.aspectj.lang.annotation.Pointcut
;
import
org.aspectj.lang.annotation.Pointcut
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
...
@@ -19,9 +19,6 @@ import org.springframework.stereotype.Component;
...
@@ -19,9 +19,6 @@ import org.springframework.stereotype.Component;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Objects
;
/**
/**
* 密码错误限次的校验
* 密码错误限次的校验
*
*
...
...
src/main/java/cn/quantgroup/xyqb/aspect/lock/PasswordErrorFiniteValidator.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
aspect
.
lock
;
package
cn
.
quantgroup
.
xyqb
.
aspect
.
lock
;
import
java.lang.annotation.*
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
/**
* 密码错误限次的校验标记
* 密码错误限次的校验标记
...
...
src/main/java/cn/quantgroup/xyqb/aspect/lock/RedisLock.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
aspect
.
lock
;
package
cn
.
quantgroup
.
xyqb
.
aspect
.
lock
;
import
java.lang.annotation.*
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
/**
* 用redis进行锁<br/>
* 用redis进行锁<br/>
...
...
src/main/java/cn/quantgroup/xyqb/aspect/lock/RedisLockAspect.java
View file @
3c8b53b3
...
@@ -2,6 +2,7 @@ package cn.quantgroup.xyqb.aspect.lock;
...
@@ -2,6 +2,7 @@ package cn.quantgroup.xyqb.aspect.lock;
import
cn.quantgroup.xyqb.exception.ResubmissionException
;
import
cn.quantgroup.xyqb.exception.ResubmissionException
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
java.lang.reflect.Method
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.digest.DigestUtils
;
import
org.apache.commons.codec.digest.DigestUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -18,8 +19,6 @@ import org.springframework.expression.ExpressionException;
...
@@ -18,8 +19,6 @@ import org.springframework.expression.ExpressionException;
import
org.springframework.expression.spel.standard.SpelExpressionParser
;
import
org.springframework.expression.spel.standard.SpelExpressionParser
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.lang.reflect.Method
;
/**
/**
* Redis Lock Aspect
* Redis Lock Aspect
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/aspect/logcaller/LogCallHttpAspect.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
aspect
.
logcaller
;
package
cn
.
quantgroup
.
xyqb
.
aspect
.
logcaller
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.google.common.base.Stopwatch
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Aspect
;
import
org.aspectj.lang.annotation.Aspect
;
...
@@ -15,12 +17,6 @@ import org.springframework.stereotype.Component;
...
@@ -15,12 +17,6 @@ import org.springframework.stereotype.Component;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.google.common.base.Stopwatch
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
lombok.extern.slf4j.Slf4j
;
/**
/**
* 调用者记录
* 调用者记录
* Created by Administrator on 2017/5/15.
* Created by Administrator on 2017/5/15.
...
...
src/main/java/cn/quantgroup/xyqb/config/AuthenticationConfiguration.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
config
;
package
cn
.
quantgroup
.
xyqb
.
config
;
import
static
cn
.
quantgroup
.
xyqb
.
security
.
SecurityConstant
.
PROPERTY_PREFIX
;
import
cn.quantgroup.xyqb.security.AuthenticationAdapter
;
import
cn.quantgroup.xyqb.security.AuthenticationAdapter
;
import
cn.quantgroup.xyqb.security.AuthenticationPrincipal
;
import
cn.quantgroup.xyqb.security.AuthenticationPrincipal
;
import
cn.quantgroup.xyqb.security.CustomerAuthenticationManager
;
import
cn.quantgroup.xyqb.security.CustomerAuthenticationManager
;
import
cn.quantgroup.xyqb.urora.UroraAuthenticationManager
;
import
cn.quantgroup.xyqb.urora.UroraAuthenticationManager
;
import
java.util.Map
;
import
java.util.Properties
;
import
java.util.Set
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
...
@@ -12,12 +17,6 @@ import org.springframework.context.annotation.Configuration;
...
@@ -12,12 +17,6 @@ import org.springframework.context.annotation.Configuration;
import
org.springframework.http.client.SimpleClientHttpRequestFactory
;
import
org.springframework.http.client.SimpleClientHttpRequestFactory
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
java.util.Map
;
import
java.util.Properties
;
import
java.util.Set
;
import
static
cn
.
quantgroup
.
xyqb
.
security
.
SecurityConstant
.
PROPERTY_PREFIX
;
/**
/**
* Created by Administrator on 2021/7/1 0001.
* Created by Administrator on 2021/7/1 0001.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/config/AuthenticationConfigurationProperties.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
config
;
package
cn
.
quantgroup
.
xyqb
.
config
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
/**
/**
* Created by Administrator on 2021/7/1 0001.
* Created by Administrator on 2021/7/1 0001.
...
...
src/main/java/cn/quantgroup/xyqb/config/captcha/CustomCaptchaEngine.java
View file @
3c8b53b3
...
@@ -18,8 +18,8 @@ import com.octo.captcha.component.image.wordtoimage.WordToImage;
...
@@ -18,8 +18,8 @@ import com.octo.captcha.component.image.wordtoimage.WordToImage;
import
com.octo.captcha.component.word.wordgenerator.RandomWordGenerator
;
import
com.octo.captcha.component.word.wordgenerator.RandomWordGenerator
;
import
com.octo.captcha.component.word.wordgenerator.WordGenerator
;
import
com.octo.captcha.component.word.wordgenerator.WordGenerator
;
import
com.octo.captcha.engine.image.ListImageCaptchaEngine
;
import
com.octo.captcha.engine.image.ListImageCaptchaEngine
;
import
java.awt.Color
;
import
java.awt.
*
;
import
java.awt.
Font
;
import
java.awt.image.ImageFilter
;
import
java.awt.image.ImageFilter
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/config/captcha/CustomCaptchaService.java
View file @
3c8b53b3
...
@@ -5,11 +5,10 @@ import com.octo.captcha.Captcha;
...
@@ -5,11 +5,10 @@ import com.octo.captcha.Captcha;
import
com.octo.captcha.engine.CaptchaEngine
;
import
com.octo.captcha.engine.CaptchaEngine
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
com.octo.captcha.service.captchastore.CaptchaStore
;
import
com.octo.captcha.service.captchastore.CaptchaStore
;
import
java.util.Locale
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
java.util.Locale
;
/**
/**
* 类名称:CustomCaptchaService
* 类名称:CustomCaptchaService
* 类描述:自定义的验证马实现服务
* 类描述:自定义的验证马实现服务
...
...
src/main/java/cn/quantgroup/xyqb/config/captcha/RedisCaptchaStore.java
View file @
3c8b53b3
...
@@ -5,15 +5,12 @@ import cn.quantgroup.xyqb.thirdparty.jcaptcha.SimpleCaptcha;
...
@@ -5,15 +5,12 @@ import cn.quantgroup.xyqb.thirdparty.jcaptcha.SimpleCaptcha;
import
com.octo.captcha.Captcha
;
import
com.octo.captcha.Captcha
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
com.octo.captcha.service.captchastore.CaptchaStore
;
import
com.octo.captcha.service.captchastore.CaptchaStore
;
import
lombok.extern.slf4j.Slf4j
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.Locale
;
import
java.util.Locale
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.data.redis.core.RedisTemplate
;
/**
/**
* 类名称:RedisCaptchaStore
* 类名称:RedisCaptchaStore
...
...
src/main/java/cn/quantgroup/xyqb/config/data/JpaConfig.java
View file @
3c8b53b3
...
@@ -4,7 +4,14 @@ package cn.quantgroup.xyqb.config.data;
...
@@ -4,7 +4,14 @@ package cn.quantgroup.xyqb.config.data;
* Created by Miraculous on 2016/11/16.
* Created by Miraculous on 2016/11/16.
*/
*/
import
com.zaxxer.hikari.HikariConfig
;
import
com.zaxxer.hikari.HikariDataSource
;
import
java.util.Properties
;
import
javax.persistence.EntityManagerFactory
;
import
javax.sql.DataSource
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.DependsOn
;
import
org.springframework.context.annotation.DependsOn
;
...
@@ -19,10 +26,6 @@ import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
...
@@ -19,10 +26,6 @@ import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
import
org.springframework.transaction.PlatformTransactionManager
;
import
org.springframework.transaction.PlatformTransactionManager
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
javax.persistence.EntityManagerFactory
;
import
javax.sql.DataSource
;
import
java.util.Properties
;
/**
/**
* Created by Miraculous on 2016/11/14.
* Created by Miraculous on 2016/11/14.
*/
*/
...
@@ -47,12 +50,12 @@ public class JpaConfig {
...
@@ -47,12 +50,12 @@ public class JpaConfig {
private
Integer
minPoolSize
;
private
Integer
minPoolSize
;
@Primary
@Primary
@Bean
@Bean
@DependsOn
(
value
=
"dataSource"
)
@DependsOn
(
value
=
"data
base
Source"
)
public
EntityManagerFactory
entityManagerFactory
(
DataSource
dataSource
)
{
public
EntityManagerFactory
entityManagerFactory
(
@Qualifier
(
"databaseSource"
)
DataSource
dataSource
)
{
LocalContainerEntityManagerFactoryBean
entityManager
=
new
LocalContainerEntityManagerFactoryBean
();
LocalContainerEntityManagerFactoryBean
entityManager
=
new
LocalContainerEntityManagerFactoryBean
();
entityManager
.
setDataSource
(
dataSource
);
entityManager
.
setDataSource
(
dataSource
);
entityManager
.
setPackagesToScan
(
"cn.quantgroup.xyqb"
);
entityManager
.
setPackagesToScan
(
"cn.quantgroup.xyqb"
);
entityManager
.
setPersistenceUnitName
(
"dataSource"
);
entityManager
.
setPersistenceUnitName
(
"data
base
Source"
);
Properties
properties
=
new
Properties
();
Properties
properties
=
new
Properties
();
properties
.
put
(
"hibernate.jdbc.batch_size"
,
30
);
properties
.
put
(
"hibernate.jdbc.batch_size"
,
30
);
properties
.
put
(
"hibernate.order_inserts"
,
true
);
properties
.
put
(
"hibernate.order_inserts"
,
true
);
...
@@ -74,6 +77,7 @@ public class JpaConfig {
...
@@ -74,6 +77,7 @@ public class JpaConfig {
return
hibernateJpaVendorAdapter
;
return
hibernateJpaVendorAdapter
;
}
}
@Primary
@Primary
@Bean
@Bean
public
PlatformTransactionManager
transactionManager
(
EntityManagerFactory
entityManagerFactory
)
{
public
PlatformTransactionManager
transactionManager
(
EntityManagerFactory
entityManagerFactory
)
{
...
@@ -84,11 +88,29 @@ public class JpaConfig {
...
@@ -84,11 +88,29 @@ public class JpaConfig {
@Primary
@Primary
@Bean
@Bean
@DependsOn
(
value
=
"dataSource"
)
@DependsOn
(
value
=
"data
base
Source"
)
public
JdbcTemplate
jdbcTemplate
(
DataSource
dataSource
){
public
JdbcTemplate
jdbcTemplate
(
@Qualifier
(
"databaseSource"
)
DataSource
dataSource
){
JdbcTemplate
jdbcTemplate
=
new
JdbcTemplate
();
JdbcTemplate
jdbcTemplate
=
new
JdbcTemplate
();
jdbcTemplate
.
setDataSource
(
dataSource
);
jdbcTemplate
.
setDataSource
(
dataSource
);
return
jdbcTemplate
;
return
jdbcTemplate
;
}
}
@Bean
(
name
=
"databaseSource"
)
@Primary
public
DataSource
databaseSource
()
{
Properties
properties
=
new
Properties
();
properties
.
setProperty
(
"cachePrepStmts"
,
"true"
);
properties
.
setProperty
(
"prepStmtCacheSize"
,
"250"
);
properties
.
setProperty
(
"prepStmtCacheSqlLimit"
,
"2048"
);
HikariConfig
config
=
new
HikariConfig
();
config
.
setJdbcUrl
(
xyqbJdbcUrl
);
config
.
setPassword
(
password
);
config
.
setUsername
(
user
);
config
.
setMaximumPoolSize
(
maxPoolSize
);
config
.
setMinimumIdle
(
20
);
config
.
setDataSourceProperties
(
properties
);
return
new
HikariDataSource
(
config
);
}
}
}
src/main/java/cn/quantgroup/xyqb/config/data/LoginRiskJpaConfig.java
View file @
3c8b53b3
...
@@ -2,6 +2,9 @@ package cn.quantgroup.xyqb.config.data;
...
@@ -2,6 +2,9 @@ package cn.quantgroup.xyqb.config.data;
import
com.zaxxer.hikari.HikariDataSource
;
import
com.zaxxer.hikari.HikariDataSource
;
import
java.util.Properties
;
import
javax.persistence.EntityManagerFactory
;
import
javax.sql.DataSource
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder
;
...
@@ -18,10 +21,6 @@ import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
...
@@ -18,10 +21,6 @@ import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
import
org.springframework.transaction.PlatformTransactionManager
;
import
org.springframework.transaction.PlatformTransactionManager
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
javax.persistence.EntityManagerFactory
;
import
javax.sql.DataSource
;
import
java.util.Properties
;
/**
/**
* 登录风控拦截数据库
* 登录风控拦截数据库
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/config/data/RedisConfig.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
config
.
data
;
package
cn
.
quantgroup
.
xyqb
.
config
.
data
;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
java.util.HashSet
;
import
java.util.Set
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.cache.CacheManager
;
...
@@ -12,14 +14,10 @@ import org.springframework.data.redis.connection.RedisNode;
...
@@ -12,14 +14,10 @@ import org.springframework.data.redis.connection.RedisNode;
import
org.springframework.data.redis.connection.RedisSentinelConfiguration
;
import
org.springframework.data.redis.connection.RedisSentinelConfiguration
;
import
org.springframework.data.redis.connection.jedis.JedisConnectionFactory
;
import
org.springframework.data.redis.connection.jedis.JedisConnectionFactory
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
;
import
org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
;
import
org.springframework.data.redis.serializer.StringRedisSerializer
;
import
org.springframework.data.redis.serializer.StringRedisSerializer
;
import
redis.clients.jedis.JedisPoolConfig
;
import
redis.clients.jedis.JedisPoolConfig
;
import
java.util.HashSet
;
import
java.util.Set
;
/**
/**
* Created by Miraculous on 15/7/4.
* Created by Miraculous on 15/7/4.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/config/event/EventConfig.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
config
.
event
;
package
cn
.
quantgroup
.
xyqb
.
config
.
event
;
import
java.util.concurrent.Executor
;
import
java.util.concurrent.RejectedExecutionHandler
;
import
java.util.concurrent.ThreadPoolExecutor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
...
@@ -8,10 +11,6 @@ import org.springframework.context.event.SimpleApplicationEventMulticaster;
...
@@ -8,10 +11,6 @@ import org.springframework.context.event.SimpleApplicationEventMulticaster;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
org.springframework.scheduling.support.TaskUtils
;
import
org.springframework.scheduling.support.TaskUtils
;
import
java.util.concurrent.Executor
;
import
java.util.concurrent.RejectedExecutionHandler
;
import
java.util.concurrent.ThreadPoolExecutor
;
@Slf4j
@Slf4j
@Configuration
@Configuration
public
class
EventConfig
{
public
class
EventConfig
{
...
...
src/main/java/cn/quantgroup/xyqb/config/http/HttpConfig.java
View file @
3c8b53b3
...
@@ -4,6 +4,11 @@ import cn.quantgroup.tool.monitor.metric.api.TechHttpClient;
...
@@ -4,6 +4,11 @@ import cn.quantgroup.tool.monitor.metric.api.TechHttpClient;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.DeserializationFeature
;
import
com.fasterxml.jackson.databind.DeserializationFeature
;
import
com.fasterxml.jackson.databind.SerializationFeature
;
import
com.fasterxml.jackson.databind.SerializationFeature
;
import
java.security.KeyManagementException
;
import
java.security.KeyStoreException
;
import
java.security.NoSuchAlgorithmException
;
import
java.text.SimpleDateFormat
;
import
javax.net.ssl.SSLContext
;
import
org.apache.http.client.HttpRequestRetryHandler
;
import
org.apache.http.client.HttpRequestRetryHandler
;
import
org.apache.http.client.config.CookieSpecs
;
import
org.apache.http.client.config.CookieSpecs
;
import
org.apache.http.config.Registry
;
import
org.apache.http.config.Registry
;
...
@@ -34,12 +39,6 @@ import org.springframework.format.support.FormattingConversionService;
...
@@ -34,12 +39,6 @@ import org.springframework.format.support.FormattingConversionService;
import
org.springframework.http.converter.json.Jackson2ObjectMapperBuilder
;
import
org.springframework.http.converter.json.Jackson2ObjectMapperBuilder
;
import
org.springframework.web.filter.CharacterEncodingFilter
;
import
org.springframework.web.filter.CharacterEncodingFilter
;
import
javax.net.ssl.SSLContext
;
import
java.security.KeyManagementException
;
import
java.security.KeyStoreException
;
import
java.security.NoSuchAlgorithmException
;
import
java.text.SimpleDateFormat
;
/**
/**
* Created by Miraculous on 15/7/12.
* Created by Miraculous on 15/7/12.
...
...
src/main/java/cn/quantgroup/xyqb/config/http/MyWebMvcConfigurer.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
config
.
http
;
package
cn
.
quantgroup
.
xyqb
.
config
.
http
;
import
javax.validation.Validation
;
import
javax.validation.Validator
;
import
javax.validation.ValidatorFactory
;
import
org.hibernate.validator.HibernateValidator
;
import
org.hibernate.validator.HibernateValidator
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.format.FormatterRegistry
;
import
org.springframework.format.FormatterRegistry
;
...
@@ -7,10 +10,6 @@ import org.springframework.stereotype.Component;
...
@@ -7,10 +10,6 @@ import org.springframework.stereotype.Component;
import
org.springframework.validation.beanvalidation.MethodValidationPostProcessor
;
import
org.springframework.validation.beanvalidation.MethodValidationPostProcessor
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
;
import
javax.validation.Validation
;
import
javax.validation.Validator
;
import
javax.validation.ValidatorFactory
;
@Component
@Component
public
class
MyWebMvcConfigurer
extends
WebMvcConfigurerAdapter
{
public
class
MyWebMvcConfigurer
extends
WebMvcConfigurerAdapter
{
...
...
src/main/java/cn/quantgroup/xyqb/config/http/Timestamp2LongConverter.java
View file @
3c8b53b3
...
@@ -2,7 +2,6 @@ package cn.quantgroup.xyqb.config.http;
...
@@ -2,7 +2,6 @@ package cn.quantgroup.xyqb.config.http;
import
com.alibaba.fastjson.serializer.JSONSerializer
;
import
com.alibaba.fastjson.serializer.JSONSerializer
;
import
com.alibaba.fastjson.serializer.ObjectSerializer
;
import
com.alibaba.fastjson.serializer.ObjectSerializer
;
import
java.lang.reflect.Type
;
import
java.lang.reflect.Type
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
...
...
src/main/java/cn/quantgroup/xyqb/config/mq/LoanVestMqConfig.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
config
.
mq
;
package
cn
.
quantgroup
.
xyqb
.
config
.
mq
;
import
org.springframework.amqp.core.*
;
import
org.springframework.amqp.core.AmqpAdmin
;
import
org.springframework.amqp.core.Binding
;
import
org.springframework.amqp.core.BindingBuilder
;
import
org.springframework.amqp.core.FanoutExchange
;
import
org.springframework.amqp.core.Queue
;
import
org.springframework.amqp.rabbit.connection.CachingConnectionFactory
;
import
org.springframework.amqp.rabbit.connection.CachingConnectionFactory
;
import
org.springframework.amqp.rabbit.connection.ConnectionFactory
;
import
org.springframework.amqp.rabbit.connection.ConnectionFactory
;
import
org.springframework.amqp.rabbit.core.RabbitAdmin
;
import
org.springframework.amqp.rabbit.core.RabbitAdmin
;
...
...
src/main/java/cn/quantgroup/xyqb/config/mq/RegisterMqConfig.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
config
.
mq
;
package
cn
.
quantgroup
.
xyqb
.
config
.
mq
;
import
org.springframework.amqp.core.*
;
import
java.util.HashMap
;
import
java.util.Map
;
import
org.springframework.amqp.core.AmqpAdmin
;
import
org.springframework.amqp.core.Binding
;
import
org.springframework.amqp.core.BindingBuilder
;
import
org.springframework.amqp.core.FanoutExchange
;
import
org.springframework.amqp.core.Queue
;
import
org.springframework.amqp.rabbit.connection.CachingConnectionFactory
;
import
org.springframework.amqp.rabbit.connection.CachingConnectionFactory
;
import
org.springframework.amqp.rabbit.connection.CachingConnectionFactory.CacheMode
;
import
org.springframework.amqp.rabbit.connection.CachingConnectionFactory.CacheMode
;
import
org.springframework.amqp.rabbit.connection.ConnectionFactory
;
import
org.springframework.amqp.rabbit.connection.ConnectionFactory
;
...
@@ -12,9 +18,6 @@ import org.springframework.beans.factory.annotation.Value;
...
@@ -12,9 +18,6 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
/**
* Created by xuran on 2017/9/7.
* Created by xuran on 2017/9/7.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/config/sentry/CustomSentryExceptionResolver.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
config
.
sentry
;
package
cn
.
quantgroup
.
xyqb
.
config
.
sentry
;
import
cn.quantgroup.xyqb.exception.*
;
import
cn.quantgroup.xyqb.exception.AccessForbiddenException
;
import
cn.quantgroup.xyqb.exception.AppletException
;
import
cn.quantgroup.xyqb.exception.DataException
;
import
cn.quantgroup.xyqb.exception.PasswordErrorLimitException
;
import
cn.quantgroup.xyqb.exception.UserRegisterLoginException
;
import
cn.quantgroup.xyqb.exception.VerificationCodeErrorException
;
import
io.sentry.Sentry
;
import
io.sentry.Sentry
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.core.Ordered
;
import
org.springframework.core.Ordered
;
import
org.springframework.security.authentication.BadCredentialsException
;
import
org.springframework.security.authentication.BadCredentialsException
;
import
org.springframework.web.servlet.HandlerExceptionResolver
;
import
org.springframework.web.servlet.HandlerExceptionResolver
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.ModelAndView
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
/**
/**
* {@link HandlerExceptionResolver} implementation that will record any exception that a
* {@link HandlerExceptionResolver} implementation that will record any exception that a
* Spring {@link org.springframework.web.servlet.mvc.Controller} throws to Sentry. It then
* Spring {@link org.springframework.web.servlet.mvc.Controller} throws to Sentry. It then
...
...
src/main/java/cn/quantgroup/xyqb/config/sentry/SentryConfig.java
View file @
3c8b53b3
...
@@ -2,14 +2,13 @@ package cn.quantgroup.xyqb.config.sentry;
...
@@ -2,14 +2,13 @@ package cn.quantgroup.xyqb.config.sentry;
import
cn.quantgroup.tech.util.TechEnvironment
;
import
cn.quantgroup.tech.util.TechEnvironment
;
import
io.sentry.Sentry
;
import
io.sentry.Sentry
;
import
javax.annotation.PostConstruct
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.web.servlet.ServletContextInitializer
;
import
org.springframework.boot.web.servlet.ServletContextInitializer
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.servlet.HandlerExceptionResolver
;
import
org.springframework.web.servlet.HandlerExceptionResolver
;
import
javax.annotation.PostConstruct
;
/**
/**
* 初始化Sentry配置
* 初始化Sentry配置
* @author renwc
* @author renwc
...
...
src/main/java/cn/quantgroup/xyqb/controller/ExceptionHandlingController.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
;
package
cn
.
quantgroup
.
xyqb
.
controller
;
import
cn.quantgroup.xyqb.exception.*
;
import
cn.quantgroup.xyqb.exception.AccessForbiddenException
;
import
cn.quantgroup.xyqb.exception.AppletException
;
import
cn.quantgroup.xyqb.exception.DataException
;
import
cn.quantgroup.xyqb.exception.PasswordErrorLimitException
;
import
cn.quantgroup.xyqb.exception.ResubmissionException
;
import
cn.quantgroup.xyqb.exception.UserNotExistException
;
import
cn.quantgroup.xyqb.exception.UserQueryLogException
;
import
cn.quantgroup.xyqb.exception.UserRegisterLoginException
;
import
cn.quantgroup.xyqb.exception.VerificationCodeErrorException
;
import
cn.quantgroup.xyqb.exception.WechatRelateUserException
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.exception.ResubmissionException
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Set
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.validation.ConstraintViolation
;
import
javax.validation.ConstraintViolationException
;
import
javax.validation.ValidationException
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.jdbc.BadSqlGrammarException
;
import
org.springframework.jdbc.BadSqlGrammarException
;
...
@@ -12,15 +27,11 @@ import org.springframework.validation.BindingResult;
...
@@ -12,15 +27,11 @@ import org.springframework.validation.BindingResult;
import
org.springframework.validation.ObjectError
;
import
org.springframework.validation.ObjectError
;
import
org.springframework.web.bind.MethodArgumentNotValidException
;
import
org.springframework.web.bind.MethodArgumentNotValidException
;
import
org.springframework.web.bind.MissingServletRequestParameterException
;
import
org.springframework.web.bind.MissingServletRequestParameterException
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.ControllerAdvice
;
import
org.springframework.web.bind.annotation.ExceptionHandler
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
javax.validation.ConstraintViolation
;
import
org.springframework.web.bind.annotation.ResponseStatus
;
import
javax.validation.ConstraintViolationException
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.ValidationException
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Set
;
/**
/**
* Created by Miraculous on 15/7/6.
* Created by Miraculous on 15/7/6.
...
...
src/main/java/cn/quantgroup/xyqb/controller/IBaseController.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
;
package
cn
.
quantgroup
.
xyqb
.
controller
;
import
static
cn
.
quantgroup
.
xyqb
.
session
.
XyqbSessionContextHolder
.
getXSession
;
import
static
cn
.
quantgroup
.
xyqb
.
session
.
XyqbSessionContextHolder
.
getXSessionFromRedis
;
import
static
cn
.
quantgroup
.
xyqb
.
session
.
XyqbSessionContextHolder
.
getXSessionFromTenantRedis
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Enumeration
;
import
java.util.Enumeration
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Objects
;
import
javax.servlet.http.HttpServletRequest
;
import
static
cn
.
quantgroup
.
xyqb
.
session
.
XyqbSessionContextHolder
.
getXSession
;
import
org.apache.commons.lang3.StringUtils
;
import
static
cn
.
quantgroup
.
xyqb
.
session
.
XyqbSessionContextHolder
.
getXSessionFromRedis
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
static
cn
.
quantgroup
.
xyqb
.
session
.
XyqbSessionContextHolder
.
getXSessionFromTenantRedi
s
;
import
org.springframework.web.context.request.ServletRequestAttribute
s
;
/**
/**
* Created by Miraculous on 15/7/5.
* Created by Miraculous on 15/7/5.
...
...
src/main/java/cn/quantgroup/xyqb/controller/dust/UserAuthorizedController.java
View file @
3c8b53b3
...
@@ -4,12 +4,11 @@ import cn.quantgroup.xyqb.entity.UserAuthorized;
...
@@ -4,12 +4,11 @@ import cn.quantgroup.xyqb.entity.UserAuthorized;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.UserAuthorizedParam
;
import
cn.quantgroup.xyqb.model.UserAuthorizedParam
;
import
cn.quantgroup.xyqb.service.auth.IUserAuthorizedService
;
import
cn.quantgroup.xyqb.service.auth.IUserAuthorizedService
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
/**
/**
* @author xufei on 2018/1/5.
* @author xufei on 2018/1/5.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/controller/dust/wechatverify/WechatVerifyController.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
dust
.
wechatverify
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
dust
.
wechatverify
;
import
java.io.PrintWriter
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.PrintWriter
;
/**
/**
* Created by 11 on 2017/2/8.
* Created by 11 on 2017/2/8.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/UserController.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
external
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
external
;
import
static
cn
.
quantgroup
.
xyqb
.
Constants
.
VERIFICATION_CODE_FINITE_COUNT_NEW
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_ENABLE_ERROR
;
import
cn.quantgroup.user.enums.LoginType
;
import
cn.quantgroup.user.enums.LoginType
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.aspect.accessable.IpValidator
;
import
cn.quantgroup.xyqb.aspect.accessable.IpValidator
;
...
@@ -10,10 +13,19 @@ import cn.quantgroup.xyqb.aspect.forbidden.AccessForbiddenValidator;
...
@@ -10,10 +13,19 @@ import cn.quantgroup.xyqb.aspect.forbidden.AccessForbiddenValidator;
import
cn.quantgroup.xyqb.aspect.limit.PasswordFreeAccessValidator
;
import
cn.quantgroup.xyqb.aspect.limit.PasswordFreeAccessValidator
;
import
cn.quantgroup.xyqb.aspect.lock.PasswordErrorFiniteValidator
;
import
cn.quantgroup.xyqb.aspect.lock.PasswordErrorFiniteValidator
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.entity.*
;
import
cn.quantgroup.xyqb.entity.LoginRecord
;
import
cn.quantgroup.xyqb.entity.Merchant
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserAttached
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.exception.UserNotExistException
;
import
cn.quantgroup.xyqb.exception.UserNotExistException
;
import
cn.quantgroup.xyqb.exception.VerificationCodeErrorException
;
import
cn.quantgroup.xyqb.exception.VerificationCodeErrorException
;
import
cn.quantgroup.xyqb.model.*
;
import
cn.quantgroup.xyqb.model.AuthBean
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.LoginProperties
;
import
cn.quantgroup.xyqb.model.TokenExchange
;
import
cn.quantgroup.xyqb.model.UserBrief
;
import
cn.quantgroup.xyqb.model.UserModel
;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
cn.quantgroup.xyqb.model.session.SessionValue
;
import
cn.quantgroup.xyqb.model.session.SessionValue
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestLogService
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestLogService
;
...
@@ -22,14 +34,30 @@ import cn.quantgroup.xyqb.service.merchant.IMerchantService;
...
@@ -22,14 +34,30 @@ import cn.quantgroup.xyqb.service.merchant.IMerchantService;
import
cn.quantgroup.xyqb.service.register.IUserRegisterService
;
import
cn.quantgroup.xyqb.service.register.IUserRegisterService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
cn.quantgroup.xyqb.service.user.*
;
import
cn.quantgroup.xyqb.service.user.ILockIpv4Service
;
import
cn.quantgroup.xyqb.service.user.ILoginRecordService
;
import
cn.quantgroup.xyqb.service.user.ITenantService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.UserCenterService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
cn.quantgroup.xyqb.util.*
;
import
cn.quantgroup.xyqb.util.BctyptPasswordUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
io.swagger.annotations.ApiOperation
;
import
java.io.UnsupportedEncodingException
;
import
java.nio.charset.Charset
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.util.Set
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
...
@@ -42,14 +70,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
...
@@ -42,14 +70,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
java.io.UnsupportedEncodingException
;
import
java.nio.charset.Charset
;
import
java.util.*
;
import
static
cn
.
quantgroup
.
xyqb
.
Constants
.
VERIFICATION_CODE_FINITE_COUNT_NEW
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_ENABLE_ERROR
;
/**
/**
* Http服务接口:用户注册、登录、重置密码
* Http服务接口:用户注册、登录、重置密码
* Created by FrankChow on 15/7/5.
* Created by FrankChow on 15/7/5.
...
@@ -633,7 +653,6 @@ public class UserController implements IBaseController {
...
@@ -633,7 +653,6 @@ public class UserController implements IBaseController {
@AccessForbiddenValidator
@AccessForbiddenValidator
@PasswordFreeAccessValidator
@PasswordFreeAccessValidator
@RequestMapping
(
"/center/index"
)
@RequestMapping
(
"/center/index"
)
@ApiOperation
(
value
=
"用户中心首页"
,
notes
=
"用户中心首页显示头像, 昵称, 姓名"
,
httpMethod
=
"POST"
)
public
JsonResult
userCenterIndex
()
{
public
JsonResult
userCenterIndex
()
{
UserBrief
brief
=
new
UserBrief
();
UserBrief
brief
=
new
UserBrief
();
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/UserDetailController.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
external
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
external
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.controller.internal.user.InnerController
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
...
@@ -11,7 +10,7 @@ import cn.quantgroup.xyqb.service.auth.IIdCardService;
...
@@ -11,7 +10,7 @@ import cn.quantgroup.xyqb.service.auth.IIdCardService;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.validator.ChineseName
;
import
cn.quantgroup.xyqb.validator.ChineseName
;
import
io.swagger.annotations.ApiOperation
;
import
java.util.Objects
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.dao.DataIntegrityViolationException
;
import
org.springframework.dao.DataIntegrityViolationException
;
...
@@ -20,9 +19,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -20,9 +19,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.sql.Timestamp
;
import
java.util.Objects
;
/**
/**
* Created by Miraculous on 2017/1/3.
* Created by Miraculous on 2017/1/3.
*/
*/
...
@@ -53,7 +49,6 @@ public class UserDetailController implements IBaseController {
...
@@ -53,7 +49,6 @@ public class UserDetailController implements IBaseController {
*/
*/
@Deprecated
@Deprecated
@RequestMapping
(
"/save"
)
@RequestMapping
(
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存/更新用户实名信息"
)
public
JsonResult
saveUserDetail
(
String
idNo
,
public
JsonResult
saveUserDetail
(
String
idNo
,
@ChineseName
@RequestParam
String
name
)
{
@ChineseName
@RequestParam
String
name
)
{
if
(!
ValidationUtil
.
validateChinese
(
name
))
{
if
(!
ValidationUtil
.
validateChinese
(
name
))
{
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/WeChatController.java
View file @
3c8b53b3
...
@@ -20,6 +20,23 @@ import com.alibaba.fastjson.JSON;
...
@@ -20,6 +20,23 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.google.common.base.Joiner
;
import
com.google.common.base.Joiner
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableList
;
import
java.io.IOException
;
import
java.io.PrintWriter
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
import
java.security.MessageDigest
;
import
java.security.NoSuchAlgorithmException
;
import
java.text.SimpleDateFormat
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Enumeration
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Optional
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
...
@@ -28,21 +45,15 @@ import org.apache.commons.lang.StringUtils;
...
@@ -28,21 +45,15 @@ import org.apache.commons.lang.StringUtils;
import
org.apache.http.HttpStatus
;
import
org.apache.http.HttpStatus
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.PrintWriter
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
import
java.security.MessageDigest
;
import
java.security.NoSuchAlgorithmException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
/**
/**
* Created by 11 on 2017/1/17.
* Created by 11 on 2017/1/17.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/WechatFollowController.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
external
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
external
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.aspect.accessable.IpValidator
;
import
cn.quantgroup.xyqb.aspect.captcha.CaptchaFiniteValidator
;
import
cn.quantgroup.xyqb.aspect.captcha.LoginInterceptor
;
import
cn.quantgroup.xyqb.aspect.limit.PasswordFreeAccessValidator
;
import
cn.quantgroup.xyqb.aspect.lock.PasswordErrorFiniteValidator
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.entity.Merchant
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserAttached
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.exception.UserNotExistException
;
import
cn.quantgroup.xyqb.exception.VerificationCodeErrorException
;
import
cn.quantgroup.xyqb.model.*
;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
cn.quantgroup.xyqb.model.session.SessionValue
;
import
cn.quantgroup.xyqb.model.webchat.AccessTokenResponse
;
import
cn.quantgroup.xyqb.service.http.IHttpService
;
import
cn.quantgroup.xyqb.service.merchant.IMerchantService
;
import
cn.quantgroup.xyqb.service.register.IUserRegisterService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
cn.quantgroup.xyqb.service.user.*
;
import
cn.quantgroup.xyqb.service.wechat.IWechatFollowService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatFollowService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
javax.sql.DataSource
;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.TypeReference
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.sql.DataSource
;
import
java.io.UnsupportedEncodingException
;
import
java.nio.charset.Charset
;
import
java.sql.Connection
;
import
java.util.*
;
import
static
cn
.
quantgroup
.
xyqb
.
Constants
.
VERIFICATION_CODE_FINITE_COUNT_NEW
;
/**
/**
* 微信公众号与企业微信关注情况
* 微信公众号与企业微信关注情况
*
*
...
@@ -68,12 +22,6 @@ public class WechatFollowController implements IBaseController {
...
@@ -68,12 +22,6 @@ public class WechatFollowController implements IBaseController {
@Autowired
@Autowired
private
IWechatFollowService
wechatFollowService
;
private
IWechatFollowService
wechatFollowService
;
@Autowired
private
DataSource
dataSource
;
@Autowired
private
JdbcTemplate
jdbcTemplate
;
@RequestMapping
(
"/wechatFollowTask"
)
@RequestMapping
(
"/wechatFollowTask"
)
public
JsonResult
wechatFollowTask
()
{
public
JsonResult
wechatFollowTask
()
{
wechatFollowService
.
executeTask
();
wechatFollowService
.
executeTask
();
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/captcha/ImageCaptchaController.java
View file @
3c8b53b3
...
@@ -4,18 +4,6 @@ import cn.quantgroup.xyqb.Constants;
...
@@ -4,18 +4,6 @@ import cn.quantgroup.xyqb.Constants;
import
cn.quantgroup.xyqb.aspect.captcha.CaptchaValidator
;
import
cn.quantgroup.xyqb.aspect.captcha.CaptchaValidator
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.thirdparty.jcaptcha.AbstractManageableImageCaptchaService
;
import
cn.quantgroup.xyqb.thirdparty.jcaptcha.AbstractManageableImageCaptchaService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.imageio.ImageIO
;
import
javax.servlet.http.HttpServletRequest
;
import
java.awt.image.BufferedImage
;
import
java.awt.image.BufferedImage
;
import
java.io.ByteArrayOutputStream
;
import
java.io.ByteArrayOutputStream
;
import
java.io.IOException
;
import
java.io.IOException
;
...
@@ -23,6 +11,15 @@ import java.util.HashMap;
...
@@ -23,6 +11,15 @@ import java.util.HashMap;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.UUID
;
import
java.util.UUID
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
import
javax.imageio.ImageIO
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* 类名称:ImgCaptchaController
* 类名称:ImgCaptchaController
...
@@ -31,7 +28,6 @@ import java.util.concurrent.TimeUnit;
...
@@ -31,7 +28,6 @@ import java.util.concurrent.TimeUnit;
* @author 李宁
* @author 李宁
* @version 1.0.0 创建时间:15/11/17 11:49 修改人: 修改时间:15/11/17 11:49 修改备注:
* @version 1.0.0 创建时间:15/11/17 11:49 修改人: 修改时间:15/11/17 11:49 修改备注:
*/
*/
@Api
(
value
=
"/api"
,
description
=
"叫Api, 实际上是图形验证码. 你说神奇不神奇..."
)
@Slf4j
@Slf4j
@RestController
@RestController
@RequestMapping
(
"/api"
)
@RequestMapping
(
"/api"
)
...
@@ -53,7 +49,6 @@ public class ImageCaptchaController {
...
@@ -53,7 +49,6 @@ public class ImageCaptchaController {
* 默认匹配 GET /captcha, 提供4位数字和字母混合图片验证码
* 默认匹配 GET /captcha, 提供4位数字和字母混合图片验证码
*/
*/
@RequestMapping
(
value
=
"/captcha"
)
@RequestMapping
(
value
=
"/captcha"
)
@ApiOperation
(
value
=
"获取验证码"
,
notes
=
"获取图形验证码接口, 会返回一个base64的图形验证码"
,
httpMethod
=
"GET"
)
public
JsonResult
fetchCaptcha
(
HttpServletRequest
request
)
{
public
JsonResult
fetchCaptcha
(
HttpServletRequest
request
)
{
String
imageId
=
UUID
.
randomUUID
().
toString
();
String
imageId
=
UUID
.
randomUUID
().
toString
();
BufferedImage
challenge
=
imageCaptchaService
.
getImageChallengeForID
(
Constants
.
IMAGE_CAPTCHA_KEY
+
imageId
,
request
.
getLocale
());
BufferedImage
challenge
=
imageCaptchaService
.
getImageChallengeForID
(
Constants
.
IMAGE_CAPTCHA_KEY
+
imageId
,
request
.
getLocale
());
...
@@ -78,7 +73,6 @@ public class ImageCaptchaController {
...
@@ -78,7 +73,6 @@ public class ImageCaptchaController {
*/
*/
@CaptchaValidator
@CaptchaValidator
@RequestMapping
(
"/verification_image_code"
)
@RequestMapping
(
"/verification_image_code"
)
@ApiOperation
(
value
=
"验证图形验证码"
,
notes
=
"验证图形验证码"
,
httpMethod
=
"POST"
)
public
JsonResult
verificationImageCode
()
{
public
JsonResult
verificationImageCode
()
{
return
JsonResult
.
buildSuccessResult
(
""
,
null
);
return
JsonResult
.
buildSuccessResult
(
""
,
null
);
}
}
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/captcha/NewCaptchaController.java
View file @
3c8b53b3
...
@@ -9,20 +9,18 @@ import cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService;
...
@@ -9,20 +9,18 @@ import cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
io.swagger.annotations.ApiOperation
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.UUID
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.UUID
;
/**
/**
* @author xufei on 2018/1/30.
* @author xufei on 2018/1/30.
*/
*/
...
@@ -44,7 +42,6 @@ public class NewCaptchaController {
...
@@ -44,7 +42,6 @@ public class NewCaptchaController {
@RequestMapping
(
value
=
"/captcha/new"
)
@RequestMapping
(
value
=
"/captcha/new"
)
@ApiOperation
(
value
=
"获取新图形验证码"
,
notes
=
"获取新图形验证码"
,
httpMethod
=
"POST"
)
public
JsonResult
getCaptcha
(
String
phoneNo
,
String
clientType
,
String
settingType
,
HttpServletRequest
request
)
{
public
JsonResult
getCaptcha
(
String
phoneNo
,
String
clientType
,
String
settingType
,
HttpServletRequest
request
)
{
String
remoteIp
=
IpUtil
.
getRemoteIP
(
request
);
String
remoteIp
=
IpUtil
.
getRemoteIP
(
request
);
log
.
info
(
"获取验证码, phoneNo:{}, clientType:{}, ip:{}, verifyType-qg:{}"
,
phoneNo
,
clientType
,
remoteIp
,
geetestClose
);
log
.
info
(
"获取验证码, phoneNo:{}, clientType:{}, ip:{}, verifyType-qg:{}"
,
phoneNo
,
clientType
,
remoteIp
,
geetestClose
);
...
@@ -89,7 +86,6 @@ public class NewCaptchaController {
...
@@ -89,7 +86,6 @@ public class NewCaptchaController {
}
}
@RequestMapping
(
value
=
"/captcha/new/passwd"
)
@RequestMapping
(
value
=
"/captcha/new/passwd"
)
@ApiOperation
(
value
=
"获取新图形验证码(账密)"
,
notes
=
"获取新图形验证码(账密)"
,
httpMethod
=
"POST"
)
public
JsonResult
getCaptchaPasswd
(
String
phoneNo
,
String
clientType
,
String
settingType
,
HttpServletRequest
request
)
{
public
JsonResult
getCaptchaPasswd
(
String
phoneNo
,
String
clientType
,
String
settingType
,
HttpServletRequest
request
)
{
String
remoteIp
=
IpUtil
.
getRemoteIP
(
request
);
String
remoteIp
=
IpUtil
.
getRemoteIP
(
request
);
log
.
info
(
"获取验证码, phoneNo:{}, clientType:{}, ip:{}, verifyType-qg:{}"
,
phoneNo
,
clientType
,
remoteIp
,
geetestClose
);
log
.
info
(
"获取验证码, phoneNo:{}, clientType:{}, ip:{}, verifyType-qg:{}"
,
phoneNo
,
clientType
,
remoteIp
,
geetestClose
);
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/lock/LockIpv4Controller.java
View file @
3c8b53b3
...
@@ -5,10 +5,11 @@ import cn.quantgroup.xyqb.controller.IBaseController;
...
@@ -5,10 +5,11 @@ import cn.quantgroup.xyqb.controller.IBaseController;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.Objects
;
import
java.util.concurrent.TimeUnit
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
...
@@ -16,10 +17,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -16,10 +17,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Objects
;
import
java.util.concurrent.TimeUnit
;
/**
/**
* 锁控制器
* 锁控制器
*
*
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/sms/SmsController.java
View file @
3c8b53b3
...
@@ -11,6 +11,12 @@ import cn.quantgroup.xyqb.service.sms.ISmsService;
...
@@ -11,6 +11,12 @@ import cn.quantgroup.xyqb.service.sms.ISmsService;
import
cn.quantgroup.xyqb.util.DateUtils
;
import
cn.quantgroup.xyqb.util.DateUtils
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.UUID
;
import
java.util.concurrent.TimeUnit
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.RandomStringUtils
;
import
org.apache.commons.lang3.RandomStringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -22,9 +28,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -22,9 +28,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.*
;
import
java.util.concurrent.TimeUnit
;
/**
/**
* Created by FrankChow on 15/7/6.
* Created by FrankChow on 15/7/6.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/login/AuthInfoController.java
View file @
3c8b53b3
...
@@ -7,12 +7,11 @@ import cn.quantgroup.xyqb.model.session.LoginInfo;
...
@@ -7,12 +7,11 @@ import cn.quantgroup.xyqb.model.session.LoginInfo;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
/**
/**
* 查询已登录信息
* 查询已登录信息
* Created by Miraculous on 2016/12/30.
* Created by Miraculous on 2016/12/30.
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/querylog/UserQueryLogController.java
View file @
3c8b53b3
...
@@ -17,10 +17,29 @@ import cn.quantgroup.xyqb.util.IdcardValidator;
...
@@ -17,10 +17,29 @@ import cn.quantgroup.xyqb.util.IdcardValidator;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
cn.quantgroup.xyqb.util.encrypt.Rsa
;
import
cn.quantgroup.xyqb.util.encrypt.Rsa
;
import
com.google.gson.*
;
import
com.google.gson.Gson
;
import
io.swagger.annotations.ApiOperation
;
import
com.google.gson.JsonArray
;
import
com.google.gson.JsonElement
;
import
com.google.gson.JsonObject
;
import
com.google.gson.JsonParser
;
import
java.io.OutputStream
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Optional
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.poi.hssf.usermodel.*
;
import
org.apache.poi.hssf.usermodel.HSSFCell
;
import
org.apache.poi.hssf.usermodel.HSSFCellStyle
;
import
org.apache.poi.hssf.usermodel.HSSFRow
;
import
org.apache.poi.hssf.usermodel.HSSFSheet
;
import
org.apache.poi.hssf.usermodel.HSSFWorkbook
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
...
@@ -30,13 +49,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -30,13 +49,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.OutputStream
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.util.*
;
/**
/**
* Created by zenglibin on 17/06/13.
* Created by zenglibin on 17/06/13.
*/
*/
...
@@ -71,7 +83,6 @@ public class UserQueryLogController {
...
@@ -71,7 +83,6 @@ public class UserQueryLogController {
* @yapi http://yapi.quantgroups.com/project/17/interface/api/259
* @yapi http://yapi.quantgroups.com/project/17/interface/api/259
*/
*/
@RequestMapping
(
"/queryLog"
)
@RequestMapping
(
"/queryLog"
)
@ApiOperation
(
value
=
"给运营系统提供的查询查询记录的"
,
notes
=
"给运营系统提供的查询查询记录的"
,
httpMethod
=
"POST"
)
public
JsonResult
queryLog
(
HttpServletRequest
request
,
@RequestParam
(
required
=
false
)
String
beginDate
,
@RequestParam
(
required
=
false
)
String
endDate
,
Integer
pageId
,
Integer
pageSize
)
{
public
JsonResult
queryLog
(
HttpServletRequest
request
,
@RequestParam
(
required
=
false
)
String
beginDate
,
@RequestParam
(
required
=
false
)
String
endDate
,
Integer
pageId
,
Integer
pageSize
)
{
log
.
info
(
"查询日期:beginDate{},endDate{}"
,
beginDate
,
endDate
);
log
.
info
(
"查询日期:beginDate{},endDate{}"
,
beginDate
,
endDate
);
String
token
=
request
.
getHeader
(
Constants
.
X_AUTH_TOKEN
);
String
token
=
request
.
getHeader
(
Constants
.
X_AUTH_TOKEN
);
...
@@ -128,7 +139,6 @@ public class UserQueryLogController {
...
@@ -128,7 +139,6 @@ public class UserQueryLogController {
*/
*/
@AccessForbiddenValidator
@AccessForbiddenValidator
@RequestMapping
(
"/queryUserInfo"
)
@RequestMapping
(
"/queryUserInfo"
)
@ApiOperation
(
value
=
"给运营系统提供的查询用户信息的接口"
,
notes
=
"给运营系统提供的查询用户信息的接口"
,
httpMethod
=
"POST"
)
public
JsonResult
queryForResult
(
HttpServletRequest
request
,
String
key
,
String
keyValues
,
String
columns
,
Integer
pageId
,
Integer
pageSize
)
{
public
JsonResult
queryForResult
(
HttpServletRequest
request
,
String
key
,
String
keyValues
,
String
columns
,
Integer
pageId
,
Integer
pageSize
)
{
String
token
=
request
.
getHeader
(
Constants
.
X_AUTH_TOKEN
);
String
token
=
request
.
getHeader
(
Constants
.
X_AUTH_TOKEN
);
String
userName
=
checkUserToken
(
token
);
String
userName
=
checkUserToken
(
token
);
...
@@ -269,7 +279,6 @@ public class UserQueryLogController {
...
@@ -269,7 +279,6 @@ public class UserQueryLogController {
* @yapi http://yapi.quantgroups.com/project/17/interface/api/257
* @yapi http://yapi.quantgroups.com/project/17/interface/api/257
*/
*/
@RequestMapping
(
"/exportUserInfo"
)
@RequestMapping
(
"/exportUserInfo"
)
@ApiOperation
(
value
=
"给运营系统提供的导出用户信息的接口"
,
notes
=
"给运营系统提供的导出用户信息的接口"
,
httpMethod
=
"POST"
)
public
JsonResult
exportExcel
(
final
HttpServletResponse
response
,
HttpServletRequest
request
,
String
key
,
String
keyValues
,
String
columns
)
{
public
JsonResult
exportExcel
(
final
HttpServletResponse
response
,
HttpServletRequest
request
,
String
key
,
String
keyValues
,
String
columns
)
{
String
token
=
request
.
getHeader
(
Constants
.
X_AUTH_TOKEN
);
String
token
=
request
.
getHeader
(
Constants
.
X_AUTH_TOKEN
);
checkUserToken
(
token
);
checkUserToken
(
token
);
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/user/AppController.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
internal
.
user
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
internal
.
user
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_ENABLE_ERROR
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_PASSWORD_ERROR
;
import
cn.quantgroup.user.enums.LoginType
;
import
cn.quantgroup.user.enums.LoginType
;
import
cn.quantgroup.xyqb.aspect.accessable.IpValidator
;
import
cn.quantgroup.xyqb.aspect.accessable.IpValidator
;
import
cn.quantgroup.xyqb.aspect.captcha.LoginInterceptor
;
import
cn.quantgroup.xyqb.aspect.captcha.LoginInterceptor
;
...
@@ -23,7 +26,8 @@ import cn.quantgroup.xyqb.util.TenantUtil;
...
@@ -23,7 +26,8 @@ import cn.quantgroup.xyqb.util.TenantUtil;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
com.sensorsdata.analytics.javasdk.ISensorsAnalytics
;
import
com.sensorsdata.analytics.javasdk.ISensorsAnalytics
;
import
com.sensorsdata.analytics.javasdk.bean.EventRecord
;
import
com.sensorsdata.analytics.javasdk.bean.EventRecord
;
import
io.swagger.annotations.ApiOperation
;
import
javax.persistence.PersistenceException
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
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
;
...
@@ -34,12 +38,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -34,12 +38,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.persistence.PersistenceException
;
import
javax.servlet.http.HttpServletRequest
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_ENABLE_ERROR
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_PASSWORD_ERROR
;
/**
/**
* 第三方用户免密登录
* 第三方用户免密登录
*
*
...
@@ -150,7 +148,6 @@ public class AppController implements IBaseController {
...
@@ -150,7 +148,6 @@ public class AppController implements IBaseController {
@Deprecated
@Deprecated
@IpValidator
@IpValidator
@RequestMapping
(
"/login"
)
@RequestMapping
(
"/login"
)
@ApiOperation
(
value
=
"App登陆"
,
notes
=
"App登陆"
,
httpMethod
=
"POST"
)
public
JsonResult
login
(
public
JsonResult
login
(
String
phoneNo
,
String
phoneNo
,
String
idNo
,
String
name
,
String
key
,
String
idNo
,
String
name
,
String
key
,
...
@@ -205,7 +202,6 @@ public class AppController implements IBaseController {
...
@@ -205,7 +202,6 @@ public class AppController implements IBaseController {
*/
*/
@IpValidator
@IpValidator
@RequestMapping
(
"/login_super"
)
@RequestMapping
(
"/login_super"
)
@ApiOperation
(
value
=
"免密登陆, 新手机号还自动注册"
,
notes
=
"免密登陆, 新手机号还自动注册"
,
httpMethod
=
"POST"
)
public
JsonResult
loginSuper
(
public
JsonResult
loginSuper
(
String
phoneNo
,
String
phoneNo
,
String
idNo
,
String
name
,
String
key
,
String
idNo
,
String
name
,
String
key
,
...
@@ -322,7 +318,6 @@ public class AppController implements IBaseController {
...
@@ -322,7 +318,6 @@ public class AppController implements IBaseController {
@LoginInterceptor
@LoginInterceptor
@IpValidator
@IpValidator
@RequestMapping
(
"/login2"
)
@RequestMapping
(
"/login2"
)
@ApiOperation
(
value
=
"免密登陆, 新手机号不自动注册"
,
notes
=
"免密登陆, 新手机号不自动注册"
,
httpMethod
=
"POST"
)
public
JsonResult
login2
(
public
JsonResult
login2
(
String
phoneNo
,
String
phoneNo
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
registerFrom
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
registerFrom
,
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/user/InnerController.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
internal
.
user
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
internal
.
user
;
import
cn.quantgroup.tech.db.DSType
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_ENABLE_ERROR
;
import
cn.quantgroup.tech.db.TargetDataSource
;
import
cn.quantgroup.user.enums.*
;
import
cn.quantgroup.user.enums.BizType
;
import
cn.quantgroup.user.enums.EducationEnum
;
import
cn.quantgroup.user.enums.IncomeEnum
;
import
cn.quantgroup.user.enums.IncomeRangeEnum
;
import
cn.quantgroup.user.enums.MaritalStatus
;
import
cn.quantgroup.user.enums.OccupationEnum
;
import
cn.quantgroup.user.enums.Relation
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.aspect.accessable.IpValidator
;
import
cn.quantgroup.xyqb.aspect.accessable.IpValidator
;
import
cn.quantgroup.xyqb.aspect.forbidden.AccessForbiddenValidator
;
import
cn.quantgroup.xyqb.aspect.forbidden.AccessForbiddenValidator
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.controller.internal.user.resp.UserFullResp
;
import
cn.quantgroup.xyqb.controller.internal.user.resp.UserFullResp
;
import
cn.quantgroup.xyqb.entity.*
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.Merchant
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserBtRegister
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
cn.quantgroup.xyqb.entity.UserSpouse
;
import
cn.quantgroup.xyqb.entity.WechatUserInfo
;
import
cn.quantgroup.xyqb.event.DisableActiveEvent
;
import
cn.quantgroup.xyqb.event.DisableActiveEvent
;
import
cn.quantgroup.xyqb.event.UserExtInfoSaveEvent
;
import
cn.quantgroup.xyqb.event.UserExtInfoSaveEvent
;
import
cn.quantgroup.xyqb.exception.UserNotExistException
;
import
cn.quantgroup.xyqb.exception.UserNotExistException
;
import
cn.quantgroup.xyqb.model.AddressRet
;
import
cn.quantgroup.xyqb.model.ContactInfo
;
import
cn.quantgroup.xyqb.model.ContactRet
;
import
cn.quantgroup.xyqb.model.Gender
;
import
cn.quantgroup.xyqb.model.Gender
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
cn.quantgroup.xyqb.model.IdType
;
import
cn.quantgroup.xyqb.model.IdType
;
import
cn.quantgroup.xyqb.model.*
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.Tuple
;
import
cn.quantgroup.xyqb.model.UserAssociation
;
import
cn.quantgroup.xyqb.model.UserAssociationModel
;
import
cn.quantgroup.xyqb.model.UserDetailRet
;
import
cn.quantgroup.xyqb.model.UserExtInfoRet
;
import
cn.quantgroup.xyqb.model.UserFullInfo
;
import
cn.quantgroup.xyqb.model.UserInfo
;
import
cn.quantgroup.xyqb.model.UserRet
;
import
cn.quantgroup.xyqb.model.UserSpouseRet
;
import
cn.quantgroup.xyqb.model.UserStatistics
;
import
cn.quantgroup.xyqb.service.api.IUserApiService
;
import
cn.quantgroup.xyqb.service.api.IUserApiService
;
import
cn.quantgroup.xyqb.service.auth.IIdCardService
;
import
cn.quantgroup.xyqb.service.auth.IIdCardService
;
import
cn.quantgroup.xyqb.service.merchant.IMerchantService
;
import
cn.quantgroup.xyqb.service.merchant.IMerchantService
;
...
@@ -22,10 +50,25 @@ import cn.quantgroup.xyqb.service.register.IUserDeregisterService;
...
@@ -22,10 +50,25 @@ import cn.quantgroup.xyqb.service.register.IUserDeregisterService;
import
cn.quantgroup.xyqb.service.register.IUserRegisterService
;
import
cn.quantgroup.xyqb.service.register.IUserRegisterService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
cn.quantgroup.xyqb.service.user.*
;
import
cn.quantgroup.xyqb.service.user.CleanDataService
;
import
cn.quantgroup.xyqb.service.user.IAddressService
;
import
cn.quantgroup.xyqb.service.user.IContactService
;
import
cn.quantgroup.xyqb.service.user.IOauthLoginInfoService
;
import
cn.quantgroup.xyqb.service.user.ITenantService
;
import
cn.quantgroup.xyqb.service.user.IUserBtRegisterService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserExtInfoService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserSpouseService
;
import
cn.quantgroup.xyqb.service.user.vo.UserDetailVO
;
import
cn.quantgroup.xyqb.service.user.vo.UserDetailVO
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.util.*
;
import
cn.quantgroup.xyqb.util.AesUtil
;
import
cn.quantgroup.xyqb.util.BctyptPasswordUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.MqUtils
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
cn.quantgroup.xyqb.validator.ChineseName
;
import
cn.quantgroup.xyqb.validator.ChineseName
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
...
@@ -33,10 +76,19 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -33,10 +76,19 @@ import com.alibaba.fastjson.JSONObject;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.google.common.base.MoreObjects
;
import
com.google.common.base.MoreObjects
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
io.swagger.annotations.ApiOperation
;
import
java.io.UnsupportedEncodingException
;
import
io.swagger.annotations.ApiParam
;
import
java.text.ParseException
;
import
io.swagger.annotations.ApiResponse
;
import
java.util.ArrayList
;
import
io.swagger.annotations.ApiResponses
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.util.stream.Collectors
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -46,18 +98,13 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -46,18 +98,13 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
javax.annotation.Resource
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
javax.validation.constraints.Min
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
javax.validation.constraints.NotNull
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.io.UnsupportedEncodingException
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.text.ParseException
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_ENABLE_ERROR
;
/**
/**
...
@@ -129,7 +176,6 @@ public class InnerController implements IBaseController {
...
@@ -129,7 +176,6 @@ public class InnerController implements IBaseController {
@Deprecated
@Deprecated
@IpValidator
@IpValidator
@RequestMapping
(
"/fetchUuid"
)
@RequestMapping
(
"/fetchUuid"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据手机号或身份证号查询用户UUID"
)
public
JsonResult
fetchUuid
(
String
phoneNo
,
String
idNo
)
{
public
JsonResult
fetchUuid
(
String
phoneNo
,
String
idNo
)
{
String
uuid
=
userService
.
findUuid
(
phoneNo
,
idNo
);
String
uuid
=
userService
.
findUuid
(
phoneNo
,
idNo
);
log
.
info
(
"根据手机号或身份证号查询用户UUID,phoneNo:{},idNo:{},uuid:{}"
,
phoneNo
,
idNo
,
uuid
);
log
.
info
(
"根据手机号或身份证号查询用户UUID,phoneNo:{},idNo:{},uuid:{}"
,
phoneNo
,
idNo
,
uuid
);
...
@@ -143,7 +189,6 @@ public class InnerController implements IBaseController {
...
@@ -143,7 +189,6 @@ public class InnerController implements IBaseController {
* @yapi http://yapi.quantgroups.com/project/17/interface/api/215
* @yapi http://yapi.quantgroups.com/project/17/interface/api/215
*/
*/
@RequestMapping
(
"/user/search/phoneNo"
)
@RequestMapping
(
"/user/search/phoneNo"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据手机号查询用户信息"
)
public
JsonResult
findByPhoneNo
(
String
phoneNo
,
Integer
tenantId
)
{
public
JsonResult
findByPhoneNo
(
String
phoneNo
,
Integer
tenantId
)
{
User
user
=
userService
.
findByPhoneInDb
(
phoneNo
);
User
user
=
userService
.
findByPhoneInDb
(
phoneNo
);
if
(
user
==
null
)
{
if
(
user
==
null
)
{
...
@@ -164,7 +209,6 @@ public class InnerController implements IBaseController {
...
@@ -164,7 +209,6 @@ public class InnerController implements IBaseController {
* @yapi http://yapi.quantgroups.com/project/17/interface/api/219
* @yapi http://yapi.quantgroups.com/project/17/interface/api/219
*/
*/
@RequestMapping
(
"/user/search/uuid"
)
@RequestMapping
(
"/user/search/uuid"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据UUID查询用户信息"
)
public
JsonResult
findByUuidInfo
(
String
uuid
,
Integer
tenantId
)
{
public
JsonResult
findByUuidInfo
(
String
uuid
,
Integer
tenantId
)
{
User
user
=
userService
.
findByUuidWithCache
(
uuid
);
User
user
=
userService
.
findByUuidWithCache
(
uuid
);
if
(
user
==
null
)
{
if
(
user
==
null
)
{
...
@@ -188,7 +232,6 @@ public class InnerController implements IBaseController {
...
@@ -188,7 +232,6 @@ public class InnerController implements IBaseController {
*/
*/
@Deprecated
@Deprecated
@GetMapping
(
"/user/search/hash"
)
@GetMapping
(
"/user/search/hash"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据md5(手机号)或md5(身份证号)查询用户信息"
)
public
JsonResult
findByUuid
(
@RequestParam
String
md5Value
,
public
JsonResult
findByUuid
(
@RequestParam
String
md5Value
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
type
)
{
@RequestParam
(
defaultValue
=
"1"
)
Integer
type
)
{
if
(
md5Value
==
null
)
{
if
(
md5Value
==
null
)
{
...
@@ -211,7 +254,6 @@ public class InnerController implements IBaseController {
...
@@ -211,7 +254,6 @@ public class InnerController implements IBaseController {
*/
*/
//与旧的区别就是新的如果返回多个的时候只取最新的
//与旧的区别就是新的如果返回多个的时候只取最新的
@GetMapping
(
"/user/search/hash2"
)
@GetMapping
(
"/user/search/hash2"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据md5(手机号)或md5(身份证号)查询用户信息"
)
public
JsonResult
findByHash
(
@RequestParam
String
md5Value
,
public
JsonResult
findByHash
(
@RequestParam
String
md5Value
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
type
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
type
,
@RequestParam
(
required
=
false
)
Integer
tenantId
)
{
@RequestParam
(
required
=
false
)
Integer
tenantId
)
{
...
@@ -241,7 +283,6 @@ public class InnerController implements IBaseController {
...
@@ -241,7 +283,6 @@ public class InnerController implements IBaseController {
* @yapi http://yapi.quantgroups.com/project/17/interface/api/229
* @yapi http://yapi.quantgroups.com/project/17/interface/api/229
*/
*/
@RequestMapping
(
"/userInfo/search/uuid"
)
@RequestMapping
(
"/userInfo/search/uuid"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据UUID查询用户详细信息"
)
public
JsonResult
findUserInfoByUuid
(
@RequestParam
(
value
=
"uuid"
)
String
uuid
)
{
public
JsonResult
findUserInfoByUuid
(
@RequestParam
(
value
=
"uuid"
)
String
uuid
)
{
log
.
info
(
"需要查询的用户uuidid, uuid:"
+
uuid
);
log
.
info
(
"需要查询的用户uuidid, uuid:"
+
uuid
);
...
@@ -265,7 +306,6 @@ public class InnerController implements IBaseController {
...
@@ -265,7 +306,6 @@ public class InnerController implements IBaseController {
*/
*/
@AccessForbiddenValidator
@AccessForbiddenValidator
@RequestMapping
(
"/userInfo/search/phone"
)
@RequestMapping
(
"/userInfo/search/phone"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据手机号查询用户详细信息"
)
public
JsonResult
findUserInfoByPhone
(
@RequestParam
(
value
=
"phone"
)
String
phone
)
{
public
JsonResult
findUserInfoByPhone
(
@RequestParam
(
value
=
"phone"
)
String
phone
)
{
log
.
info
(
"需要查询的用户phone, phone:"
+
phone
);
log
.
info
(
"需要查询的用户phone, phone:"
+
phone
);
...
@@ -288,7 +328,6 @@ public class InnerController implements IBaseController {
...
@@ -288,7 +328,6 @@ public class InnerController implements IBaseController {
* @yapi http://yapi.quantgroups.com/project/17/interface/api/205
* @yapi http://yapi.quantgroups.com/project/17/interface/api/205
*/
*/
@RequestMapping
(
"/user/getPhoneByUserIds"
)
@RequestMapping
(
"/user/getPhoneByUserIds"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据用户 ID 批量查询用户信息"
)
public
JsonResult
findByIds
(
@RequestParam
(
value
=
"userIds"
)
String
userIdsString
,
@RequestParam
(
required
=
false
)
Integer
tenantId
)
{
public
JsonResult
findByIds
(
@RequestParam
(
value
=
"userIds"
)
String
userIdsString
,
@RequestParam
(
required
=
false
)
Integer
tenantId
)
{
log
.
info
(
"批量查询用户的手机号列表, userIdsString:"
+
userIdsString
+
", tenantId:"
+
tenantId
);
log
.
info
(
"批量查询用户的手机号列表, userIdsString:"
+
userIdsString
+
", tenantId:"
+
tenantId
);
//默认羊小咩租户
//默认羊小咩租户
...
@@ -312,7 +351,6 @@ public class InnerController implements IBaseController {
...
@@ -312,7 +351,6 @@ public class InnerController implements IBaseController {
* @yapi http://yapi.quantgroups.com/project/17/interface/api/211
* @yapi http://yapi.quantgroups.com/project/17/interface/api/211
*/
*/
@RequestMapping
(
"/user/save"
)
@RequestMapping
(
"/user/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"注册用户"
)
public
JsonResult
saveUser
(
String
phoneNo
,
Long
registeredFrom
,
Integer
tenantId
)
{
public
JsonResult
saveUser
(
String
phoneNo
,
Long
registeredFrom
,
Integer
tenantId
)
{
log
.
info
(
"保存用户,phoneNo:{},registeredFrom:{}"
,
phoneNo
,
registeredFrom
);
log
.
info
(
"保存用户,phoneNo:{},registeredFrom:{}"
,
phoneNo
,
registeredFrom
);
//参数验证
//参数验证
...
@@ -353,7 +391,6 @@ public class InnerController implements IBaseController {
...
@@ -353,7 +391,6 @@ public class InnerController implements IBaseController {
* @yapi http://yapi.quantgroups.com/project/17/interface/api/285
* @yapi http://yapi.quantgroups.com/project/17/interface/api/285
*/
*/
@RequestMapping
(
"/user_detail/save"
)
@RequestMapping
(
"/user_detail/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"填写用户详情"
)
public
JsonResult
saveUserDetail
(
@Min
(
value
=
1
,
message
=
"用户id为空"
)
@RequestParam
Long
userId
,
public
JsonResult
saveUserDetail
(
@Min
(
value
=
1
,
message
=
"用户id为空"
)
@RequestParam
Long
userId
,
String
phoneNo
,
String
phoneNo
,
@ChineseName
@RequestParam
String
name
,
@ChineseName
@RequestParam
String
name
,
...
@@ -426,7 +463,6 @@ public class InnerController implements IBaseController {
...
@@ -426,7 +463,6 @@ public class InnerController implements IBaseController {
*/
*/
@AccessForbiddenValidator
@AccessForbiddenValidator
@RequestMapping
(
"/user_detail/search/userId"
)
@RequestMapping
(
"/user_detail/search/userId"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询用户详情"
)
public
JsonResult
findUserDetailByUserId
(
Long
userId
,
Integer
tenantId
)
{
public
JsonResult
findUserDetailByUserId
(
Long
userId
,
Integer
tenantId
)
{
UserDetail
userDetail
=
null
;
UserDetail
userDetail
=
null
;
// 增加容错性,防备DB中存在的脏数据触发异常
// 增加容错性,防备DB中存在的脏数据触发异常
...
@@ -450,7 +486,6 @@ public class InnerController implements IBaseController {
...
@@ -450,7 +486,6 @@ public class InnerController implements IBaseController {
* @yapi http://yapi.quantgroups.com/project/17/interface/api/217
* @yapi http://yapi.quantgroups.com/project/17/interface/api/217
*/
*/
@RequestMapping
(
"/user/search/userId"
)
@RequestMapping
(
"/user/search/userId"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询用户基本信息"
)
public
JsonResult
findUserByUserId
(
Long
userId
,
Integer
tenantId
)
{
public
JsonResult
findUserByUserId
(
Long
userId
,
Integer
tenantId
)
{
User
user
=
userService
.
findById
(
userId
);
User
user
=
userService
.
findById
(
userId
);
if
(
user
!=
null
)
{
if
(
user
!=
null
)
{
...
@@ -472,7 +507,6 @@ public class InnerController implements IBaseController {
...
@@ -472,7 +507,6 @@ public class InnerController implements IBaseController {
*/
*/
@AccessForbiddenValidator
@AccessForbiddenValidator
@RequestMapping
(
"/user_detail/search/phone"
)
@RequestMapping
(
"/user_detail/search/phone"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询用户详情"
)
public
JsonResult
findUserDetailByPhone
(
String
phoneNo
,
Integer
tenantId
)
{
public
JsonResult
findUserDetailByPhone
(
String
phoneNo
,
Integer
tenantId
)
{
UserDetail
userDetail
=
null
;
UserDetail
userDetail
=
null
;
userDetail
=
userDetailService
.
findSlaveByPhoneNo
(
phoneNo
);
userDetail
=
userDetailService
.
findSlaveByPhoneNo
(
phoneNo
);
...
@@ -496,7 +530,6 @@ public class InnerController implements IBaseController {
...
@@ -496,7 +530,6 @@ public class InnerController implements IBaseController {
* @return
* @return
*/
*/
@RequestMapping
(
"/user_full_info/search/phone"
)
@RequestMapping
(
"/user_full_info/search/phone"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询用户全部信息(user+detail)"
)
public
JsonResult
findUserFullInfoByPhone
(
String
phoneNo
)
{
public
JsonResult
findUserFullInfoByPhone
(
String
phoneNo
)
{
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
log
.
warn
(
"[findUserFullInfoByPhone]phoneNo为空"
);
log
.
warn
(
"[findUserFullInfoByPhone]phoneNo为空"
);
...
@@ -517,7 +550,6 @@ public class InnerController implements IBaseController {
...
@@ -517,7 +550,6 @@ public class InnerController implements IBaseController {
* @return
* @return
*/
*/
@RequestMapping
(
"/user_full_info/search/uuid"
)
@RequestMapping
(
"/user_full_info/search/uuid"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询用户全部信息(user+detail)"
)
public
JsonResult
findUserFullInfoByUUuid
(
String
uuid
)
{
public
JsonResult
findUserFullInfoByUUuid
(
String
uuid
)
{
if
(
StringUtils
.
isBlank
(
uuid
))
{
if
(
StringUtils
.
isBlank
(
uuid
))
{
log
.
warn
(
"[findUserFullInfoByUUuid]uuid为空"
);
log
.
warn
(
"[findUserFullInfoByUUuid]uuid为空"
);
...
@@ -540,7 +572,6 @@ public class InnerController implements IBaseController {
...
@@ -540,7 +572,6 @@ public class InnerController implements IBaseController {
* @return
* @return
*/
*/
@RequestMapping
(
"/user_detail/update"
)
@RequestMapping
(
"/user_detail/update"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"更新用户详情"
)
public
JsonResult
updateUserDetail
(
String
qq
,
String
email
,
Long
userId
)
{
public
JsonResult
updateUserDetail
(
String
qq
,
String
email
,
Long
userId
)
{
if
(
Objects
.
isNull
(
userId
)
||
userId
==
0L
)
{
if
(
Objects
.
isNull
(
userId
)
||
userId
==
0L
)
{
return
JsonResult
.
buildErrorStateResult
(
"userId为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"userId为空"
,
null
);
...
@@ -555,7 +586,6 @@ public class InnerController implements IBaseController {
...
@@ -555,7 +586,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/user_detail/update/qq"
)
@RequestMapping
(
"/user_detail/update/qq"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"更新用户QQ"
)
public
JsonResult
updateUserQQ
(
String
qq
,
Long
userId
)
{
public
JsonResult
updateUserQQ
(
String
qq
,
Long
userId
)
{
if
(
StringUtils
.
isEmpty
(
qq
)
||
userId
==
null
||
userId
==
0L
)
{
if
(
StringUtils
.
isEmpty
(
qq
)
||
userId
==
null
||
userId
==
0L
)
{
return
JsonResult
.
buildErrorStateResult
(
"参数校验失败,qq或用户id为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"参数校验失败,qq或用户id为空"
,
null
);
...
@@ -565,7 +595,6 @@ public class InnerController implements IBaseController {
...
@@ -565,7 +595,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/contact/search/user_id"
)
@RequestMapping
(
"/contact/search/user_id"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询用户联系人"
)
public
JsonResult
findContactsByUserId
(
Long
userId
)
{
public
JsonResult
findContactsByUserId
(
Long
userId
)
{
if
(
null
==
userId
)
{
if
(
null
==
userId
)
{
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
...
@@ -578,7 +607,6 @@ public class InnerController implements IBaseController {
...
@@ -578,7 +607,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/contact/save/contacts"
)
@RequestMapping
(
"/contact/save/contacts"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存联系人"
)
public
JsonResult
save2Contact
(
Long
userId
,
@RequestParam
(
value
=
"contacts"
)
String
contactsStr
)
{
public
JsonResult
save2Contact
(
Long
userId
,
@RequestParam
(
value
=
"contacts"
)
String
contactsStr
)
{
if
(
Objects
.
isNull
(
userId
)
||
StringUtils
.
isBlank
(
contactsStr
))
{
if
(
Objects
.
isNull
(
userId
)
||
StringUtils
.
isBlank
(
contactsStr
))
{
log
.
warn
(
"保存用户联系人:参数不完整:userId:{}, contacts:{}"
,
userId
,
contactsStr
);
log
.
warn
(
"保存用户联系人:参数不完整:userId:{}, contacts:{}"
,
userId
,
contactsStr
);
...
@@ -602,7 +630,6 @@ public class InnerController implements IBaseController {
...
@@ -602,7 +630,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/contact/update/contact"
)
@RequestMapping
(
"/contact/update/contact"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"更新用户联系人"
)
public
JsonResult
updateContact
(
@RequestParam
Long
contactId
,
@RequestParam
(
required
=
false
)
String
name
,
public
JsonResult
updateContact
(
@RequestParam
Long
contactId
,
@RequestParam
(
required
=
false
)
String
name
,
@RequestParam
(
required
=
false
)
String
phoneNo
,
@RequestParam
(
required
=
false
)
String
phoneNo
,
@RequestParam
(
required
=
false
)
Relation
relation
,
String
key
,
@RequestParam
(
required
=
false
)
Relation
relation
,
String
key
,
...
@@ -635,7 +662,6 @@ public class InnerController implements IBaseController {
...
@@ -635,7 +662,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/address/search/user_id"
)
@RequestMapping
(
"/address/search/user_id"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询用户地址"
)
public
JsonResult
findAddressByUserId
(
Long
userId
)
{
public
JsonResult
findAddressByUserId
(
Long
userId
)
{
if
(
userId
==
null
)
{
if
(
userId
==
null
)
{
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
...
@@ -648,7 +674,6 @@ public class InnerController implements IBaseController {
...
@@ -648,7 +674,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/address/save"
)
@RequestMapping
(
"/address/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存用户地址"
)
public
JsonResult
saveAddress
(
public
JsonResult
saveAddress
(
Long
userId
,
Long
provinceCode
,
Long
cityCode
,
String
city
,
Long
userId
,
Long
provinceCode
,
Long
cityCode
,
String
city
,
Long
districtCode
,
String
district
,
String
address
,
String
province
)
{
Long
districtCode
,
String
district
,
String
address
,
String
province
)
{
...
@@ -675,7 +700,6 @@ public class InnerController implements IBaseController {
...
@@ -675,7 +700,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/user_ext_info/update"
)
@RequestMapping
(
"/user_ext_info/update"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"更新用户扩展信息"
)
public
JsonResult
updateMarryStatus
(
public
JsonResult
updateMarryStatus
(
Long
userId
,
IncomeEnum
incomeEnum
,
IncomeRangeEnum
incomeRangeEnum
,
Long
userId
,
IncomeEnum
incomeEnum
,
IncomeRangeEnum
incomeRangeEnum
,
OccupationEnum
occupationEnum
,
EducationEnum
educationEnum
,
Boolean
hasCar
,
OccupationEnum
occupationEnum
,
EducationEnum
educationEnum
,
Boolean
hasCar
,
...
@@ -738,8 +762,6 @@ public class InnerController implements IBaseController {
...
@@ -738,8 +762,6 @@ public class InnerController implements IBaseController {
*/
*/
@AccessForbiddenValidator
@AccessForbiddenValidator
@RequestMapping
(
"/user_detail/search_list"
)
@RequestMapping
(
"/user_detail/search_list"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"按照姓名、份证号或手机号查询用户实名信息 - 精确查询,供客服用,不限制入参正确性"
)
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
public
JsonResult
<
List
<
UserDetailVO
>>
searchUserDetailList
(
String
name
,
String
phoneNo
,
String
idNo
)
{
public
JsonResult
<
List
<
UserDetailVO
>>
searchUserDetailList
(
String
name
,
String
phoneNo
,
String
idNo
)
{
log
.
info
(
"searchUserDetailList ,param.name:{},phone:{},idNo:{},ip:{}"
,
name
,
phoneNo
,
idNo
,
getIp
());
log
.
info
(
"searchUserDetailList ,param.name:{},phone:{},idNo:{},ip:{}"
,
name
,
phoneNo
,
idNo
,
getIp
());
if
(
StringUtils
.
isBlank
(
name
)
&&
StringUtils
.
isBlank
(
phoneNo
)
&&
StringUtils
.
isBlank
(
idNo
))
{
if
(
StringUtils
.
isBlank
(
name
)
&&
StringUtils
.
isBlank
(
phoneNo
)
&&
StringUtils
.
isBlank
(
idNo
))
{
...
@@ -757,12 +779,10 @@ public class InnerController implements IBaseController {
...
@@ -757,12 +779,10 @@ public class InnerController implements IBaseController {
* @param userName - 用户姓名
* @param userName - 用户姓名
* @return JsonResult<List < UserDetail>>
* @return JsonResult<List < UserDetail>>
*/
*/
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"按照身份证号和手机号查询用户实名信息查询 - 模糊查询"
)
@RequestMapping
(
"/user_detail/fuzzyQuery"
)
@RequestMapping
(
"/user_detail/fuzzyQuery"
)
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
public
JsonResult
<
List
<
UserDetail
>>
fuzzyQueryUserDetailList
(
String
phoneNo
,
public
JsonResult
<
List
<
UserDetail
>>
fuzzyQueryUserDetailList
(
@ApiParam
(
value
=
"手机号"
)
String
phoneNo
,
String
idNo
,
@ApiParam
(
value
=
"身份证号"
)
String
idNo
,
String
userName
)
{
@ApiParam
(
value
=
"用户姓名"
)
String
userName
)
{
log
.
info
(
"fuzzyQueryUserDetailList, phone:{},idNo:{},userName:{},ip:{}"
,
phoneNo
,
idNo
,
userName
,
getIp
());
log
.
info
(
"fuzzyQueryUserDetailList, phone:{},idNo:{},userName:{},ip:{}"
,
phoneNo
,
idNo
,
userName
,
getIp
());
if
(
StringUtils
.
isBlank
(
phoneNo
)
&&
StringUtils
.
isBlank
(
idNo
))
{
if
(
StringUtils
.
isBlank
(
phoneNo
)
&&
StringUtils
.
isBlank
(
idNo
))
{
return
JsonResult
.
buildErrorStateResult
(
"查询条件不能为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"查询条件不能为空"
,
null
);
...
@@ -793,7 +813,6 @@ public class InnerController implements IBaseController {
...
@@ -793,7 +813,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/user_ext_info/search/user_id"
)
@RequestMapping
(
"/user_ext_info/search/user_id"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询用户扩展信息"
)
public
JsonResult
searchUserExtInfoByUserId
(
Long
userId
)
{
public
JsonResult
searchUserExtInfoByUserId
(
Long
userId
)
{
if
(
userId
==
null
)
{
if
(
userId
==
null
)
{
return
JsonResult
.
buildErrorStateResult
(
"userId不能为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"userId不能为空"
,
null
);
...
@@ -806,7 +825,6 @@ public class InnerController implements IBaseController {
...
@@ -806,7 +825,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/user/query/openId"
)
@RequestMapping
(
"/user/query/openId"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询微信openId"
)
public
JsonResult
queryOpenIdByUserId
(
Long
userId
)
{
public
JsonResult
queryOpenIdByUserId
(
Long
userId
)
{
if
(
userId
==
null
)
{
if
(
userId
==
null
)
{
return
JsonResult
.
buildErrorStateResult
(
"userId不能为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"userId不能为空"
,
null
);
...
@@ -832,7 +850,6 @@ public class InnerController implements IBaseController {
...
@@ -832,7 +850,6 @@ public class InnerController implements IBaseController {
* }
* }
*/
*/
@RequestMapping
(
"/user-association/search"
)
@RequestMapping
(
"/user-association/search"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询用户user+userDetail"
)
public
JsonResult
findUserAssociationModel
(
Long
id
,
String
phoneNo
,
String
uuid
)
{
public
JsonResult
findUserAssociationModel
(
Long
id
,
String
phoneNo
,
String
uuid
)
{
User
user
=
null
;
User
user
=
null
;
if
(!
Objects
.
isNull
(
id
)
&&
id
>
0
)
{
if
(!
Objects
.
isNull
(
id
)
&&
id
>
0
)
{
...
@@ -920,15 +937,9 @@ public class InnerController implements IBaseController {
...
@@ -920,15 +937,9 @@ public class InnerController implements IBaseController {
return
bean
;
return
bean
;
}
}
@ApiResponses
({
@ApiResponse
(
code
=
HttpStatus
.
SC_OK
,
message
=
"Nice!"
,
responseContainer
=
"UserAssociationModel = {Long id, String uuid, String phoneNo, String idNo, String name, String gender, String marryStatus, String educationEnum, String occupationEnum, String qq, Long registerFrom, Long merchantId, List<AddressModel> addressList, List<ContactModel> contactList}"
),
@ApiResponse
(
code
=
HttpStatus
.
SC_BAD_REQUEST
,
message
=
"Invalid params supplied"
,
response
=
cn
.
quantgroup
.
xyqb
.
model
.
ApiResponse
.
class
),
@ApiResponse
(
code
=
HttpStatus
.
SC_NOT_FOUND
,
message
=
"User not found"
,
response
=
cn
.
quantgroup
.
xyqb
.
model
.
ApiResponse
.
class
)
})
@ApiOperation
(
notes
=
"用户全量信息查询接口"
,
value
=
"用户全量信息查询接口"
,
nickname
=
"findUserAssociationModel"
)
@RequestMapping
(
path
=
"/user-association/search/userId"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
@RequestMapping
(
path
=
"/user-association/search/userId"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
JsonResult
findUserAssociationModelByUserId
(
@ApiParam
(
value
=
"用户ID"
,
required
=
false
)
@RequestParam
(
name
=
"userId"
,
required
=
false
)
Long
userId
,
public
JsonResult
findUserAssociationModelByUserId
(
@RequestParam
(
name
=
"userId"
,
required
=
false
)
Long
userId
,
@
ApiParam
(
value
=
"用户注册手机号"
,
required
=
false
)
@
RequestParam
(
name
=
"phoneNo"
,
required
=
false
)
String
phoneNo
)
{
@RequestParam
(
name
=
"phoneNo"
,
required
=
false
)
String
phoneNo
)
{
boolean
userIdOk
=
Objects
.
nonNull
(
userId
)
&&
userId
>
0
;
boolean
userIdOk
=
Objects
.
nonNull
(
userId
)
&&
userId
>
0
;
boolean
phoneNoOk
=
ValidationUtil
.
validatePhoneNo
(
phoneNo
);
boolean
phoneNoOk
=
ValidationUtil
.
validatePhoneNo
(
phoneNo
);
if
(!
userIdOk
&&
!
phoneNoOk
)
{
if
(!
userIdOk
&&
!
phoneNoOk
)
{
...
@@ -1083,7 +1094,6 @@ public class InnerController implements IBaseController {
...
@@ -1083,7 +1094,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/user/spouse/save"
)
@RequestMapping
(
"/user/spouse/save"
)
@ApiOperation
(
value
=
"保存配偶信息"
,
httpMethod
=
"POST"
)
public
JsonResult
saveSpouse
(
Long
userId
,
MaritalStatus
status
,
String
spousePhone
,
String
spouseName
)
{
public
JsonResult
saveSpouse
(
Long
userId
,
MaritalStatus
status
,
String
spousePhone
,
String
spouseName
)
{
if
(
userId
==
null
||
userId
==
0
)
{
if
(
userId
==
null
||
userId
==
0
)
{
return
JsonResult
.
buildErrorStateResult
(
"用户不能为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"用户不能为空"
,
null
);
...
@@ -1108,7 +1118,6 @@ public class InnerController implements IBaseController {
...
@@ -1108,7 +1118,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/user/spouse/findByUserId"
)
@RequestMapping
(
"/user/spouse/findByUserId"
)
@ApiOperation
(
value
=
"查询配偶信息"
,
httpMethod
=
"POST"
)
public
JsonResult
querySpouse
(
Long
userId
)
{
public
JsonResult
querySpouse
(
Long
userId
)
{
if
(
userId
==
null
||
userId
==
0
)
{
if
(
userId
==
null
||
userId
==
0
)
{
return
JsonResult
.
buildErrorStateResult
(
"用户不能为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"用户不能为空"
,
null
);
...
@@ -1122,7 +1131,6 @@ public class InnerController implements IBaseController {
...
@@ -1122,7 +1131,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/user/findByPhones"
)
@RequestMapping
(
"/user/findByPhones"
)
@ApiOperation
(
value
=
"根据手机号查询用户信息"
,
httpMethod
=
"POST"
)
public
JsonResult
getUserIdByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
public
JsonResult
getUserIdByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
if
(
StringUtils
.
isBlank
(
userPhones
))
{
if
(
StringUtils
.
isBlank
(
userPhones
))
{
return
JsonResult
.
buildErrorStateResult
(
"传入用户手机号不可为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"传入用户手机号不可为空"
,
null
);
...
@@ -1153,8 +1161,6 @@ public class InnerController implements IBaseController {
...
@@ -1153,8 +1161,6 @@ public class InnerController implements IBaseController {
* @return
* @return
*/
*/
@RequestMapping
(
"/uuid/findByPhones"
)
@RequestMapping
(
"/uuid/findByPhones"
)
@ApiOperation
(
value
=
"根据手机号批量查询UUID"
,
httpMethod
=
"POST"
)
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
public
JsonResult
getUuidsByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
public
JsonResult
getUuidsByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
if
(
StringUtils
.
isBlank
(
userPhones
))
{
if
(
StringUtils
.
isBlank
(
userPhones
))
{
return
JsonResult
.
buildErrorStateResult
(
"传入用户手机号不可为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"传入用户手机号不可为空"
,
null
);
...
@@ -1187,7 +1193,6 @@ public class InnerController implements IBaseController {
...
@@ -1187,7 +1193,6 @@ public class InnerController implements IBaseController {
* 保存用户信息,其中地址信息和联系人信息为非必要条件;注意:如果同时提供了province和address字段则需要保证Address的完整
* 保存用户信息,其中地址信息和联系人信息为非必要条件;注意:如果同时提供了province和address字段则需要保证Address的完整
*/
*/
@RequestMapping
(
"/user/save_multi"
)
@RequestMapping
(
"/user/save_multi"
)
@ApiOperation
(
value
=
"保存多种用户信息"
,
httpMethod
=
"POST"
)
public
JsonResult
saveMulti
(
String
registeredFrom
,
String
channelId
,
String
phoneNo
,
String
name
,
String
idNo
,
String
provinceCode
,
String
province
,
String
cityCode
,
String
city
,
String
districtCode
,
String
district
,
String
address
,
String
contacts
,
@RequestParam
(
defaultValue
=
"0"
,
required
=
false
)
Long
btRegisterChannelId
)
{
public
JsonResult
saveMulti
(
String
registeredFrom
,
String
channelId
,
String
phoneNo
,
String
name
,
String
idNo
,
String
provinceCode
,
String
province
,
String
cityCode
,
String
city
,
String
districtCode
,
String
district
,
String
address
,
String
contacts
,
@RequestParam
(
defaultValue
=
"0"
,
required
=
false
)
Long
btRegisterChannelId
)
{
if
(!
NumberUtils
.
isDigits
(
registeredFrom
))
{
if
(!
NumberUtils
.
isDigits
(
registeredFrom
))
{
return
JsonResult
.
buildErrorStateResult
(
"注册渠道异常."
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"注册渠道异常."
,
null
);
...
@@ -1266,7 +1271,6 @@ public class InnerController implements IBaseController {
...
@@ -1266,7 +1271,6 @@ public class InnerController implements IBaseController {
//根据日期时间段查询新注册用户信息并返回
//根据日期时间段查询新注册用户信息并返回
@RequestMapping
(
"/contract/queryRegisterUsers"
)
@RequestMapping
(
"/contract/queryRegisterUsers"
)
@ApiOperation
(
value
=
"根据日期时间段查询新注册用户信息并返回"
,
httpMethod
=
"POST"
)
public
JsonResult
findRegisterUserByTime
(
String
beginTime
,
String
endTime
)
{
public
JsonResult
findRegisterUserByTime
(
String
beginTime
,
String
endTime
)
{
if
(
null
==
beginTime
||
endTime
==
null
)
{
if
(
null
==
beginTime
||
endTime
==
null
)
{
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
...
@@ -1285,7 +1289,6 @@ public class InnerController implements IBaseController {
...
@@ -1285,7 +1289,6 @@ public class InnerController implements IBaseController {
* @return
* @return
*/
*/
@RequestMapping
(
"/verifyPhoneAndCode"
)
@RequestMapping
(
"/verifyPhoneAndCode"
)
@ApiOperation
(
value
=
"验证手机号和验证码是否匹配"
,
httpMethod
=
"POST"
)
public
JsonResult
verifyPhoneAndCode
(
public
JsonResult
verifyPhoneAndCode
(
@RequestParam
String
phoneNo
,
@RequestParam
String
verificationCode
,
@RequestParam
String
phoneNo
,
@RequestParam
String
verificationCode
,
@RequestParam
String
appChannel
,
@RequestParam
String
appChannel
,
...
@@ -1335,7 +1338,6 @@ public class InnerController implements IBaseController {
...
@@ -1335,7 +1338,6 @@ public class InnerController implements IBaseController {
}
}
@RequestMapping
(
"/login"
)
@RequestMapping
(
"/login"
)
@ApiOperation
(
value
=
"登陆....怎么又一个..."
,
httpMethod
=
"POST"
)
public
JsonResult
login
(
@RequestParam
String
phoneNo
,
@RequestParam
String
password
)
{
public
JsonResult
login
(
@RequestParam
String
phoneNo
,
@RequestParam
String
password
)
{
User
user
=
checkPhoneNoAndPassword
(
phoneNo
,
password
);
User
user
=
checkPhoneNoAndPassword
(
phoneNo
,
password
);
if
(
user
==
null
)
{
if
(
user
==
null
)
{
...
@@ -1393,7 +1395,6 @@ public class InnerController implements IBaseController {
...
@@ -1393,7 +1395,6 @@ public class InnerController implements IBaseController {
* @return
* @return
*/
*/
@RequestMapping
(
"/user/enable"
)
@RequestMapping
(
"/user/enable"
)
@ApiOperation
(
value
=
"查看用户是否存在,存在则返回id,uuid"
,
httpMethod
=
"POST"
)
public
JsonResult
isEnable
(
String
phoneNo
)
{
public
JsonResult
isEnable
(
String
phoneNo
)
{
boolean
flag
=
false
;
boolean
flag
=
false
;
Map
validMap
=
Maps
.
newHashMap
();
Map
validMap
=
Maps
.
newHashMap
();
...
@@ -1415,7 +1416,6 @@ public class InnerController implements IBaseController {
...
@@ -1415,7 +1416,6 @@ public class InnerController implements IBaseController {
* @param userId
* @param userId
* @return
* @return
*/
*/
@ApiOperation
(
notes
=
"激活/启用 用户 - 供内部系统免密调用"
,
value
=
"激活/启用 用户"
,
nickname
=
"activeUser"
)
@RequestMapping
(
path
=
"/user/active"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
path
=
"/user/active"
,
method
=
RequestMethod
.
POST
)
public
JsonResult
activeUser
(
Long
userId
)
{
public
JsonResult
activeUser
(
Long
userId
)
{
boolean
flushed
=
flushUserStatus
(
userId
,
true
);
boolean
flushed
=
flushUserStatus
(
userId
,
true
);
...
@@ -1430,7 +1430,6 @@ public class InnerController implements IBaseController {
...
@@ -1430,7 +1430,6 @@ public class InnerController implements IBaseController {
* @param userId
* @param userId
* @return
* @return
*/
*/
@ApiOperation
(
notes
=
"注销/禁用 用户 - 供内部系统免密调用"
,
value
=
"注销/禁用 用户"
,
nickname
=
"forbiddenUser"
)
@RequestMapping
(
path
=
"/user/disable"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
path
=
"/user/disable"
,
method
=
RequestMethod
.
POST
)
public
JsonResult
forbiddenUser
(
Long
userId
)
{
public
JsonResult
forbiddenUser
(
Long
userId
)
{
boolean
flushed
=
flushUserStatus
(
userId
,
false
);
boolean
flushed
=
flushUserStatus
(
userId
,
false
);
...
@@ -1446,7 +1445,6 @@ public class InnerController implements IBaseController {
...
@@ -1446,7 +1445,6 @@ public class InnerController implements IBaseController {
* @param idNo - 身份证号
* @param idNo - 身份证号
* @param name - 姓名
* @param name - 姓名
*/
*/
@ApiOperation
(
notes
=
"重置用户实名信息接口 - 供内部系统免密调用"
,
value
=
"重置用户实名信息"
,
nickname
=
"resetName"
)
@RequestMapping
(
path
=
"/userDetail/reset/{userId}"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
path
=
"/userDetail/reset/{userId}"
,
method
=
RequestMethod
.
POST
)
public
JsonResult
resetName
(
@PathVariable
(
"userId"
)
Long
userId
,
@RequestParam
(
"name"
)
String
name
,
@RequestParam
(
"idNo"
)
String
idNo
)
{
public
JsonResult
resetName
(
@PathVariable
(
"userId"
)
Long
userId
,
@RequestParam
(
"name"
)
String
name
,
@RequestParam
(
"idNo"
)
String
idNo
)
{
log
.
info
(
"重置用户实名信息 userId:{},name:{},idNo:{}"
,
userId
,
name
,
idNo
);
log
.
info
(
"重置用户实名信息 userId:{},name:{},idNo:{}"
,
userId
,
name
,
idNo
);
...
@@ -1471,7 +1469,6 @@ public class InnerController implements IBaseController {
...
@@ -1471,7 +1469,6 @@ public class InnerController implements IBaseController {
* 重置密码接口
* 重置密码接口
* -- 供内部系统免密调用
* -- 供内部系统免密调用
*/
*/
@ApiOperation
(
notes
=
"重置密码接口 - 供内部系统免密调用"
,
value
=
"重置密码"
,
nickname
=
"resetPassword"
)
@RequestMapping
(
path
=
"/user/password/reset"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
path
=
"/user/password/reset"
,
method
=
RequestMethod
.
POST
)
public
JsonResult
resetPassword
(
@RequestParam
(
"phone"
)
String
phone
,
@RequestParam
(
required
=
false
)
String
password
)
{
public
JsonResult
resetPassword
(
@RequestParam
(
"phone"
)
String
phone
,
@RequestParam
(
required
=
false
)
String
password
)
{
if
(
ValidationUtil
.
validatePhoneNo
(
phone
))
{
if
(
ValidationUtil
.
validatePhoneNo
(
phone
))
{
...
@@ -1627,7 +1624,6 @@ public class InnerController implements IBaseController {
...
@@ -1627,7 +1624,6 @@ public class InnerController implements IBaseController {
* @param userId 用户id
* @param userId 用户id
* @return 销户结果
* @return 销户结果
*/
*/
@ApiOperation
(
value
=
"注销用户"
,
httpMethod
=
"GET"
,
notes
=
"注销用户"
)
@GetMapping
(
"/user/delete/{userId}"
)
@GetMapping
(
"/user/delete/{userId}"
)
public
JsonResult
<?>
deregister
(
@NotNull
@PathVariable
(
"userId"
)
Long
userId
)
{
public
JsonResult
<?>
deregister
(
@NotNull
@PathVariable
(
"userId"
)
Long
userId
)
{
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/user/SyncUserController.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
internal
.
user
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
internal
.
user
;
import
java.sql.Timestamp
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.dao.DataIntegrityViolationException
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
cn.quantgroup.xyqb.aspect.accessable.IpValidator
;
import
cn.quantgroup.xyqb.aspect.accessable.IpValidator
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
...
@@ -29,6 +12,17 @@ import cn.quantgroup.xyqb.service.user.IUserDetailService;
...
@@ -29,6 +12,17 @@ import cn.quantgroup.xyqb.service.user.IUserDetailService;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.validator.ChineseName
;
import
cn.quantgroup.xyqb.validator.ChineseName
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.dao.DataIntegrityViolationException
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* 同步用户数据,第三方模块访问时
* 同步用户数据,第三方模块访问时
...
@@ -47,7 +41,6 @@ public class SyncUserController {
...
@@ -47,7 +41,6 @@ public class SyncUserController {
private
IIdCardService
idCardService
;
private
IIdCardService
idCardService
;
@RequestMapping
(
"/save_detail"
)
@RequestMapping
(
"/save_detail"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存/更新用户实名信息"
)
public
JsonResult
saveUserDetail
(
String
key
,
String
phoneNo
,
String
idNo
,
public
JsonResult
saveUserDetail
(
String
key
,
String
phoneNo
,
String
idNo
,
@ChineseName
@RequestParam
String
name
)
{
@ChineseName
@RequestParam
String
name
)
{
if
(!
Objects
.
equals
(
KEY
,
key
))
{
if
(!
Objects
.
equals
(
KEY
,
key
))
{
...
@@ -104,7 +97,6 @@ public class SyncUserController {
...
@@ -104,7 +97,6 @@ public class SyncUserController {
}
}
@RequestMapping
(
"/user"
)
@RequestMapping
(
"/user"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询用户详情"
)
public
JsonResult
fetchUser
(
String
key
,
String
phoneNo
)
{
public
JsonResult
fetchUser
(
String
key
,
String
phoneNo
)
{
if
(!
Objects
.
equals
(
KEY
,
key
)
||
!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
if
(!
Objects
.
equals
(
KEY
,
key
)
||
!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
...
@@ -142,7 +134,6 @@ public class SyncUserController {
...
@@ -142,7 +134,6 @@ public class SyncUserController {
*/
*/
@IpValidator
@IpValidator
@RequestMapping
(
"/listByUserIds"
)
@RequestMapping
(
"/listByUserIds"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据用户主键批量获取用户实名信息"
)
public
JsonResult
listByUserIds
(
String
userIds
)
{
public
JsonResult
listByUserIds
(
String
userIds
)
{
// 过滤掉合法的多个数值串间的空白值
// 过滤掉合法的多个数值串间的空白值
userIds
=
ValidationUtil
.
filterNumbers
(
userIds
);
userIds
=
ValidationUtil
.
filterNumbers
(
userIds
);
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/user/UserApiController.java
View file @
3c8b53b3
...
@@ -11,16 +11,17 @@ import cn.quantgroup.xyqb.service.sms.ISmsService;
...
@@ -11,16 +11,17 @@ import cn.quantgroup.xyqb.service.sms.ISmsService;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
io.swagger.annotations.ApiOperation
;
import
java.util.Objects
;
import
io.swagger.annotations.ApiParam
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
javax.annotation.Resource
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
java.util.Objects
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* Created by FrankChow on 15/12/16.
* Created by FrankChow on 15/12/16.
...
@@ -63,12 +64,10 @@ public class UserApiController {
...
@@ -63,12 +64,10 @@ public class UserApiController {
* @param prolong - 是否延续生命期,可选参数,默认为: false - 不延续
* @param prolong - 是否延续生命期,可选参数,默认为: false - 不延续
* @return
* @return
*/
*/
@ApiOperation
(
notes
=
"检查token是否有效,如果有效,可选择是否延续生命期(延续后有效期24Hour)"
,
value
=
"Check token and then prolong session"
,
nickname
=
"checkToken"
)
@IpValidator
@IpValidator
@RequestMapping
(
value
=
"/valid/{token}"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/valid/{token}"
,
method
=
RequestMethod
.
POST
)
public
JsonResult
checkToken
(
@ApiParam
(
value
=
"sid,session的id"
,
required
=
true
)
public
JsonResult
checkToken
(
@PathVariable
(
"token"
)
String
token
,
@PathVariable
(
"token"
)
String
token
,
@ApiParam
(
value
=
"是否延续生命期,可选参数,默认为: false - 不延续"
)
@RequestParam
(
name
=
"prolong"
,
required
=
false
,
defaultValue
=
"false"
)
Boolean
prolong
,
@RequestParam
(
name
=
"prolong"
,
required
=
false
,
defaultValue
=
"false"
)
Boolean
prolong
,
@RequestParam
(
name
=
"prolongTime"
,
required
=
false
,
defaultValue
=
"86400"
)
Long
prolongTime
)
{
@RequestParam
(
name
=
"prolongTime"
,
required
=
false
,
defaultValue
=
"86400"
)
Long
prolongTime
)
{
if
(
Objects
.
isNull
(
token
)
||
!
ValidationUtil
.
validateToken
(
token
))
{
if
(
Objects
.
isNull
(
token
)
||
!
ValidationUtil
.
validateToken
(
token
))
{
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/user/center/UserCenterController.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
internal
.
user
.
center
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
internal
.
user
.
center
;
import
cn.quantgroup.user.enums.*
;
import
cn.quantgroup.user.enums.BizType
;
import
cn.quantgroup.user.enums.EducationEnum
;
import
cn.quantgroup.user.enums.IncomeRangeEnum
;
import
cn.quantgroup.user.enums.MaritalStatus
;
import
cn.quantgroup.user.enums.OccupationEnum
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.aspect.forbidden.AccessForbiddenValidator
;
import
cn.quantgroup.xyqb.aspect.forbidden.AccessForbiddenValidator
;
import
cn.quantgroup.xyqb.aspect.limit.PasswordFreeAccessValidator
;
import
cn.quantgroup.xyqb.aspect.limit.PasswordFreeAccessValidator
;
import
cn.quantgroup.xyqb.aspect.lock.RedisLock
;
import
cn.quantgroup.xyqb.aspect.lock.RedisLock
;
import
cn.quantgroup.xyqb.entity.*
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserAttached
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
cn.quantgroup.xyqb.event.UserExtInfoSaveEvent
;
import
cn.quantgroup.xyqb.event.UserExtInfoSaveEvent
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.service.user.*
;
import
cn.quantgroup.xyqb.service.user.IAddressService
;
import
cn.quantgroup.xyqb.service.user.IContactService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserExtInfoService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.UserCenterService
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
io.swagger.annotations.ApiOperation
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
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.ApplicationEventPublisher
;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
java.util.HashMap
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
java.util.List
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
java.util.Map
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* Created by 11 on 2017/3/22.
* Created by 11 on 2017/3/22.
...
@@ -86,7 +104,6 @@ public class UserCenterController {
...
@@ -86,7 +104,6 @@ public class UserCenterController {
* @return
* @return
*/
*/
@RequestMapping
(
"/queryNick"
)
@RequestMapping
(
"/queryNick"
)
@ApiOperation
(
value
=
"查询昵称"
,
notes
=
"查询用户昵称"
,
httpMethod
=
"POST"
)
public
JsonResult
queryUserNick
(
String
phoneNo
)
{
public
JsonResult
queryUserNick
(
String
phoneNo
)
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
log
.
error
(
"手机号为空,phoneNo:{}"
,
phoneNo
);
log
.
error
(
"手机号为空,phoneNo:{}"
,
phoneNo
);
...
@@ -112,7 +129,6 @@ public class UserCenterController {
...
@@ -112,7 +129,6 @@ public class UserCenterController {
* @return
* @return
*/
*/
@RequestMapping
(
"/saveNick"
)
@RequestMapping
(
"/saveNick"
)
@ApiOperation
(
value
=
"保存昵称"
,
notes
=
"保存用户昵称"
,
httpMethod
=
"POST"
)
public
JsonResult
saveUserNick
(
String
phoneNo
,
String
nick
)
{
public
JsonResult
saveUserNick
(
String
phoneNo
,
String
nick
)
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
log
.
error
(
"手机号为空,phoneNo:{}"
,
phoneNo
);
log
.
error
(
"手机号为空,phoneNo:{}"
,
phoneNo
);
...
@@ -127,7 +143,6 @@ public class UserCenterController {
...
@@ -127,7 +143,6 @@ public class UserCenterController {
}
}
@RequestMapping
(
"/kdsp/saveNick"
)
@RequestMapping
(
"/kdsp/saveNick"
)
@ApiOperation
(
value
=
"保存昵称"
,
notes
=
"保存用户昵称"
,
httpMethod
=
"POST"
)
public
JsonResult
saveUserNickForKdsp
(
Long
userId
,
String
nick
)
{
public
JsonResult
saveUserNickForKdsp
(
Long
userId
,
String
nick
)
{
if
(
null
==
userId
||
userId
==
0L
)
{
if
(
null
==
userId
||
userId
==
0L
)
{
return
JsonResult
.
buildErrorStateResult
(
"该用户不存在"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"该用户不存在"
,
null
);
...
@@ -137,7 +152,6 @@ public class UserCenterController {
...
@@ -137,7 +152,6 @@ public class UserCenterController {
}
}
@RequestMapping
(
"/kdsp/save/avatar"
)
@RequestMapping
(
"/kdsp/save/avatar"
)
@ApiOperation
(
value
=
"保存头像"
,
notes
=
"保存用户头像"
,
httpMethod
=
"POST"
)
public
JsonResult
saveUserAvatarAddrForKdsp
(
Long
userId
,
String
avatarUrl
)
{
public
JsonResult
saveUserAvatarAddrForKdsp
(
Long
userId
,
String
avatarUrl
)
{
if
(
StringUtils
.
isBlank
(
avatarUrl
))
{
if
(
StringUtils
.
isBlank
(
avatarUrl
))
{
log
.
error
(
"参数不合法:avatarUrl:{}}"
,
avatarUrl
);
log
.
error
(
"参数不合法:avatarUrl:{}}"
,
avatarUrl
);
...
@@ -162,7 +176,6 @@ public class UserCenterController {
...
@@ -162,7 +176,6 @@ public class UserCenterController {
* @return
* @return
*/
*/
@RequestMapping
(
"/save/avatar"
)
@RequestMapping
(
"/save/avatar"
)
@ApiOperation
(
value
=
"保存头像"
,
notes
=
"保存用户头像"
,
httpMethod
=
"POST"
)
public
JsonResult
SaveUserAvatarAddr
(
String
phoneNo
,
String
avatarUrl
)
{
public
JsonResult
SaveUserAvatarAddr
(
String
phoneNo
,
String
avatarUrl
)
{
if
(
StringUtils
.
isBlank
(
avatarUrl
)
||
StringUtils
.
isBlank
(
phoneNo
))
{
if
(
StringUtils
.
isBlank
(
avatarUrl
)
||
StringUtils
.
isBlank
(
phoneNo
))
{
log
.
error
(
"参数不合法:avatarUrl:{}, phoneNo:{}"
,
avatarUrl
,
phoneNo
);
log
.
error
(
"参数不合法:avatarUrl:{}, phoneNo:{}"
,
avatarUrl
,
phoneNo
);
...
@@ -190,7 +203,6 @@ public class UserCenterController {
...
@@ -190,7 +203,6 @@ public class UserCenterController {
* @return
* @return
*/
*/
@RequestMapping
(
"/query/verified"
)
@RequestMapping
(
"/query/verified"
)
@ApiOperation
(
value
=
"查询用户是否实名认证"
,
notes
=
"查询用户是否实名认证"
,
httpMethod
=
"POST"
)
public
JsonResult
queryVerified
(
String
phoneNo
)
{
public
JsonResult
queryVerified
(
String
phoneNo
)
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
log
.
error
(
"手机号为空,phoneNo:{}"
,
phoneNo
);
log
.
error
(
"手机号为空,phoneNo:{}"
,
phoneNo
);
...
@@ -217,7 +229,6 @@ public class UserCenterController {
...
@@ -217,7 +229,6 @@ public class UserCenterController {
@AccessForbiddenValidator
@AccessForbiddenValidator
@PasswordFreeAccessValidator
@PasswordFreeAccessValidator
@RequestMapping
(
"/personalData"
)
@RequestMapping
(
"/personalData"
)
@ApiOperation
(
value
=
"查询个人资料信息"
,
notes
=
"查询个人资料信息"
,
httpMethod
=
"POST"
)
public
JsonResult
personalData
(
String
phoneNo
)
{
public
JsonResult
personalData
(
String
phoneNo
)
{
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
log
.
error
(
"手机号为空,phoneNo:{}"
,
phoneNo
);
log
.
error
(
"手机号为空,phoneNo:{}"
,
phoneNo
);
...
@@ -260,7 +271,6 @@ public class UserCenterController {
...
@@ -260,7 +271,6 @@ public class UserCenterController {
*/
*/
@AccessForbiddenValidator
@AccessForbiddenValidator
@RequestMapping
(
"/contacts/save"
)
@RequestMapping
(
"/contacts/save"
)
@ApiOperation
(
value
=
"保存用户联系人"
,
notes
=
"保存用户联系人"
,
httpMethod
=
"POST"
)
public
JsonResult
saveUserContact
(
String
phoneNo
,
String
contactJson
)
{
public
JsonResult
saveUserContact
(
String
phoneNo
,
String
contactJson
)
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
log
.
error
(
"保存联系人,参数错误. phoneNo:{}"
,
phoneNo
);
log
.
error
(
"保存联系人,参数错误. phoneNo:{}"
,
phoneNo
);
...
@@ -302,7 +312,6 @@ public class UserCenterController {
...
@@ -302,7 +312,6 @@ public class UserCenterController {
* @return
* @return
*/
*/
@RequestMapping
(
"/address/save"
)
@RequestMapping
(
"/address/save"
)
@ApiOperation
(
value
=
"保存用户地址"
,
notes
=
"保存用户地址"
,
httpMethod
=
"POST"
)
public
JsonResult
saveUserAddress
(
String
phoneNo
,
String
province
,
Long
provinceCode
,
String
city
,
Long
cityCode
,
String
address
,
public
JsonResult
saveUserAddress
(
String
phoneNo
,
String
province
,
Long
provinceCode
,
String
city
,
Long
cityCode
,
String
address
,
Long
districtCode
,
String
district
)
{
Long
districtCode
,
String
district
)
{
log
.
info
(
"保存用户地址信息, phoneNo:{}, province:{}, provinceCode:{}, city:{}, cityCode:{},district:{}, address:{}"
,
phoneNo
,
province
,
provinceCode
,
city
,
cityCode
,
district
,
address
);
log
.
info
(
"保存用户地址信息, phoneNo:{}, province:{}, provinceCode:{}, city:{}, cityCode:{},district:{}, address:{}"
,
phoneNo
,
province
,
provinceCode
,
city
,
cityCode
,
district
,
address
);
...
@@ -338,7 +347,6 @@ public class UserCenterController {
...
@@ -338,7 +347,6 @@ public class UserCenterController {
* @return
* @return
*/
*/
@RequestMapping
(
"/searchAddress/phoneNo"
)
@RequestMapping
(
"/searchAddress/phoneNo"
)
@ApiOperation
(
value
=
"查询用户地址"
,
notes
=
"查询用户地址"
,
httpMethod
=
"POST"
)
public
JsonResult
searchUserAddress
(
String
phoneNo
)
{
public
JsonResult
searchUserAddress
(
String
phoneNo
)
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
...
@@ -360,7 +368,6 @@ public class UserCenterController {
...
@@ -360,7 +368,6 @@ public class UserCenterController {
*/
*/
@AccessForbiddenValidator
@AccessForbiddenValidator
@RequestMapping
(
"/searchContacts/phoneNo"
)
@RequestMapping
(
"/searchContacts/phoneNo"
)
@ApiOperation
(
value
=
"查询用户联系人"
,
notes
=
"查询用户联系人"
,
httpMethod
=
"POST"
)
public
JsonResult
searchUserContacts
(
String
phoneNo
)
{
public
JsonResult
searchUserContacts
(
String
phoneNo
)
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
...
@@ -386,7 +393,6 @@ public class UserCenterController {
...
@@ -386,7 +393,6 @@ public class UserCenterController {
@AccessForbiddenValidator
@AccessForbiddenValidator
@RequestMapping
(
"/save/userExtInfo"
)
@RequestMapping
(
"/save/userExtInfo"
)
@RedisLock
(
prefix
=
"lock:user:ext:"
,
key
=
"#this[0]"
)
@RedisLock
(
prefix
=
"lock:user:ext:"
,
key
=
"#this[0]"
)
@ApiOperation
(
value
=
"保存用户经济学历等信息"
,
notes
=
"保存用户经济学历等信息"
,
httpMethod
=
"POST"
)
public
JsonResult
saveUserExtInfo
(
String
phoneNo
,
EducationEnum
educationEnum
,
MaritalStatus
maritalStatus
,
IncomeRangeEnum
incomeRangeEnum
,
OccupationEnum
occupationEnum
)
{
public
JsonResult
saveUserExtInfo
(
String
phoneNo
,
EducationEnum
educationEnum
,
MaritalStatus
maritalStatus
,
IncomeRangeEnum
incomeRangeEnum
,
OccupationEnum
occupationEnum
)
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/user/resp/UserFullResp.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
internal
.
user
.
resp
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
internal
.
user
.
resp
;
import
cn.quantgroup.user.enums.BizType
;
import
cn.quantgroup.user.enums.BizType
;
import
java.util.List
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
java.util.List
;
@Data
@Data
@Builder
@Builder
@NoArgsConstructor
@NoArgsConstructor
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/applet/AppletController.java
View file @
3c8b53b3
...
@@ -7,13 +7,16 @@ import cn.quantgroup.xyqb.exception.DataException;
...
@@ -7,13 +7,16 @@ import cn.quantgroup.xyqb.exception.DataException;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.service.middleoffice.applet.IAppletService
;
import
cn.quantgroup.xyqb.service.middleoffice.applet.IAppletService
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
java.util.Arrays
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
java.util.Arrays
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* @author :dongjianhua
* @author :dongjianhua
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/common/PwdVerifyStrategy.java
View file @
3c8b53b3
...
@@ -4,9 +4,8 @@ import cn.quantgroup.xyqb.entity.User;
...
@@ -4,9 +4,8 @@ import cn.quantgroup.xyqb.entity.User;
import
cn.quantgroup.xyqb.exception.DataException
;
import
cn.quantgroup.xyqb.exception.DataException
;
import
cn.quantgroup.xyqb.util.BctyptPasswordUtil
;
import
cn.quantgroup.xyqb.util.BctyptPasswordUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
org.springframework.stereotype.Component
;
import
java.util.Objects
;
import
java.util.Objects
;
import
org.springframework.stereotype.Component
;
/**
/**
* 密码校验策略
* 密码校验策略
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/common/SmsVerifyStrategy.java
View file @
3c8b53b3
...
@@ -3,9 +3,8 @@ package cn.quantgroup.xyqb.controller.middleoffice.common;
...
@@ -3,9 +3,8 @@ package cn.quantgroup.xyqb.controller.middleoffice.common;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.exception.VerificationCodeErrorException
;
import
cn.quantgroup.xyqb.exception.VerificationCodeErrorException
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
org.springframework.stereotype.Component
;
/**
/**
* 基于短信策略的验证
* 基于短信策略的验证
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/common/VerifyStrategyFactory.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
middleoffice
.
common
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
middleoffice
.
common
;
import
cn.quantgroup.xyqb.util.ApplicationContextHolder
;
import
cn.quantgroup.xyqb.util.ApplicationContextHolder
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/common/image/GeeVerifyStrategy.java
View file @
3c8b53b3
...
@@ -2,10 +2,9 @@ package cn.quantgroup.xyqb.controller.middleoffice.common.image;
...
@@ -2,10 +2,9 @@ package cn.quantgroup.xyqb.controller.middleoffice.common.image;
import
cn.quantgroup.xyqb.model.ClientType
;
import
cn.quantgroup.xyqb.model.ClientType
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestCaptchaService
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestCaptchaService
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
import
java.util.Map
;
import
java.util.Map
;
import
javax.annotation.Resource
;
import
org.springframework.stereotype.Component
;
/**
/**
* 极验验证码认证
* 极验验证码认证
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/common/image/ImageVerifyStrategyFactory.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
middleoffice
.
common
.
image
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
middleoffice
.
common
.
image
;
import
cn.quantgroup.xyqb.util.ApplicationContextHolder
;
import
cn.quantgroup.xyqb.util.ApplicationContextHolder
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/common/image/QgVerifyStrategy.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
middleoffice
.
common
.
image
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
middleoffice
.
common
.
image
;
import
cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService
;
import
cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
org.springframework.stereotype.Component
;
/**
/**
* 量化派验证码认证
* 量化派验证码认证
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/contact/ContactController.java
View file @
3c8b53b3
...
@@ -10,13 +10,17 @@ import cn.quantgroup.xyqb.model.Tuple;
...
@@ -10,13 +10,17 @@ import cn.quantgroup.xyqb.model.Tuple;
import
cn.quantgroup.xyqb.service.user.IContactService
;
import
cn.quantgroup.xyqb.service.user.IContactService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
javax.annotation.Resource
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PatchMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* 联系人
* 联系人
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/contact/dto/ContactSaveDto.java
View file @
3c8b53b3
...
@@ -2,13 +2,12 @@ package cn.quantgroup.xyqb.controller.middleoffice.contact.dto;
...
@@ -2,13 +2,12 @@ package cn.quantgroup.xyqb.controller.middleoffice.contact.dto;
import
cn.quantgroup.user.enums.BizType
;
import
cn.quantgroup.user.enums.BizType
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
java.util.List
;
import
javax.validation.constraints.NotNull
;
import
lombok.Data
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
@Data
@Data
@Validated
@Validated
public
class
ContactSaveDto
{
public
class
ContactSaveDto
{
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/image/ImageController.java
View file @
3c8b53b3
...
@@ -8,15 +8,19 @@ import cn.quantgroup.xyqb.model.ClientType;
...
@@ -8,15 +8,19 @@ import cn.quantgroup.xyqb.model.ClientType;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestCaptchaService
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestCaptchaService
;
import
cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService
;
import
cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService
;
import
org.apache.commons.codec.digest.Md5Crypt
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Locale
;
import
java.util.Locale
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Objects
;
import
javax.annotation.Resource
;
import
org.apache.commons.codec.digest.Md5Crypt
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* 图形验证码
* 图形验证码
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/login/LoginController.java
View file @
3c8b53b3
...
@@ -2,10 +2,14 @@ package cn.quantgroup.xyqb.controller.middleoffice.login;
...
@@ -2,10 +2,14 @@ package cn.quantgroup.xyqb.controller.middleoffice.login;
import
cn.quantgroup.xyqb.controller.middleoffice.common.VerifyTypeEnum
;
import
cn.quantgroup.xyqb.controller.middleoffice.common.VerifyTypeEnum
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.PatchMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* 注册与登陆
* 注册与登陆
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/login/LoginModule.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
middleoffice
.
login
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
middleoffice
.
login
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_ENABLE_ERROR
;
import
cn.quantgroup.user.enums.LoginType
;
import
cn.quantgroup.user.enums.LoginType
;
import
cn.quantgroup.xyqb.controller.middleoffice.common.VerifyStrategyFactory
;
import
cn.quantgroup.xyqb.controller.middleoffice.common.VerifyStrategyFactory
;
import
cn.quantgroup.xyqb.controller.middleoffice.common.VerifyTypeEnum
;
import
cn.quantgroup.xyqb.controller.middleoffice.common.VerifyTypeEnum
;
...
@@ -10,13 +12,10 @@ import cn.quantgroup.xyqb.model.LoginProperties;
...
@@ -10,13 +12,10 @@ import cn.quantgroup.xyqb.model.LoginProperties;
import
cn.quantgroup.xyqb.service.register.IUserRegisterService
;
import
cn.quantgroup.xyqb.service.register.IUserRegisterService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_ENABLE_ERROR
;
/**
/**
* 面向服务的聚合模块。
* 面向服务的聚合模块。
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/sms/SmsController.java
View file @
3c8b53b3
...
@@ -5,13 +5,12 @@ import cn.quantgroup.xyqb.controller.middleoffice.common.image.ImageDTO;
...
@@ -5,13 +5,12 @@ import cn.quantgroup.xyqb.controller.middleoffice.common.image.ImageDTO;
import
cn.quantgroup.xyqb.controller.middleoffice.common.image.ImageVerifyStrategyFactory
;
import
cn.quantgroup.xyqb.controller.middleoffice.common.image.ImageVerifyStrategyFactory
;
import
cn.quantgroup.xyqb.controller.middleoffice.common.image.ImageVerifyTypeEnum
;
import
cn.quantgroup.xyqb.controller.middleoffice.common.image.ImageVerifyTypeEnum
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
javax.annotation.Resource
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
/**
/**
* 短信
* 短信
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/user/UserController.java
View file @
3c8b53b3
...
@@ -6,14 +6,19 @@ import cn.quantgroup.xyqb.model.JsonResult;
...
@@ -6,14 +6,19 @@ import cn.quantgroup.xyqb.model.JsonResult;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
java.util.List
;
import
java.util.Map
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
javax.annotation.Resource
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
java.util.List
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
java.util.Map
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* 用户信息
* 用户信息
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/userdetail/UserDetailController.java
View file @
3c8b53b3
...
@@ -9,13 +9,16 @@ import cn.quantgroup.xyqb.model.JsonResult;
...
@@ -9,13 +9,16 @@ import cn.quantgroup.xyqb.model.JsonResult;
import
cn.quantgroup.xyqb.service.auth.IIdCardService
;
import
cn.quantgroup.xyqb.service.auth.IIdCardService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
java.sql.Timestamp
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* 用户实名信息
* 用户实名信息
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/userext/UserExtController.java
View file @
3c8b53b3
...
@@ -13,8 +13,10 @@ import cn.quantgroup.xyqb.service.user.IContactService;
...
@@ -13,8 +13,10 @@ import cn.quantgroup.xyqb.service.user.IContactService;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserExtInfoService
;
import
cn.quantgroup.xyqb.service.user.IUserExtInfoService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
java.util.HashMap
;
import
java.util.Map
;
import
javax.annotation.Resource
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
@@ -24,10 +26,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -24,10 +26,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
/**
* 用户扩展信息
* 用户扩展信息
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/userext/req/UserExtReq.java
View file @
3c8b53b3
...
@@ -3,9 +3,8 @@ package cn.quantgroup.xyqb.controller.middleoffice.userext.req;
...
@@ -3,9 +3,8 @@ package cn.quantgroup.xyqb.controller.middleoffice.userext.req;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
lombok.Data
;
import
java.util.List
;
import
java.util.List
;
import
lombok.Data
;
@Data
@Data
public
class
UserExtReq
{
public
class
UserExtReq
{
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/wx/WxController.java
View file @
3c8b53b3
...
@@ -8,14 +8,20 @@ import cn.quantgroup.xyqb.service.user.ITenantService;
...
@@ -8,14 +8,20 @@ import cn.quantgroup.xyqb.service.user.ITenantService;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PatchMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* 微信
* 微信
...
...
src/main/java/cn/quantgroup/xyqb/controller/modifyphoneno/ModifyPhoneNoController.java
View file @
3c8b53b3
...
@@ -10,11 +10,10 @@ import cn.quantgroup.xyqb.entity.ModifyPhoneNo;
...
@@ -10,11 +10,10 @@ import cn.quantgroup.xyqb.entity.ModifyPhoneNo;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.service.user.IModifyPhoneNoService
;
import
cn.quantgroup.xyqb.service.user.IModifyPhoneNoService
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.SerializationConfig
;
import
java.text.SimpleDateFormat
;
import
io.swagger.annotations.Api
;
import
javax.annotation.Resource
;
import
io.swagger.annotations.ApiOperation
;
import
javax.validation.Valid
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
@@ -23,12 +22,6 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -23,12 +22,6 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
javax.validation.Valid
;
import
java.io.IOException
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
/**
/**
* 用户手机号修改相关api
* 用户手机号修改相关api
* <p>
* <p>
...
@@ -37,7 +30,6 @@ import java.text.SimpleDateFormat;
...
@@ -37,7 +30,6 @@ import java.text.SimpleDateFormat;
*
*
* @author: yangrui
* @author: yangrui
*/
*/
@Api
(
tags
=
"用户手机号修改相关api"
)
@RestController
@RestController
@RequestMapping
(
"/v1/user/modify/phone_no"
)
@RequestMapping
(
"/v1/user/modify/phone_no"
)
public
class
ModifyPhoneNoController
implements
IBaseController
{
public
class
ModifyPhoneNoController
implements
IBaseController
{
...
@@ -45,7 +37,6 @@ public class ModifyPhoneNoController implements IBaseController {
...
@@ -45,7 +37,6 @@ public class ModifyPhoneNoController implements IBaseController {
@Resource
@Resource
private
IModifyPhoneNoService
modifyPhoneNoService
;
private
IModifyPhoneNoService
modifyPhoneNoService
;
@ApiOperation
(
"app - 查询用户手机号修改进度"
)
@GetMapping
(
"/progress"
)
@GetMapping
(
"/progress"
)
public
JsonResult
<
ProgressResp
>
progress
()
{
public
JsonResult
<
ProgressResp
>
progress
()
{
User
user
=
getCurrentUserFromRedis
();
User
user
=
getCurrentUserFromRedis
();
...
@@ -62,7 +53,6 @@ public class ModifyPhoneNoController implements IBaseController {
...
@@ -62,7 +53,6 @@ public class ModifyPhoneNoController implements IBaseController {
* @param step1Req
* @param step1Req
* @return
* @return
*/
*/
@ApiOperation
(
"app - 申请修改手机号Step_1"
)
@PostMapping
(
"/step_1"
)
@PostMapping
(
"/step_1"
)
public
JsonResult
step1
(
@Valid
@RequestBody
Step1Req
step1Req
)
{
public
JsonResult
step1
(
@Valid
@RequestBody
Step1Req
step1Req
)
{
User
user
=
getCurrentUserFromRedis
();
User
user
=
getCurrentUserFromRedis
();
...
@@ -78,7 +68,6 @@ public class ModifyPhoneNoController implements IBaseController {
...
@@ -78,7 +68,6 @@ public class ModifyPhoneNoController implements IBaseController {
* @param step2Req
* @param step2Req
* @return
* @return
*/
*/
@ApiOperation
(
"app - 申请修改手机号Step_2"
)
@PostMapping
(
"/step_2"
)
@PostMapping
(
"/step_2"
)
public
JsonResult
step2
(
@Valid
@RequestBody
Step2Req
step2Req
)
{
public
JsonResult
step2
(
@Valid
@RequestBody
Step2Req
step2Req
)
{
modifyPhoneNoService
.
saveStep2
(
step2Req
);
modifyPhoneNoService
.
saveStep2
(
step2Req
);
...
@@ -90,7 +79,6 @@ public class ModifyPhoneNoController implements IBaseController {
...
@@ -90,7 +79,6 @@ public class ModifyPhoneNoController implements IBaseController {
/**
/**
* 后台客服处理功能 - 查询列表
* 后台客服处理功能 - 查询列表
*/
*/
@ApiOperation
(
"后台客服处理功能 - 查询列表"
)
@GetMapping
@GetMapping
public
JsonResult
<?>
list
(
@Valid
ModifyPhoneNoQueryReq
modifyPhoneNoQueryReq
)
{
public
JsonResult
<?>
list
(
@Valid
ModifyPhoneNoQueryReq
modifyPhoneNoQueryReq
)
{
Page
<
ModifyPhoneNo
>
list
=
modifyPhoneNoService
.
list
(
modifyPhoneNoQueryReq
);
Page
<
ModifyPhoneNo
>
list
=
modifyPhoneNoService
.
list
(
modifyPhoneNoQueryReq
);
...
@@ -109,7 +97,6 @@ public class ModifyPhoneNoController implements IBaseController {
...
@@ -109,7 +97,6 @@ public class ModifyPhoneNoController implements IBaseController {
/**
/**
* 后台客服处理功能 - 人工审核
* 后台客服处理功能 - 人工审核
*/
*/
@ApiOperation
(
"后台客服处理功能 - 人工审核"
)
@PostMapping
(
"/audit"
)
@PostMapping
(
"/audit"
)
public
JsonResult
audit
(
@Valid
@RequestBody
AuditReq
auditReq
)
{
public
JsonResult
audit
(
@Valid
@RequestBody
AuditReq
auditReq
)
{
modifyPhoneNoService
.
audit
(
auditReq
);
modifyPhoneNoService
.
audit
(
auditReq
);
...
@@ -119,7 +106,6 @@ public class ModifyPhoneNoController implements IBaseController {
...
@@ -119,7 +106,6 @@ public class ModifyPhoneNoController implements IBaseController {
/**
/**
* 后台客服处理功能 - 反馈跟进
* 后台客服处理功能 - 反馈跟进
*/
*/
@ApiOperation
(
"后台客服处理功能 - 反馈跟进"
)
@PostMapping
(
"/{id}/feedback"
)
@PostMapping
(
"/{id}/feedback"
)
public
JsonResult
feedback
(
@PathVariable
Long
id
)
{
public
JsonResult
feedback
(
@PathVariable
Long
id
)
{
modifyPhoneNoService
.
feedback
(
id
);
modifyPhoneNoService
.
feedback
(
id
);
...
...
src/main/java/cn/quantgroup/xyqb/controller/modifyphoneno/req/AuditReq.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
modifyphoneno
.
req
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
modifyphoneno
.
req
;
import
cn.quantgroup.xyqb.model.ModifyPhoneNoApplyStatusEnum
;
import
cn.quantgroup.xyqb.model.ModifyPhoneNoApplyStatusEnum
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
javax.validation.constraints.NotNull
;
import
lombok.Data
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
/**
* Date: 2019/11/4
* Date: 2019/11/4
* Time: 上午11:53
* Time: 上午11:53
...
@@ -20,10 +18,10 @@ public class AuditReq implements Serializable {
...
@@ -20,10 +18,10 @@ public class AuditReq implements Serializable {
private
static
final
long
serialVersionUID
=
9183603336718659105L
;
private
static
final
long
serialVersionUID
=
9183603336718659105L
;
@NotNull
(
message
=
"id不能为空"
)
@NotNull
(
message
=
"id不能为空"
)
private
Long
id
;
private
Long
id
;
@ApiModelProperty
(
"申请状态 1 通过; 2 不通过;"
)
//
@ApiModelProperty("申请状态 1 通过; 2 不通过;")
@NotNull
(
message
=
"申请状态不能为空"
)
@NotNull
(
message
=
"申请状态不能为空"
)
private
ModifyPhoneNoApplyStatusEnum
applyStatus
;
private
ModifyPhoneNoApplyStatusEnum
applyStatus
;
@ApiModelProperty
(
"申请状态补充原因"
)
//
@ApiModelProperty("申请状态补充原因")
@Length
(
max
=
256
,
message
=
"原因最长256字符"
)
@Length
(
max
=
256
,
message
=
"原因最长256字符"
)
private
String
applyStatusReason
;
private
String
applyStatusReason
;
}
}
src/main/java/cn/quantgroup/xyqb/controller/modifyphoneno/req/ModifyPhoneNoQueryReq.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
modifyphoneno
.
req
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
modifyphoneno
.
req
;
import
cn.quantgroup.xyqb.controller.req.Page
;
import
cn.quantgroup.xyqb.model.ModifyPhoneNoApplyStatusEnum
;
import
cn.quantgroup.xyqb.model.ModifyPhoneNoApplyStatusEnum
;
import
cn.quantgroup.xyqb.model.ModifyPhoneNoProcessingStatusEnum
;
import
cn.quantgroup.xyqb.model.ModifyPhoneNoProcessingStatusEnum
;
import
cn.quantgroup.xyqb.controller.req.Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.Data
;
/**
/**
* Date: 2019/11/5
* Date: 2019/11/5
...
@@ -21,30 +19,30 @@ public class ModifyPhoneNoQueryReq extends Page implements Serializable {
...
@@ -21,30 +19,30 @@ public class ModifyPhoneNoQueryReq extends Page implements Serializable {
/**
/**
* 申请人旧手机号
* 申请人旧手机号
*/
*/
@ApiModelProperty
(
"申请人旧手机号"
)
//
@ApiModelProperty("申请人旧手机号")
private
String
phoneNo
;
private
String
phoneNo
;
/**
/**
* 开始时间
* 开始时间
*/
*/
@ApiModelProperty
(
"开始时间"
)
//
@ApiModelProperty("开始时间")
private
String
startAt
;
private
String
startAt
;
/**
/**
* 结束时间
* 结束时间
*/
*/
@ApiModelProperty
(
"结束时间"
)
//
@ApiModelProperty("结束时间")
private
String
endAt
;
private
String
endAt
;
/**
/**
* 申请状态 0处理中; 1修改完成; 2不允许修改;
* 申请状态 0处理中; 1修改完成; 2不允许修改;
*/
*/
@ApiModelProperty
(
"申请状态 0 处理中; 1 修改完成; 2 不允许修改;"
)
//
@ApiModelProperty("申请状态 0 处理中; 1 修改完成; 2 不允许修改;")
private
ModifyPhoneNoApplyStatusEnum
applyStatus
;
private
ModifyPhoneNoApplyStatusEnum
applyStatus
;
/**
/**
* 处理状态 0待人工处理 1待用户反馈结果 2已反馈
* 处理状态 0待人工处理 1待用户反馈结果 2已反馈
*/
*/
@ApiModelProperty
(
"处理状态 0 待人工处理; 1 待用户反馈结果; 2 已反馈;"
)
//
@ApiModelProperty("处理状态 0 待人工处理; 1 待用户反馈结果; 2 已反馈;")
private
ModifyPhoneNoProcessingStatusEnum
processingStatus
;
private
ModifyPhoneNoProcessingStatusEnum
processingStatus
;
}
}
src/main/java/cn/quantgroup/xyqb/controller/modifyphoneno/req/Step1Req.java
View file @
3c8b53b3
...
@@ -3,16 +3,13 @@ package cn.quantgroup.xyqb.controller.modifyphoneno.req;
...
@@ -3,16 +3,13 @@ package cn.quantgroup.xyqb.controller.modifyphoneno.req;
import
cn.quantgroup.xyqb.entity.ModifyPhoneNo
;
import
cn.quantgroup.xyqb.entity.ModifyPhoneNo
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.validator.IdCard
;
import
cn.quantgroup.xyqb.validator.IdCard
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
javax.validation.constraints.Pattern
;
import
lombok.Data
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
org.hibernate.validator.constraints.Length
;
import
org.hibernate.validator.constraints.NotBlank
;
import
org.hibernate.validator.constraints.NotBlank
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
javax.validation.constraints.Pattern
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
/**
* Date: 2019/11/4
* Date: 2019/11/4
* Time: 上午11:29
* Time: 上午11:29
...
@@ -26,7 +23,7 @@ public class Step1Req implements Serializable {
...
@@ -26,7 +23,7 @@ public class Step1Req implements Serializable {
/**
/**
* 注册人真实姓名
* 注册人真实姓名
*/
*/
@ApiModelProperty
(
"注册人真实姓名"
)
//
@ApiModelProperty("注册人真实姓名")
@NotBlank
(
message
=
"注册人真实姓名不能为空"
)
@NotBlank
(
message
=
"注册人真实姓名不能为空"
)
@Length
(
max
=
32
,
message
=
"注册人真实姓名最长32字符"
)
@Length
(
max
=
32
,
message
=
"注册人真实姓名最长32字符"
)
private
String
name
;
private
String
name
;
...
@@ -34,7 +31,7 @@ public class Step1Req implements Serializable {
...
@@ -34,7 +31,7 @@ public class Step1Req implements Serializable {
/**
/**
* 注册人身份证件号
* 注册人身份证件号
*/
*/
@ApiModelProperty
(
"注册人身份证件号"
)
//
@ApiModelProperty("注册人身份证件号")
@NotBlank
(
message
=
"注册人身份证件号不能为空"
)
@NotBlank
(
message
=
"注册人身份证件号不能为空"
)
@IdCard
@IdCard
private
String
idCard
;
private
String
idCard
;
...
@@ -42,7 +39,7 @@ public class Step1Req implements Serializable {
...
@@ -42,7 +39,7 @@ public class Step1Req implements Serializable {
/**
/**
* 当前手机号码
* 当前手机号码
*/
*/
@ApiModelProperty
(
"当前手机号码"
)
//
@ApiModelProperty("当前手机号码")
@NotBlank
(
message
=
"当前手机号码不能为空"
)
@NotBlank
(
message
=
"当前手机号码不能为空"
)
@Pattern
(
regexp
=
ValidationUtil
.
phoneRegExp
,
message
=
"当前手机号码格式错误"
)
@Pattern
(
regexp
=
ValidationUtil
.
phoneRegExp
,
message
=
"当前手机号码格式错误"
)
private
String
prevPhoneNo
;
private
String
prevPhoneNo
;
...
@@ -50,7 +47,7 @@ public class Step1Req implements Serializable {
...
@@ -50,7 +47,7 @@ public class Step1Req implements Serializable {
/**
/**
* 新手机号码
* 新手机号码
*/
*/
@ApiModelProperty
(
"新手机号码"
)
//
@ApiModelProperty("新手机号码")
@NotBlank
(
message
=
"新手机号码不能为空"
)
@NotBlank
(
message
=
"新手机号码不能为空"
)
@Pattern
(
regexp
=
ValidationUtil
.
phoneRegExp
,
message
=
"新手机号码格式错误"
)
@Pattern
(
regexp
=
ValidationUtil
.
phoneRegExp
,
message
=
"新手机号码格式错误"
)
private
String
curPhoneNo
;
private
String
curPhoneNo
;
...
@@ -58,7 +55,7 @@ public class Step1Req implements Serializable {
...
@@ -58,7 +55,7 @@ public class Step1Req implements Serializable {
/**
/**
* 新手机号码短信验证码
* 新手机号码短信验证码
*/
*/
@ApiModelProperty
(
"新手机号码短信验证码"
)
//
@ApiModelProperty("新手机号码短信验证码")
@NotBlank
(
message
=
"新手机号码短信验证码不能为空"
)
@NotBlank
(
message
=
"新手机号码短信验证码不能为空"
)
private
String
smsCode
;
private
String
smsCode
;
...
...
src/main/java/cn/quantgroup/xyqb/controller/modifyphoneno/req/Step2Req.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
modifyphoneno
.
req
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
modifyphoneno
.
req
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
javax.validation.constraints.NotNull
;
import
lombok.Data
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
org.hibernate.validator.constraints.Length
;
import
org.hibernate.validator.constraints.NotBlank
;
import
org.hibernate.validator.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
/**
* Date: 2019/11/4
* Date: 2019/11/4
* Time: 上午11:37
* Time: 上午11:37
...
@@ -27,7 +25,7 @@ public class Step2Req implements Serializable {
...
@@ -27,7 +25,7 @@ public class Step2Req implements Serializable {
/**
/**
* 身份证正面
* 身份证正面
*/
*/
@ApiModelProperty
(
"身份证正面"
)
//
@ApiModelProperty("身份证正面")
@NotBlank
(
message
=
"身份证正面不能为空"
)
@NotBlank
(
message
=
"身份证正面不能为空"
)
@Length
(
max
=
256
,
message
=
"身份证正面图片地址最长256字符"
)
@Length
(
max
=
256
,
message
=
"身份证正面图片地址最长256字符"
)
private
String
idCardFaceUrl
;
private
String
idCardFaceUrl
;
...
@@ -35,7 +33,7 @@ public class Step2Req implements Serializable {
...
@@ -35,7 +33,7 @@ public class Step2Req implements Serializable {
/**
/**
* 身份证背面
* 身份证背面
*/
*/
@ApiModelProperty
(
"身份证背面"
)
//
@ApiModelProperty("身份证背面")
@NotBlank
(
message
=
"身份证背面不能为空"
)
@NotBlank
(
message
=
"身份证背面不能为空"
)
@Length
(
max
=
256
,
message
=
"身份证背面图片地址最长256字符"
)
@Length
(
max
=
256
,
message
=
"身份证背面图片地址最长256字符"
)
private
String
idCardRearUrl
;
private
String
idCardRearUrl
;
...
@@ -43,7 +41,7 @@ public class Step2Req implements Serializable {
...
@@ -43,7 +41,7 @@ public class Step2Req implements Serializable {
/**
/**
* 本人手持身份证照片
* 本人手持身份证照片
*/
*/
@ApiModelProperty
(
"本人手持身份证照片"
)
//
@ApiModelProperty("本人手持身份证照片")
@NotBlank
(
message
=
"本人手持身份证照片不能为空"
)
@NotBlank
(
message
=
"本人手持身份证照片不能为空"
)
@Length
(
max
=
256
,
message
=
"本人手持身份证照片地址最长256字符"
)
@Length
(
max
=
256
,
message
=
"本人手持身份证照片地址最长256字符"
)
private
String
idCardHoldUrl
;
private
String
idCardHoldUrl
;
...
...
src/main/java/cn/quantgroup/xyqb/controller/modifyphoneno/resp/ModifyPhoneNoResp.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
modifyphoneno
.
resp
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
modifyphoneno
.
resp
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.Date
;
import
lombok.Data
;
/**
/**
* Date: 2019/11/4
* Date: 2019/11/4
...
@@ -14,30 +12,30 @@ import java.util.Date;
...
@@ -14,30 +12,30 @@ import java.util.Date;
@Data
@Data
public
class
ModifyPhoneNoResp
{
public
class
ModifyPhoneNoResp
{
private
Long
id
;
private
Long
id
;
@ApiModelProperty
(
"申请编号"
)
// //
@ApiModelProperty("申请编号")
private
String
applyNo
;
private
String
applyNo
;
@ApiModelProperty
(
"申请人姓名"
)
// //
@ApiModelProperty("申请人姓名")
private
String
name
;
private
String
name
;
@ApiModelProperty
(
"申请人身份证号"
)
// //
@ApiModelProperty("申请人身份证号")
private
String
idCard
;
private
String
idCard
;
@ApiModelProperty
(
"申请人原手机号"
)
//
@ApiModelProperty("申请人原手机号")
private
String
prevPhoneNo
;
private
String
prevPhoneNo
;
@ApiModelProperty
(
"申请人现手机号"
)
//
@ApiModelProperty("申请人现手机号")
private
String
curPhoneNo
;
private
String
curPhoneNo
;
@ApiModelProperty
(
"申请时间"
)
//
@ApiModelProperty("申请时间")
private
Date
createdAt
;
private
Date
createdAt
;
@ApiModelProperty
(
"申请结果"
)
//
@ApiModelProperty("申请结果")
private
Integer
applyStatus
;
private
Integer
applyStatus
;
@ApiModelProperty
(
"拒绝原因"
)
//
@ApiModelProperty("拒绝原因")
private
String
applyStatusReason
;
private
String
applyStatusReason
;
@ApiModelProperty
(
"处理状态"
)
//
@ApiModelProperty("处理状态")
private
Integer
processStatus
;
private
Integer
processStatus
;
@ApiModelProperty
(
"最近更新时间"
)
//
@ApiModelProperty("最近更新时间")
private
Date
updatedAt
;
private
Date
updatedAt
;
@ApiModelProperty
(
"身份证正面"
)
//
@ApiModelProperty("身份证正面")
private
String
idCardFaceUrl
;
private
String
idCardFaceUrl
;
@ApiModelProperty
(
"身份证背面"
)
//
@ApiModelProperty("身份证背面")
private
String
idCardRearUrl
;
private
String
idCardRearUrl
;
@ApiModelProperty
(
"本人手持身份证照片"
)
//
@ApiModelProperty("本人手持身份证照片")
private
String
idCardHoldUrl
;
private
String
idCardHoldUrl
;
}
}
src/main/java/cn/quantgroup/xyqb/controller/req/Page.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
controller
.
req
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
req
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Range
;
import
org.hibernate.validator.constraints.Range
;
...
@@ -17,13 +16,13 @@ public class Page {
...
@@ -17,13 +16,13 @@ public class Page {
/**
/**
* page
* page
*/
*/
@ApiModelProperty
(
"one-based page index"
)
//
@ApiModelProperty("one-based page index")
private
Integer
page
=
1
;
private
Integer
page
=
1
;
/**
/**
* size
* size
*/
*/
@ApiModelProperty
(
"the size of the page to be returned"
)
//
@ApiModelProperty("the size of the page to be returned")
@Range
(
min
=
1
,
max
=
1000
,
message
=
"size参数必须在1到1000之间"
)
@Range
(
min
=
1
,
max
=
1000
,
message
=
"size参数必须在1到1000之间"
)
private
Integer
size
=
30
;
private
Integer
size
=
30
;
}
}
src/main/java/cn/quantgroup/xyqb/controller/risk/LoginWhiteListController.java
View file @
3c8b53b3
...
@@ -3,13 +3,12 @@ package cn.quantgroup.xyqb.controller.risk;
...
@@ -3,13 +3,12 @@ package cn.quantgroup.xyqb.controller.risk;
import
cn.quantgroup.xyqb.entity.enums.KeyType
;
import
cn.quantgroup.xyqb.entity.enums.KeyType
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.service.risk.LoginRiskService
;
import
cn.quantgroup.xyqb.service.risk.LoginRiskService
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
/**
/**
* @author :dongjianhua
* @author :dongjianhua
* @date :Created in 2020/12/14 15:02
* @date :Created in 2020/12/14 15:02
...
...
src/main/java/cn/quantgroup/xyqb/controller/tenant/TenantController.java
View file @
3c8b53b3
...
@@ -7,15 +7,14 @@ import cn.quantgroup.xyqb.service.user.IOauthClientDetailsService;
...
@@ -7,15 +7,14 @@ import cn.quantgroup.xyqb.service.user.IOauthClientDetailsService;
import
cn.quantgroup.xyqb.service.user.IProductLoginService
;
import
cn.quantgroup.xyqb.service.user.IProductLoginService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
java.util.ArrayList
;
import
java.util.List
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.List
;
@Slf4j
@Slf4j
@RestController
@RestController
@RequestMapping
(
"/tenant"
)
@RequestMapping
(
"/tenant"
)
...
...
src/main/java/cn/quantgroup/xyqb/entity/Address.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.UniqueConstraint
;
import
lombok.Data
;
/**
/**
* Created by 11 on 2016/12/30.
* Created by 11 on 2016/12/30.
...
...
src/main/java/cn/quantgroup/xyqb/entity/BaseEntity.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
javax.persistence.Basic
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.MappedSuperclass
;
import
javax.persistence.PrePersist
;
import
javax.persistence.PreUpdate
;
import
lombok.Data
;
/**
/**
* 所有数据库实体,都要继承 BaseEntity
* 所有数据库实体,都要继承 BaseEntity
...
...
src/main/java/cn/quantgroup/xyqb/entity/Contact.java
View file @
3c8b53b3
...
@@ -4,16 +4,15 @@ import cn.quantgroup.user.enums.BizType;
...
@@ -4,16 +4,15 @@ import cn.quantgroup.user.enums.BizType;
import
cn.quantgroup.user.enums.Relation
;
import
cn.quantgroup.user.enums.Relation
;
import
cn.quantgroup.xyqb.model.Tuple
;
import
cn.quantgroup.xyqb.model.Tuple
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
/**
/**
* Created by 11 on 2016/12/30.
* Created by 11 on 2016/12/30.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/entity/CustomerInfoEntity.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity
;
import
cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity
;
import
cn.quantgroup.xyqb.model.Gender
;
import
cn.quantgroup.xyqb.model.Gender
;
import
cn.quantgroup.xyqb.util.StringUtils
;
import
cn.quantgroup.xyqb.util.StringUtils
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
/**
/**
* Created with IntelliJ IDEA.
* Created with IntelliJ IDEA.
...
...
src/main/java/cn/quantgroup/xyqb/entity/CustomerLoginEntity.java
View file @
3c8b53b3
...
@@ -3,10 +3,12 @@ package cn.quantgroup.xyqb.entity;
...
@@ -3,10 +3,12 @@ package cn.quantgroup.xyqb.entity;
import
cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity
;
import
cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity
;
import
cn.quantgroup.xyqb.util.StringUtils
;
import
cn.quantgroup.xyqb.util.StringUtils
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Objects
;
import
java.util.Objects
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
/**
/**
* Created with IntelliJ IDEA.
* Created with IntelliJ IDEA.
...
...
src/main/java/cn/quantgroup/xyqb/entity/GeetestLogEntity.java
View file @
3c8b53b3
...
@@ -2,14 +2,13 @@ package cn.quantgroup.xyqb.entity;
...
@@ -2,14 +2,13 @@ package cn.quantgroup.xyqb.entity;
import
cn.quantgroup.xyqb.entity.converter.EncryptConverter
;
import
cn.quantgroup.xyqb.entity.converter.EncryptConverter
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Convert
;
import
javax.persistence.Convert
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
lombok.Data
;
import
java.util.Date
;
/**
/**
* Created by 11 on 2016/12/30.
* Created by 11 on 2016/12/30.
...
...
src/main/java/cn/quantgroup/xyqb/entity/LoginRecord.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
lombok.Data
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
lombok.Data
;
/**
/**
* Created by 11 on 2017/3/22.
* Created by 11 on 2017/3/22.
...
...
src/main/java/cn/quantgroup/xyqb/entity/Merchant.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
lombok.Data
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
lombok.Data
;
/**
/**
* Created by 11 on 2016/12/30.
* Created by 11 on 2016/12/30.
...
...
src/main/java/cn/quantgroup/xyqb/entity/MerchantConfig.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
lombok.Data
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
lombok.Data
;
/**
/**
* Created by 11 on 2016/12/30.
* Created by 11 on 2016/12/30.
...
...
src/main/java/cn/quantgroup/xyqb/entity/ModifyPhoneNo.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
lombok.Data
;
/**
/**
* Date: 2019/11/4
* Date: 2019/11/4
...
...
src/main/java/cn/quantgroup/xyqb/entity/OauthClientDetailsEntity.java
View file @
3c8b53b3
...
@@ -3,13 +3,12 @@ package cn.quantgroup.xyqb.entity;
...
@@ -3,13 +3,12 @@ package cn.quantgroup.xyqb.entity;
import
cn.quantgroup.xyqb.entity.baseEntity.OptimisticEntity
;
import
cn.quantgroup.xyqb.entity.baseEntity.OptimisticEntity
;
import
cn.quantgroup.xyqb.util.StringUtils
;
import
cn.quantgroup.xyqb.util.StringUtils
;
import
java.io.Serializable
;
import
java.util.Objects
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.util.Objects
;
/**
/**
* Created with IntelliJ IDEA.
* Created with IntelliJ IDEA.
...
...
src/main/java/cn/quantgroup/xyqb/entity/ProductLoginEntity.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity
;
import
cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity
;
import
cn.quantgroup.xyqb.entity.converter.EncryptConverter
;
import
cn.quantgroup.xyqb.entity.converter.EncryptConverter
;
import
cn.quantgroup.xyqb.util.StringUtils
;
import
cn.quantgroup.xyqb.util.StringUtils
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.util.Objects
;
import
java.util.Objects
;
import
javax.persistence.Column
;
import
javax.persistence.Convert
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
/**
/**
* Created with IntelliJ IDEA.
* Created with IntelliJ IDEA.
...
...
src/main/java/cn/quantgroup/xyqb/entity/SmsTemplateEntity.java
View file @
3c8b53b3
...
@@ -2,12 +2,11 @@ package cn.quantgroup.xyqb.entity;
...
@@ -2,12 +2,11 @@ package cn.quantgroup.xyqb.entity;
import
cn.quantgroup.xyqb.entity.baseEntity.OptimisticEntity
;
import
cn.quantgroup.xyqb.entity.baseEntity.OptimisticEntity
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
/**
/**
* Created with IntelliJ IDEA.
* Created with IntelliJ IDEA.
...
...
src/main/java/cn/quantgroup/xyqb/entity/User.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
cn.quantgroup.xyqb.entity.converter.EncryptConverter
;
import
cn.quantgroup.xyqb.entity.converter.EncryptConverter
;
import
java.io.Serializable
;
import
java.util.Objects
;
import
javax.persistence.Column
;
import
javax.persistence.Convert
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.UniqueConstraint
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
lombok.ToString
;
import
lombok.ToString
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.util.Objects
;
/**
/**
* Created by Miraculous on 15/7/4.
* Created by Miraculous on 15/7/4.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/entity/UserAttached.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
lombok.Data
;
/**
/**
* Created by 11 on 2017/3/22.
* Created by 11 on 2017/3/22.
...
...
src/main/java/cn/quantgroup/xyqb/entity/UserAuthorized.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
cn.quantgroup.xyqb.model.AuthPattern
;
import
cn.quantgroup.xyqb.model.AuthPattern
;
import
java.sql.Timestamp
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
lombok.Data
;
import
lombok.Data
;
import
org.hibernate.annotations.GenericGenerator
;
import
org.hibernate.annotations.GenericGenerator
;
import
javax.persistence.*
;
import
java.sql.Timestamp
;
/**
/**
* @author xufei on 2018/1/5.
* @author xufei on 2018/1/5.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/entity/UserBtRegister.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
lombok.Getter
;
import
java.io.Serializable
;
import
lombok.Setter
;
import
lombok.ToString
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
/**
* Created by Administrator on 2017/5/16.
* Created by Administrator on 2017/5/16.
...
...
src/main/java/cn/quantgroup/xyqb/entity/UserDeregisterRecord.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
lombok.*
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.Date
;
import
java.util.Date
;
import
javax.persistence.Basic
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.PrePersist
;
import
javax.persistence.PreUpdate
;
import
javax.persistence.Table
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
/**
* 销户记录
* 销户记录
...
...
src/main/java/cn/quantgroup/xyqb/entity/UserDetail.java
View file @
3c8b53b3
...
@@ -3,17 +3,15 @@ package cn.quantgroup.xyqb.entity;
...
@@ -3,17 +3,15 @@ package cn.quantgroup.xyqb.entity;
import
cn.quantgroup.motan.retbean.XUserDetail
;
import
cn.quantgroup.motan.retbean.XUserDetail
;
import
cn.quantgroup.xyqb.model.Gender
;
import
cn.quantgroup.xyqb.model.Gender
;
import
cn.quantgroup.xyqb.model.IdType
;
import
cn.quantgroup.xyqb.model.IdType
;
import
lombok.Getter
;
import
java.io.Serializable
;
import
lombok.Setter
;
import
java.util.Optional
;
import
lombok.ToString
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
javax.persistence.UniqueConstraint
;
import
javax.persistence.UniqueConstraint
;
import
java.io.Serializable
;
import
lombok.Getter
;
import
java.sql.Timestamp
;
import
lombok.Setter
;
import
java.util.Optional
;
import
lombok.ToString
;
/**
/**
* Created by FrankChow on 15/7/8.
* Created by FrankChow on 15/7/8.
...
...
src/main/java/cn/quantgroup/xyqb/entity/UserExtInfo.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
cn.quantgroup.motan.retbean.XUserExtInfo
;
import
cn.quantgroup.motan.retbean.XUserExtInfo
;
import
cn.quantgroup.user.enums.*
;
import
cn.quantgroup.user.enums.EducationEnum
;
import
lombok.Data
;
import
cn.quantgroup.user.enums.IncomeEnum
;
import
cn.quantgroup.user.enums.IncomeRangeEnum
;
import
javax.persistence.*
;
import
cn.quantgroup.user.enums.MaritalStatus
;
import
cn.quantgroup.user.enums.OccupationEnum
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
lombok.Data
;
/**
/**
* Created by 11 on 2016/12/30.
* Created by 11 on 2016/12/30.
...
...
src/main/java/cn/quantgroup/xyqb/entity/UserHashMapping.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
cn.quantgroup.xyqb.util.HashUtil
;
import
cn.quantgroup.xyqb.util.HashUtil
;
import
lombok.Data
;
import
java.io.Serializable
;
import
lombok.NoArgsConstructor
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@Data
@Entity
@Entity
...
...
src/main/java/cn/quantgroup/xyqb/entity/UserHashPhoneNoIdNoMapping.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.sql.Timestamp
;
@Data
@Data
@Entity
@Entity
@Table
(
name
=
"user_hash_phone_no_id_no_mapping"
)
@Table
(
name
=
"user_hash_phone_no_id_no_mapping"
)
...
...
src/main/java/cn/quantgroup/xyqb/entity/UserQueryLog.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
javax.persistence.Basic
;
import
javax.persistence.Basic
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
...
@@ -9,11 +9,9 @@ import javax.persistence.GeneratedValue;
...
@@ -9,11 +9,9 @@ import javax.persistence.GeneratedValue;
import
javax.persistence.GenerationType
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.PrePersist
;
import
javax.persistence.PrePersist
;
import
javax.persistence.PreUpdate
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
javax.persistence.Transient
;
import
java.io.Serializable
;
import
lombok.Data
;
import
java.sql.Timestamp
;
/**
/**
* Created by 11 on 2016/12/30.
* Created by 11 on 2016/12/30.
...
...
src/main/java/cn/quantgroup/xyqb/entity/UserSpouse.java
View file @
3c8b53b3
...
@@ -3,11 +3,16 @@ package cn.quantgroup.xyqb.entity;
...
@@ -3,11 +3,16 @@ package cn.quantgroup.xyqb.entity;
import
cn.quantgroup.user.enums.MaritalStatus
;
import
cn.quantgroup.user.enums.MaritalStatus
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
lombok.*
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.UniqueConstraint
;
import
lombok.Data
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.ToString
;
@Data
@Data
@Entity
@Entity
...
...
src/main/java/cn/quantgroup/xyqb/entity/UuidPhoneMapping.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.UniqueConstraint
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
lombok.ToString
;
import
lombok.ToString
;
import
javax.persistence.*
;
import
java.io.Serializable
;
/**
/**
* Created by Miraculous on 15/10/29.
* Created by Miraculous on 15/10/29.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/entity/WechatInfoRelation.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
;
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
cn.quantgroup.xyqb.util.EmojiUtil
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Date
;
import
javax.persistence.Column
;
import
java.sql.Timestamp
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
lombok.Data
;
/**
/**
* 微信公众号和企业微信关注情况表
* 微信公众号和企业微信关注情况表
...
...
src/main/java/cn/quantgroup/xyqb/entity/WechatUserInfo.java
View file @
3c8b53b3
...
@@ -2,14 +2,15 @@ package cn.quantgroup.xyqb.entity;
...
@@ -2,14 +2,15 @@ package cn.quantgroup.xyqb.entity;
import
cn.quantgroup.xyqb.entity.converter.EncryptConverter
;
import
cn.quantgroup.xyqb.entity.converter.EncryptConverter
;
import
cn.quantgroup.xyqb.util.EmojiUtil
;
import
cn.quantgroup.xyqb.util.EmojiUtil
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.Convert
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
lombok.Data
;
import
lombok.Data
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
/**
/**
* Created by 11 on 2017/1/17.
* Created by 11 on 2017/1/17.
* 微信关联的用户信息
* 微信关联的用户信息
...
...
src/main/java/cn/quantgroup/xyqb/entity/converter/EncryptConverter.java
View file @
3c8b53b3
...
@@ -3,11 +3,10 @@ package cn.quantgroup.xyqb.entity.converter;
...
@@ -3,11 +3,10 @@ package cn.quantgroup.xyqb.entity.converter;
import
cn.quantgroup.security.AESEncryption
;
import
cn.quantgroup.security.AESEncryption
;
import
cn.quantgroup.security.CipherUtil
;
import
cn.quantgroup.security.CipherUtil
;
import
cn.quantgroup.xyqb.util.ApplicationContextHolder
;
import
cn.quantgroup.xyqb.util.ApplicationContextHolder
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
javax.persistence.AttributeConverter
;
import
javax.persistence.AttributeConverter
;
import
javax.persistence.Converter
;
import
javax.persistence.Converter
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
/**
/**
* 通用字段加解密转换器
* 通用字段加解密转换器
...
...
src/main/java/cn/quantgroup/xyqb/entity/middleoffice/AppletParamEntry.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
entity
.
middleoffice
;
package
cn
.
quantgroup
.
xyqb
.
entity
.
middleoffice
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
lombok.Getter
;
import
lombok.Setter
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Pattern
;
import
javax.validation.constraints.Pattern
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
/**
* @author :dongjianhua
* @author :dongjianhua
...
...
src/main/java/cn/quantgroup/xyqb/event/BlackHoleRegisteredEventListener.java
View file @
3c8b53b3
...
@@ -4,16 +4,15 @@ import cn.quantgroup.xyqb.entity.User;
...
@@ -4,16 +4,15 @@ import cn.quantgroup.xyqb.entity.User;
import
cn.quantgroup.xyqb.model.UserRegisterParam
;
import
cn.quantgroup.xyqb.model.UserRegisterParam
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
java.time.LocalDate
;
import
java.time.format.DateTimeFormatter
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
import
java.time.LocalDate
;
import
java.time.format.DateTimeFormatter
;
@Slf4j
@Slf4j
@Component
@Component
public
class
BlackHoleRegisteredEventListener
implements
ApplicationListener
<
RegisterEvent
>
{
public
class
BlackHoleRegisteredEventListener
implements
ApplicationListener
<
RegisterEvent
>
{
...
...
src/main/java/cn/quantgroup/xyqb/event/BtRegisteredEventListener.java
View file @
3c8b53b3
...
@@ -5,11 +5,10 @@ import cn.quantgroup.xyqb.entity.User;
...
@@ -5,11 +5,10 @@ import cn.quantgroup.xyqb.entity.User;
import
cn.quantgroup.xyqb.entity.UserBtRegister
;
import
cn.quantgroup.xyqb.entity.UserBtRegister
;
import
cn.quantgroup.xyqb.model.UserRegisterParam
;
import
cn.quantgroup.xyqb.model.UserRegisterParam
;
import
cn.quantgroup.xyqb.service.user.IUserBtRegisterService
;
import
cn.quantgroup.xyqb.service.user.IUserBtRegisterService
;
import
java.util.Objects
;
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
java.util.Objects
;
//@Component
//@Component
public
class
BtRegisteredEventListener
implements
ApplicationListener
<
RegisterEvent
>
{
public
class
BtRegisteredEventListener
implements
ApplicationListener
<
RegisterEvent
>
{
...
...
src/main/java/cn/quantgroup/xyqb/event/CacheEvictPhoneNoUpdateEventListener.java
View file @
3c8b53b3
...
@@ -5,16 +5,15 @@ import cn.quantgroup.xyqb.model.session.SessionStruct;
...
@@ -5,16 +5,15 @@ import cn.quantgroup.xyqb.model.session.SessionStruct;
import
cn.quantgroup.xyqb.model.session.SessionValue
;
import
cn.quantgroup.xyqb.model.session.SessionValue
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
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
org.springframework.stereotype.Component
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
@Slf4j
@Slf4j
@Component
@Component
public
class
CacheEvictPhoneNoUpdateEventListener
implements
ApplicationListener
<
PhoneNoUpdateEvent
>
{
public
class
CacheEvictPhoneNoUpdateEventListener
implements
ApplicationListener
<
PhoneNoUpdateEvent
>
{
...
...
src/main/java/cn/quantgroup/xyqb/event/ContactRegisteredEventListener.java
View file @
3c8b53b3
...
@@ -4,12 +4,11 @@ import cn.quantgroup.xyqb.entity.Contact;
...
@@ -4,12 +4,11 @@ import cn.quantgroup.xyqb.entity.Contact;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.model.UserRegisterParam
;
import
cn.quantgroup.xyqb.model.UserRegisterParam
;
import
cn.quantgroup.xyqb.repository.IContactRepository
;
import
cn.quantgroup.xyqb.repository.IContactRepository
;
import
java.util.List
;
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.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
java.util.List
;
/**
/**
* 注册成功后, 保存联系人
* 注册成功后, 保存联系人
*
*
...
...
src/main/java/cn/quantgroup/xyqb/event/DetailRegisteredEventListener.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
event
;
package
cn
.
quantgroup
.
xyqb
.
event
;
import
java.sql.Timestamp
;
import
javax.annotation.Resource
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.stereotype.Component
;
import
lombok.extern.slf4j.Slf4j
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
...
@@ -19,6 +8,11 @@ import cn.quantgroup.xyqb.model.UserRegisterParam;
...
@@ -19,6 +8,11 @@ import cn.quantgroup.xyqb.model.UserRegisterParam;
import
cn.quantgroup.xyqb.service.auth.IIdCardService
;
import
cn.quantgroup.xyqb.service.auth.IIdCardService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.stereotype.Component
;
@Slf4j
@Slf4j
@Component
@Component
...
...
src/main/java/cn/quantgroup/xyqb/event/LkbRegisteredEventListener.java
View file @
3c8b53b3
...
@@ -8,7 +8,6 @@ import cn.quantgroup.xyqb.util.JsonUtil;
...
@@ -8,7 +8,6 @@ import cn.quantgroup.xyqb.util.JsonUtil;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
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
;
/**
/**
* 注册成功之后lkb
* 注册成功之后lkb
...
...
src/main/java/cn/quantgroup/xyqb/event/NotifyWechatBindEventListener.java
View file @
3c8b53b3
...
@@ -4,14 +4,13 @@ import cn.quantgroup.xyqb.entity.User;
...
@@ -4,14 +4,13 @@ import cn.quantgroup.xyqb.entity.User;
import
cn.quantgroup.xyqb.model.webchat.WechatEventMsg
;
import
cn.quantgroup.xyqb.model.webchat.WechatEventMsg
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
java.util.Map
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
import
java.util.Map
;
/**
/**
* 微信绑定关系变动。通知某系统
* 微信绑定关系变动。通知某系统
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/event/PhoneHashEventListener.java
View file @
3c8b53b3
...
@@ -6,14 +6,13 @@ import cn.quantgroup.xyqb.model.UserRegisterParam;
...
@@ -6,14 +6,13 @@ import cn.quantgroup.xyqb.model.UserRegisterParam;
import
cn.quantgroup.xyqb.repository.IUserHashMappingRepository
;
import
cn.quantgroup.xyqb.repository.IUserHashMappingRepository
;
import
cn.quantgroup.xyqb.repository.IUserHashPhoneNoIdNoMappingRepository
;
import
cn.quantgroup.xyqb.repository.IUserHashPhoneNoIdNoMappingRepository
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
javax.annotation.Resource
;
import
javax.persistence.PersistenceException
;
import
lombok.extern.slf4j.Slf4j
;
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
javax.annotation.Resource
;
import
javax.persistence.PersistenceException
;
//@Component
//@Component
@Slf4j
@Slf4j
public
class
PhoneHashEventListener
implements
ApplicationListener
<
RegisterEvent
>
{
public
class
PhoneHashEventListener
implements
ApplicationListener
<
RegisterEvent
>
{
...
...
src/main/java/cn/quantgroup/xyqb/event/RegisterEvent.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
event
;
package
cn
.
quantgroup
.
xyqb
.
event
;
import
org.springframework.context.ApplicationEvent
;
import
cn.quantgroup.xyqb.model.UserRegisterParam
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
org.springframework.context.ApplicationEvent
;
import
cn.quantgroup.xyqb.model.UserRegisterParam
;
/**
/**
* 注册成功发送事件
* 注册成功发送事件
...
...
src/main/java/cn/quantgroup/xyqb/event/UserDetailHashEventListener.java
View file @
3c8b53b3
...
@@ -4,13 +4,12 @@ import cn.quantgroup.xyqb.entity.UserDetail;
...
@@ -4,13 +4,12 @@ import cn.quantgroup.xyqb.entity.UserDetail;
import
cn.quantgroup.xyqb.entity.UserHashMapping
;
import
cn.quantgroup.xyqb.entity.UserHashMapping
;
import
cn.quantgroup.xyqb.repository.IUserHashMappingRepository
;
import
cn.quantgroup.xyqb.repository.IUserHashMappingRepository
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
javax.persistence.PersistenceException
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
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
org.springframework.stereotype.Component
;
import
javax.persistence.PersistenceException
;
/**
/**
* userDetail 更新时, 保存 hashMapping 数据
* userDetail 更新时, 保存 hashMapping 数据
...
...
src/main/java/cn/quantgroup/xyqb/event/UserLoginEvent.java
View file @
3c8b53b3
...
@@ -3,12 +3,11 @@ package cn.quantgroup.xyqb.event;
...
@@ -3,12 +3,11 @@ package cn.quantgroup.xyqb.event;
import
com.sensorsdata.analytics.javasdk.ISensorsAnalytics
;
import
com.sensorsdata.analytics.javasdk.ISensorsAnalytics
;
import
com.sensorsdata.analytics.javasdk.SensorsAnalytics
;
import
com.sensorsdata.analytics.javasdk.SensorsAnalytics
;
import
com.sensorsdata.analytics.javasdk.consumer.BatchConsumer
;
import
com.sensorsdata.analytics.javasdk.consumer.BatchConsumer
;
import
java.io.IOException
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
java.io.IOException
;
/**
/**
* @author :hongzhi
* @author :hongzhi
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/event/WechatPhoneNoUpdateEventListener.java
View file @
3c8b53b3
...
@@ -3,13 +3,12 @@ package cn.quantgroup.xyqb.event;
...
@@ -3,13 +3,12 @@ package cn.quantgroup.xyqb.event;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.WechatUserInfo
;
import
cn.quantgroup.xyqb.entity.WechatUserInfo
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
java.util.Objects
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
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
org.springframework.stereotype.Component
;
import
java.util.Objects
;
@Slf4j
@Slf4j
@Component
@Component
public
class
WechatPhoneNoUpdateEventListener
implements
ApplicationListener
<
PhoneNoUpdateEvent
>
{
public
class
WechatPhoneNoUpdateEventListener
implements
ApplicationListener
<
PhoneNoUpdateEvent
>
{
...
...
src/main/java/cn/quantgroup/xyqb/filter/CrosFilter.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
filter
;
package
cn
.
quantgroup
.
xyqb
.
filter
;
import
java.io.IOException
;
import
java.util.HashSet
;
import
java.util.Set
;
import
javax.servlet.Filter
;
import
javax.servlet.FilterChain
;
import
javax.servlet.FilterConfig
;
import
javax.servlet.ServletException
;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletResponse
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.Ordered
;
import
org.springframework.core.Ordered
;
import
org.springframework.core.annotation.Order
;
import
org.springframework.core.annotation.Order
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
javax.servlet.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.HashSet
;
import
java.util.Set
;
/**
/**
* Created by Miraculous on 15/7/5.
* Created by Miraculous on 15/7/5.
* 支持跨域
* 支持跨域
...
...
src/main/java/cn/quantgroup/xyqb/filter/RequestFilter.java
View file @
3c8b53b3
...
@@ -6,18 +6,22 @@ import cn.quantgroup.xyqb.model.session.SessionStruct;
...
@@ -6,18 +6,22 @@ import cn.quantgroup.xyqb.model.session.SessionStruct;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
java.io.IOException
;
import
java.io.PrintWriter
;
import
java.util.Objects
;
import
javax.servlet.Filter
;
import
javax.servlet.FilterChain
;
import
javax.servlet.FilterConfig
;
import
javax.servlet.ServletException
;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletResponse
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
org.apache.http.HttpStatus
;
import
org.apache.http.HttpStatus
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.AntPathMatcher
;
import
org.springframework.util.AntPathMatcher
;
import
javax.servlet.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.PrintWriter
;
import
java.util.Objects
;
/**
/**
* Created by 11 on 2016/12/29.
* Created by 11 on 2016/12/29.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/model/AddressModel.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Address
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.Data
;
/**
/**
* 地址信息数据模型
* 地址信息数据模型
...
...
src/main/java/cn/quantgroup/xyqb/model/AppSmsUserParam.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
java.io.Serializable
;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
/**
* Created by ag on 16/3/16.
* Created by ag on 16/3/16.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/model/AppUserParam.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
lombok.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
/**
* @author mengfan.feng
* @author mengfan.feng
...
...
src/main/java/cn/quantgroup/xyqb/model/AuthBean.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
java.security.Principal
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
java.security.Principal
;
import
java.util.Objects
;
/**
/**
* Created by Miraculous on 15/7/9.
* Created by Miraculous on 15/7/9.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/model/ContactInfo.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.Data
;
/**
/**
* Created by xuran on 2017/8/1.
* Created by xuran on 2017/8/1.
...
...
src/main/java/cn/quantgroup/xyqb/model/ContactModel.java
View file @
3c8b53b3
...
@@ -2,10 +2,9 @@ package cn.quantgroup.xyqb.model;
...
@@ -2,10 +2,9 @@ package cn.quantgroup.xyqb.model;
import
cn.quantgroup.user.enums.Relation
;
import
cn.quantgroup.user.enums.Relation
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Optional
;
import
java.util.Optional
;
import
lombok.Data
;
/**
/**
* 联系人数据模型
* 联系人数据模型
...
...
src/main/java/cn/quantgroup/xyqb/model/ContactRet.java
View file @
3c8b53b3
...
@@ -2,14 +2,13 @@ package cn.quantgroup.xyqb.model;
...
@@ -2,14 +2,13 @@ package cn.quantgroup.xyqb.model;
import
cn.quantgroup.user.enums.Relation
;
import
cn.quantgroup.user.enums.Relation
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
lombok.Data
;
import
org.apache.commons.collections.CollectionUtils
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Objects
;
import
lombok.Data
;
import
org.apache.commons.collections.CollectionUtils
;
/**
/**
* Created by Miraculous on 2017/2/14.
* Created by Miraculous on 2017/2/14.
...
...
src/main/java/cn/quantgroup/xyqb/model/JsonResult.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
cn.quantgroup.xyqb.Constants
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.Data
;
import
cn.quantgroup.xyqb.Constants
;
/**
/**
* Created by Miraculous on 15/7/5.
* Created by Miraculous on 15/7/5.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/model/PageModel.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.List
;
import
java.util.List
;
import
lombok.Data
;
/**
/**
* Created by zenglibin on 15/12/29.
* Created by zenglibin on 15/12/29.
...
...
src/main/java/cn/quantgroup/xyqb/model/TokenExchange.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
lombok.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
/**
* @author mengfan.feng
* @author mengfan.feng
...
...
src/main/java/cn/quantgroup/xyqb/model/UserAssociation.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.List
;
import
java.util.List
;
import
lombok.Data
;
/**
/**
* Created by xuran on 2017/8/1.
* Created by xuran on 2017/8/1.
...
...
src/main/java/cn/quantgroup/xyqb/model/UserAssociationModel.java
View file @
3c8b53b3
...
@@ -2,12 +2,11 @@ package cn.quantgroup.xyqb.model;
...
@@ -2,12 +2,11 @@ package cn.quantgroup.xyqb.model;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Objects
;
import
lombok.Data
;
/**
/**
* 用户综合信息数据模型
* 用户综合信息数据模型
...
...
src/main/java/cn/quantgroup/xyqb/model/UserDetailRet.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.Data
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
java.io.Serializable
;
/**
/**
* Created by 11 on 2016/12/20.
* Created by 11 on 2016/12/20.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/model/UserExtInfoRet.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
cn.quantgroup.user.enums.*
;
import
cn.quantgroup.user.enums.EducationEnum
;
import
cn.quantgroup.user.enums.IncomeEnum
;
import
cn.quantgroup.user.enums.IncomeRangeEnum
;
import
cn.quantgroup.user.enums.MaritalStatus
;
import
cn.quantgroup.user.enums.OccupationEnum
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/main/java/cn/quantgroup/xyqb/model/UserFullInfo.java
View file @
3c8b53b3
...
@@ -2,10 +2,9 @@ package cn.quantgroup.xyqb.model;
...
@@ -2,10 +2,9 @@ package cn.quantgroup.xyqb.model;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Optional
;
import
java.util.Optional
;
import
lombok.Data
;
/**
/**
* user完整数据模型,包括user,user_detail
* user完整数据模型,包括user,user_detail
...
...
src/main/java/cn/quantgroup/xyqb/model/UserInfo.java
View file @
3c8b53b3
...
@@ -2,11 +2,10 @@ package cn.quantgroup.xyqb.model;
...
@@ -2,11 +2,10 @@ package cn.quantgroup.xyqb.model;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.Data
;
import
org.springframework.util.Assert
;
import
org.springframework.util.Assert
;
import
java.io.Serializable
;
/**
/**
* Created by xuran on 2017/7/5.
* Created by xuran on 2017/7/5.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/model/UserModel.java
View file @
3c8b53b3
...
@@ -2,11 +2,10 @@ package cn.quantgroup.xyqb.model;
...
@@ -2,11 +2,10 @@ package cn.quantgroup.xyqb.model;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
lombok.Data
;
import
org.springframework.util.Assert
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Optional
;
import
java.util.Optional
;
import
lombok.Data
;
import
org.springframework.util.Assert
;
/**
/**
* Created by Miraculous on 15/12/29.
* Created by Miraculous on 15/12/29.
...
...
src/main/java/cn/quantgroup/xyqb/model/UserQueryInfo.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.Data
;
/**
/**
* Created by zenglibin on 2017/06/14.
* Created by zenglibin on 2017/06/14.
...
...
src/main/java/cn/quantgroup/xyqb/model/UserRegisterMqMessage.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.Data
;
/**
/**
* Created by xuran on 2017/9/7.
* Created by xuran on 2017/9/7.
...
...
src/main/java/cn/quantgroup/xyqb/model/UserRegisterParam.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.User
;
import
java.util.List
;
import
java.util.List
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.User
;
/**
/**
* Created by liqing on 2017/12/4 0004.
* Created by liqing on 2017/12/4 0004.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/model/UserRet.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
cn.quantgroup.xyqb.entity.User
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Objects
;
import
java.util.Objects
;
import
lombok.Data
;
import
lombok.Data
;
import
cn.quantgroup.xyqb.entity.User
;
import
org.apache.commons.lang3.StringUtils
;
/**
/**
* Created by 11 on 2016/12/20.
* Created by 11 on 2016/12/20.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/model/session/SessionStruct.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
.
session
;
package
cn
.
quantgroup
.
xyqb
.
model
.
session
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
/**
* Created by 11 on 2016/12/28.
* Created by 11 on 2016/12/28.
...
...
src/main/java/cn/quantgroup/xyqb/model/session/SessionValue.java
View file @
3c8b53b3
...
@@ -4,11 +4,10 @@ import cn.quantgroup.xyqb.config.http.Timestamp2LongConverter;
...
@@ -4,11 +4,10 @@ import cn.quantgroup.xyqb.config.http.Timestamp2LongConverter;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.model.LoginProperties
;
import
cn.quantgroup.xyqb.model.LoginProperties
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.Map
;
import
java.util.Map
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
/**
* Created by Miraculous on 2016/12/28.
* Created by Miraculous on 2016/12/28.
...
...
src/main/java/cn/quantgroup/xyqb/model/webchat/AccessTokenResponse.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.Data
;
/**
/**
* Created by 11 on 2017/1/17.
* Created by 11 on 2017/1/17.
...
...
src/main/java/cn/quantgroup/xyqb/model/webchat/ContactInfoResponse.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.Data
;
@Data
@Data
public
class
ContactInfoResponse
implements
Serializable
{
public
class
ContactInfoResponse
implements
Serializable
{
...
...
src/main/java/cn/quantgroup/xyqb/model/webchat/ContactListResponse.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.List
;
import
lombok.Data
;
import
java.util.Objects
;
/**
/**
*
*
...
...
src/main/java/cn/quantgroup/xyqb/model/webchat/CustomerListResponse.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.List
;
import
java.util.List
;
import
lombok.Data
;
/**
/**
*
*
...
...
src/main/java/cn/quantgroup/xyqb/model/webchat/DepartmentInfoResponse.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.List
;
import
lombok.Data
;
/**
/**
*
*
...
...
src/main/java/cn/quantgroup/xyqb/model/webchat/DepartmentListResponse.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.List
;
import
java.util.List
;
import
lombok.Data
;
/**
/**
*
*
...
...
src/main/java/cn/quantgroup/xyqb/model/webchat/WechatUserListResponse.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
package
cn
.
quantgroup
.
xyqb
.
model
.
webchat
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
lombok.Data
;
@Data
@Data
public
class
WechatUserListResponse
implements
Serializable
{
public
class
WechatUserListResponse
implements
Serializable
{
...
...
src/main/java/cn/quantgroup/xyqb/repository/IContactRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
repository
;
import
cn.quantgroup.user.enums.BizType
;
import
cn.quantgroup.user.enums.BizType
;
import
cn.quantgroup.user.enums.Relation
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
java.util.List
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
/**
/**
* Created by 11 on 2016/12/30.
* Created by 11 on 2016/12/30.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/repository/IGeetestLogRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
repository
;
import
cn.quantgroup.xyqb.entity.GeetestLogEntity
;
import
cn.quantgroup.xyqb.entity.GeetestLogEntity
;
import
java.sql.Timestamp
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.sql.Timestamp
;
import
java.util.Date
;
/**
/**
* Created by 11 on 2016/12/30.
* Created by 11 on 2016/12/30.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/repository/ILoginRecordRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
repository
;
import
cn.quantgroup.xyqb.entity.LoginRecord
;
import
cn.quantgroup.xyqb.entity.LoginRecord
;
import
cn.quantgroup.xyqb.entity.User
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
public
interface
ILoginRecordRepository
extends
JpaRepository
<
LoginRecord
,
Long
>,
JpaSpecificationExecutor
<
LoginRecord
>
{
public
interface
ILoginRecordRepository
extends
JpaRepository
<
LoginRecord
,
Long
>,
JpaSpecificationExecutor
<
LoginRecord
>
{
...
...
src/main/java/cn/quantgroup/xyqb/repository/IProductLoginRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
repository
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
java.util.List
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* Li Jianhua
* Li Jianhua
...
...
src/main/java/cn/quantgroup/xyqb/repository/ISmsTemplateRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
repository
;
import
cn.quantgroup.xyqb.entity.SmsTemplateEntity
;
import
cn.quantgroup.xyqb.entity.SmsTemplateEntity
;
import
java.util.Optional
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.Optional
;
/**
/**
* Created by hechao on 2020/2/17.
* Created by hechao on 2020/2/17.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/repository/IUserAttachedRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
repository
;
import
cn.quantgroup.xyqb.entity.UserAttached
;
import
cn.quantgroup.xyqb.entity.UserAttached
;
import
java.util.List
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
/**
/**
* Created by 11 on 2017/3/22.
* Created by 11 on 2017/3/22.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/repository/IUserDeregisterRecordRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
repository
;
import
cn.quantgroup.xyqb.entity.UserDeregisterRecord
;
import
cn.quantgroup.xyqb.entity.UserDeregisterRecord
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.transaction.annotation.Transactional
;
/**
/**
* 销户 Repository
* 销户 Repository
...
...
src/main/java/cn/quantgroup/xyqb/repository/IUserDetailRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
repository
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
java.util.List
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
@@ -8,8 +9,6 @@ import org.springframework.data.jpa.repository.Modifying;
...
@@ -8,8 +9,6 @@ import org.springframework.data.jpa.repository.Modifying;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
/**
/**
* @author mengfan.feng
* @author mengfan.feng
* @time 2015-09-11 11:22
* @time 2015-09-11 11:22
...
...
src/main/java/cn/quantgroup/xyqb/repository/IUserExtInfoRepository.java
View file @
3c8b53b3
...
@@ -2,12 +2,9 @@ package cn.quantgroup.xyqb.repository;
...
@@ -2,12 +2,9 @@ package cn.quantgroup.xyqb.repository;
import
cn.quantgroup.user.enums.OccupationEnum
;
import
cn.quantgroup.user.enums.OccupationEnum
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.List
;
import
java.util.List
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
static
cn
.
quantgroup
.
user
.
enums
.
OccupationEnum
.
STUDENT
;
/**
/**
* Created by 11 on 2016/12/30.
* Created by 11 on 2016/12/30.
...
...
src/main/java/cn/quantgroup/xyqb/repository/IUserQueryLogRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
repository
;
import
cn.quantgroup.xyqb.entity.UserQueryLog
;
import
cn.quantgroup.xyqb.entity.UserQueryLog
;
import
java.util.Date
;
import
java.util.List
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* Created by 11 on 2016/12/30.
* Created by 11 on 2016/12/30.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/repository/IUserRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
repository
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
java.util.List
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
/**
/**
* Created by Miraculous on 15/7/4.
* Created by Miraculous on 15/7/4.
...
...
src/main/java/cn/quantgroup/xyqb/repository/IWeChatInfoRelationRepository.java
View file @
3c8b53b3
...
@@ -2,16 +2,12 @@ package cn.quantgroup.xyqb.repository;
...
@@ -2,16 +2,12 @@ package cn.quantgroup.xyqb.repository;
import
cn.quantgroup.xyqb.entity.WechatInfoRelation
;
import
cn.quantgroup.xyqb.entity.WechatInfoRelation
;
import
cn.quantgroup.xyqb.entity.WechatUserInfo
;
import
java.util.List
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
static
org
.
springframework
.
transaction
.
annotation
.
Propagation
.
MANDATORY
;
public
interface
IWeChatInfoRelationRepository
extends
JpaRepository
<
WechatInfoRelation
,
Long
>
{
public
interface
IWeChatInfoRelationRepository
extends
JpaRepository
<
WechatInfoRelation
,
Long
>
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
...
...
src/main/java/cn/quantgroup/xyqb/repository/IWeChatUserRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
repository
;
import
static
org
.
springframework
.
transaction
.
annotation
.
Propagation
.
MANDATORY
;
import
cn.quantgroup.xyqb.entity.WechatUserInfo
;
import
cn.quantgroup.xyqb.entity.WechatUserInfo
;
import
java.util.List
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
static
org
.
springframework
.
transaction
.
annotation
.
Propagation
.
MANDATORY
;
/**
/**
* Created by 11 on 2017/1/18.
* Created by 11 on 2017/1/18.
* modify by djh 20200527 http://confluence.quantgroup.cn/pages/viewpage.action?pageId=30657427
* modify by djh 20200527 http://confluence.quantgroup.cn/pages/viewpage.action?pageId=30657427
...
...
src/main/java/cn/quantgroup/xyqb/risk/entity/CountDevice.java
View file @
3c8b53b3
...
@@ -2,11 +2,14 @@ package cn.quantgroup.xyqb.risk.entity;
...
@@ -2,11 +2,14 @@ package cn.quantgroup.xyqb.risk.entity;
import
cn.quantgroup.xyqb.entity.enums.Device
;
import
cn.quantgroup.xyqb.entity.enums.Device
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.NamedNativeQueries
;
import
javax.persistence.NamedNativeQuery
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.ToString
;
import
lombok.ToString
;
import
javax.persistence.*
;
/**
/**
* 统计黑名单
* 统计黑名单
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/risk/entity/LoginInfo.java
View file @
3c8b53b3
...
@@ -2,11 +2,10 @@ package cn.quantgroup.xyqb.risk.entity;
...
@@ -2,11 +2,10 @@ package cn.quantgroup.xyqb.risk.entity;
import
cn.quantgroup.xyqb.entity.BaseEntity
;
import
cn.quantgroup.xyqb.entity.BaseEntity
;
import
cn.quantgroup.xyqb.entity.enums.Device
;
import
cn.quantgroup.xyqb.entity.enums.Device
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
lombok.Data
;
/**
/**
* @author :dongjianhua
* @author :dongjianhua
...
...
src/main/java/cn/quantgroup/xyqb/risk/entity/WhiteList.java
View file @
3c8b53b3
...
@@ -2,11 +2,10 @@ package cn.quantgroup.xyqb.risk.entity;
...
@@ -2,11 +2,10 @@ package cn.quantgroup.xyqb.risk.entity;
import
cn.quantgroup.xyqb.entity.BaseEntity
;
import
cn.quantgroup.xyqb.entity.BaseEntity
;
import
cn.quantgroup.xyqb.entity.enums.KeyType
;
import
cn.quantgroup.xyqb.entity.enums.KeyType
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
lombok.Data
;
/**
/**
* @author :dongjianhua
* @author :dongjianhua
...
...
src/main/java/cn/quantgroup/xyqb/risk/repository/WhiteListRepository.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
risk
.
repository
;
package
cn
.
quantgroup
.
xyqb
.
risk
.
repository
;
import
cn.quantgroup.xyqb.risk.entity.WhiteList
;
import
cn.quantgroup.xyqb.entity.enums.KeyType
;
import
cn.quantgroup.xyqb.entity.enums.KeyType
;
import
cn.quantgroup.xyqb.risk.entity.WhiteList
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
public
interface
WhiteListRepository
extends
JpaRepository
<
WhiteList
,
Long
>
{
public
interface
WhiteListRepository
extends
JpaRepository
<
WhiteList
,
Long
>
{
...
...
src/main/java/cn/quantgroup/xyqb/security/AssentHeader.java
View file @
3c8b53b3
...
@@ -2,8 +2,6 @@ package cn.quantgroup.xyqb.security;
...
@@ -2,8 +2,6 @@ package cn.quantgroup.xyqb.security;
import
cn.quantgroup.xyqb.entity.enums.Device
;
import
cn.quantgroup.xyqb.entity.enums.Device
;
import
java.util.Objects
;
/**
/**
* Created by Administrator on 2021/6/30 0030.
* Created by Administrator on 2021/6/30 0030.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/security/AuthenticationAdapter.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
security
;
package
cn
.
quantgroup
.
xyqb
.
security
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.core.Authentication
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
org.springframework.security.core.Authentication
;
/**
/**
* Created by Administrator on 2021/7/1 0001.
* Created by Administrator on 2021/7/1 0001.
...
...
src/main/java/cn/quantgroup/xyqb/security/AuthenticationPrincipal.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
security
;
package
cn
.
quantgroup
.
xyqb
.
security
;
import
javax.security.auth.Subject
;
import
java.security.Principal
;
import
java.security.Principal
;
import
javax.security.auth.Subject
;
/**
/**
* Created by Administrator on 2021/7/1 0001.
* Created by Administrator on 2021/7/1 0001.
...
...
src/main/java/cn/quantgroup/xyqb/security/AuthorizationPoint.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
security
;
package
cn
.
quantgroup
.
xyqb
.
security
;
import
java.lang.annotation.*
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
/**
* Created by Administrator on 2021/6/25 0025.
* Created by Administrator on 2021/6/25 0025.
...
...
src/main/java/cn/quantgroup/xyqb/security/CustomerAuthenticationManager.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
security
;
package
cn
.
quantgroup
.
xyqb
.
security
;
import
java.security.Principal
;
import
java.util.Properties
;
import
org.springframework.security.authentication.AuthenticationManager
;
import
org.springframework.security.authentication.AuthenticationManager
;
import
org.springframework.security.authentication.BadCredentialsException
;
import
org.springframework.security.authentication.BadCredentialsException
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.security.core.AuthenticationException
;
import
org.springframework.security.core.AuthenticationException
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
java.security.Principal
;
import
java.util.Properties
;
/**
/**
* Created by Administrator on 2021/7/1 0001.
* Created by Administrator on 2021/7/1 0001.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/security/HttpAspect.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
security
;
package
cn
.
quantgroup
.
xyqb
.
security
;
import
static
cn
.
quantgroup
.
xyqb
.
security
.
SecurityConstant
.
DEFAULT_DEVICE_ID
;
import
cn.quantgroup.xyqb.entity.enums.Device
;
import
cn.quantgroup.xyqb.entity.enums.Device
;
import
cn.quantgroup.xyqb.exception.DataException
;
import
cn.quantgroup.xyqb.exception.DataException
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
import
static
cn
.
quantgroup
.
xyqb
.
security
.
SecurityConstant
.
DEFAULT_DEVICE_ID
;
/**
/**
* Created by Administrator on 2021/6/30 0030.
* Created by Administrator on 2021/6/30 0030.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/security/RSADecrypt.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
security
;
package
cn
.
quantgroup
.
xyqb
.
security
;
import
javax.crypto.Cipher
;
import
java.security.KeyFactory
;
import
java.security.KeyFactory
;
import
java.security.PrivateKey
;
import
java.security.PrivateKey
;
import
java.security.spec.PKCS8EncodedKeySpec
;
import
java.security.spec.PKCS8EncodedKeySpec
;
import
java.util.Base64
;
import
java.util.Base64
;
import
javax.crypto.Cipher
;
/**
/**
* Created by Administrator on 2021/7/5 0005.
* Created by Administrator on 2021/7/5 0005.
...
...
src/main/java/cn/quantgroup/xyqb/service/LoginInfoService.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
;
package
cn
.
quantgroup
.
xyqb
.
service
;
import
static
cn
.
quantgroup
.
xyqb
.
security
.
SecurityConstant
.
DEFAULT_DEVICE_ID
;
import
cn.quantgroup.xyqb.entity.enums.Device
;
import
cn.quantgroup.xyqb.entity.enums.Device
;
import
cn.quantgroup.xyqb.model.LoginRefuseResult
;
import
cn.quantgroup.xyqb.model.LoginRefuseResult
;
import
cn.quantgroup.xyqb.risk.repository.LoginInfoRepository
;
import
cn.quantgroup.xyqb.risk.repository.LoginInfoRepository
;
...
@@ -10,8 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -10,8 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
static
cn
.
quantgroup
.
xyqb
.
security
.
SecurityConstant
.
DEFAULT_DEVICE_ID
;
/**
/**
* Created by Administrator on 2021/7/1 0001.
* Created by Administrator on 2021/7/1 0001.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/api/IUserApiService.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
api
;
package
cn
.
quantgroup
.
xyqb
.
service
.
api
;
import
cn.quantgroup.xyqb.model.UserFullInfo
;
import
cn.quantgroup.xyqb.model.UserFullInfo
;
import
java.util.Optional
;
import
java.util.Optional
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/api/impl/UserApiServiceImpl.java
View file @
3c8b53b3
...
@@ -6,11 +6,10 @@ import cn.quantgroup.xyqb.model.UserFullInfo;
...
@@ -6,11 +6,10 @@ import cn.quantgroup.xyqb.model.UserFullInfo;
import
cn.quantgroup.xyqb.service.api.IUserApiService
;
import
cn.quantgroup.xyqb.service.api.IUserApiService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
java.util.Optional
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.Optional
;
/**
/**
* Created by FrankChow on 15/12/16.
* Created by FrankChow on 15/12/16.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/auth/IIdCardService.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
auth
;
package
cn
.
quantgroup
.
xyqb
.
service
.
auth
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
java.text.ParseException
;
import
java.text.ParseException
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/auth/impl/IdCardServiceImpl.java
View file @
3c8b53b3
...
@@ -5,16 +5,19 @@ import cn.quantgroup.xyqb.exception.IdCardException;
...
@@ -5,16 +5,19 @@ import cn.quantgroup.xyqb.exception.IdCardException;
import
cn.quantgroup.xyqb.model.Gender
;
import
cn.quantgroup.xyqb.model.Gender
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
cn.quantgroup.xyqb.service.auth.IIdCardService
;
import
cn.quantgroup.xyqb.service.auth.IIdCardService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.PostConstruct
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.GregorianCalendar
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.regex.Matcher
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
import
javax.annotation.PostConstruct
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.stereotype.Service
;
/**
/**
* Created by Miraculous on 15/7/10.
* Created by Miraculous on 15/7/10.
...
...
src/main/java/cn/quantgroup/xyqb/service/auth/impl/UserAuthorizedServiceImpl.java
View file @
3c8b53b3
...
@@ -7,18 +7,13 @@ import cn.quantgroup.xyqb.repository.IUserAuthorizedRepository;
...
@@ -7,18 +7,13 @@ import cn.quantgroup.xyqb.repository.IUserAuthorizedRepository;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
import
cn.quantgroup.xyqb.service.auth.IIdCardService
;
import
cn.quantgroup.xyqb.service.auth.IIdCardService
;
import
cn.quantgroup.xyqb.service.auth.IUserAuthorizedService
;
import
cn.quantgroup.xyqb.service.auth.IUserAuthorizedService
;
import
java.text.ParseException
;
import
java.util.Objects
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.cache.annotation.Cacheable
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.sql.Timestamp
;
import
java.text.ParseException
;
import
java.util.Objects
;
/**
/**
* @author xufei on 2018/1/5.
* @author xufei on 2018/1/5.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/captcha/GeetestLib.java
View file @
3c8b53b3
...
@@ -2,11 +2,6 @@ package cn.quantgroup.xyqb.service.captcha;
...
@@ -2,11 +2,6 @@ package cn.quantgroup.xyqb.service.captcha;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.http.HttpStatus
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.io.OutputStreamWriter
;
import
java.io.OutputStreamWriter
;
...
@@ -16,6 +11,10 @@ import java.util.Date;
...
@@ -16,6 +11,10 @@ import java.util.Date;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Objects
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.http.HttpStatus
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
/**
/**
* Java SDK
* Java SDK
...
...
src/main/java/cn/quantgroup/xyqb/service/captcha/IGeetestCaptchaService.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
captcha
;
package
cn
.
quantgroup
.
xyqb
.
service
.
captcha
;
import
cn.quantgroup.xyqb.model.ClientType
;
import
cn.quantgroup.xyqb.model.ClientType
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/captcha/impl/GeetestCaptchaServiceImpl.java
View file @
3c8b53b3
...
@@ -4,13 +4,12 @@ import cn.quantgroup.xyqb.Constants;
...
@@ -4,13 +4,12 @@ import cn.quantgroup.xyqb.Constants;
import
cn.quantgroup.xyqb.model.ClientType
;
import
cn.quantgroup.xyqb.model.ClientType
;
import
cn.quantgroup.xyqb.service.captcha.GeetestLib
;
import
cn.quantgroup.xyqb.service.captcha.GeetestLib
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestCaptchaService
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestCaptchaService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Objects
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
/**
/**
* @author xufei on 2018/1/30.
* @author xufei on 2018/1/30.
...
...
src/main/java/cn/quantgroup/xyqb/service/captcha/impl/GeetestLogServiceImpl.java
View file @
3c8b53b3
...
@@ -5,16 +5,15 @@ import cn.quantgroup.xyqb.model.ClientType;
...
@@ -5,16 +5,15 @@ import cn.quantgroup.xyqb.model.ClientType;
import
cn.quantgroup.xyqb.model.SettingType
;
import
cn.quantgroup.xyqb.model.SettingType
;
import
cn.quantgroup.xyqb.repository.IGeetestLogRepository
;
import
cn.quantgroup.xyqb.repository.IGeetestLogRepository
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestLogService
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestLogService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Calendar
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Map
;
import
java.util.Map
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
/**
/**
* @author xufei on 2018/1/30.
* @author xufei on 2018/1/30.
...
...
src/main/java/cn/quantgroup/xyqb/service/captcha/impl/QuantgroupCaptchaServiceImpl.java
View file @
3c8b53b3
...
@@ -4,14 +4,6 @@ import cn.quantgroup.xyqb.Constants;
...
@@ -4,14 +4,6 @@ import cn.quantgroup.xyqb.Constants;
import
cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService
;
import
cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService
;
import
cn.quantgroup.xyqb.thirdparty.jcaptcha.AbstractManageableImageCaptchaService
;
import
cn.quantgroup.xyqb.thirdparty.jcaptcha.AbstractManageableImageCaptchaService
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.stereotype.Service
;
import
javax.imageio.ImageIO
;
import
java.awt.image.BufferedImage
;
import
java.awt.image.BufferedImage
;
import
java.io.ByteArrayOutputStream
;
import
java.io.ByteArrayOutputStream
;
import
java.io.IOException
;
import
java.io.IOException
;
...
@@ -19,6 +11,13 @@ import java.util.HashMap;
...
@@ -19,6 +11,13 @@ import java.util.HashMap;
import
java.util.Locale
;
import
java.util.Locale
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.UUID
;
import
java.util.UUID
;
import
javax.imageio.ImageIO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.stereotype.Service
;
/**
/**
* @author xufei on 2018/1/30.
* @author xufei on 2018/1/30.
...
...
src/main/java/cn/quantgroup/xyqb/service/http/impl/HttpServiceImpl.java
View file @
3c8b53b3
...
@@ -6,6 +6,15 @@ import cn.quantgroup.xyqb.service.http.IHttpService;
...
@@ -6,6 +6,15 @@ import cn.quantgroup.xyqb.service.http.IHttpService;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
java.security.KeyManagementException
;
import
java.security.KeyStoreException
;
import
java.security.NoSuchAlgorithmException
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Set
;
import
javax.net.ssl.SSLContext
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.Charsets
;
import
org.apache.commons.codec.Charsets
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.collections.MapUtils
;
...
@@ -44,12 +53,6 @@ import org.apache.http.message.BasicNameValuePair;
...
@@ -44,12 +53,6 @@ import org.apache.http.message.BasicNameValuePair;
import
org.apache.http.util.EntityUtils
;
import
org.apache.http.util.EntityUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.net.ssl.SSLContext
;
import
java.security.KeyManagementException
;
import
java.security.KeyStoreException
;
import
java.security.NoSuchAlgorithmException
;
import
java.util.*
;
/**
/**
* @author mengfan.feng
* @author mengfan.feng
* @time 2015-08-13 10:19
* @time 2015-08-13 10:19
...
...
src/main/java/cn/quantgroup/xyqb/service/merchant/impl/MerchantServiceImpl.java
View file @
3c8b53b3
...
@@ -5,14 +5,13 @@ import cn.quantgroup.xyqb.entity.MerchantConfig;
...
@@ -5,14 +5,13 @@ import cn.quantgroup.xyqb.entity.MerchantConfig;
import
cn.quantgroup.xyqb.repository.IMerchantConfigRepository
;
import
cn.quantgroup.xyqb.repository.IMerchantConfigRepository
;
import
cn.quantgroup.xyqb.repository.IMerchantRepository
;
import
cn.quantgroup.xyqb.repository.IMerchantRepository
;
import
cn.quantgroup.xyqb.service.merchant.IMerchantService
;
import
cn.quantgroup.xyqb.service.merchant.IMerchantService
;
import
java.util.List
;
import
java.util.concurrent.ConcurrentHashMap
;
import
javax.annotation.PostConstruct
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
javax.annotation.PostConstruct
;
import
java.util.List
;
import
java.util.concurrent.ConcurrentHashMap
;
/**
/**
* Created by Miraculous on 2017/1/3.
* Created by Miraculous on 2017/1/3.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/middleoffice/applet/impl/AppletServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
middleoffice
.
applet
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
middleoffice
.
applet
.
impl
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_FREEZE_ERROR
;
import
cn.quantgroup.xyqb.controller.middleoffice.login.ILoginModule
;
import
cn.quantgroup.xyqb.controller.middleoffice.login.ILoginModule
;
import
cn.quantgroup.xyqb.controller.middleoffice.login.LoginVo
;
import
cn.quantgroup.xyqb.controller.middleoffice.login.LoginVo
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
...
@@ -18,8 +20,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -18,8 +20,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_FREEZE_ERROR
;
/**
/**
* @author :dongjianhua
* @author :dongjianhua
* @date :Created in 2020/5/27 17:27
* @date :Created in 2020/5/27 17:27
...
...
src/main/java/cn/quantgroup/xyqb/service/mq/impl/IRegisterMqServiceImpl.java
View file @
3c8b53b3
...
@@ -2,9 +2,8 @@ package cn.quantgroup.xyqb.service.mq.impl;
...
@@ -2,9 +2,8 @@ package cn.quantgroup.xyqb.service.mq.impl;
import
cn.quantgroup.xyqb.service.mq.IRegisterMqService
;
import
cn.quantgroup.xyqb.service.mq.IRegisterMqService
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
java.io.Serializable
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.amqp.core.Queue
;
import
org.springframework.amqp.core.Queue
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -12,8 +11,6 @@ import org.springframework.beans.factory.annotation.Qualifier;
...
@@ -12,8 +11,6 @@ import org.springframework.beans.factory.annotation.Qualifier;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.io.Serializable
;
/**
/**
* Created by xuran on 2017/9/7.
* Created by xuran on 2017/9/7.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/mq/impl/LoanVestMqServiceImpl.java
View file @
3c8b53b3
...
@@ -3,14 +3,13 @@ package cn.quantgroup.xyqb.service.mq.impl;
...
@@ -3,14 +3,13 @@ package cn.quantgroup.xyqb.service.mq.impl;
import
cn.quantgroup.xyqb.model.UserStatistics
;
import
cn.quantgroup.xyqb.model.UserStatistics
;
import
cn.quantgroup.xyqb.service.mq.IVestService
;
import
cn.quantgroup.xyqb.service.mq.IVestService
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
/**
/**
* Created by xuran on 2017/6/21.
* Created by xuran on 2017/6/21.
* 用户统计信息
* 用户统计信息
...
...
src/main/java/cn/quantgroup/xyqb/service/page/impl/PageServiceImpl.java
View file @
3c8b53b3
...
@@ -13,13 +13,12 @@ import cn.quantgroup.xyqb.service.user.IAddressService;
...
@@ -13,13 +13,12 @@ import cn.quantgroup.xyqb.service.user.IAddressService;
import
cn.quantgroup.xyqb.service.user.IContactService
;
import
cn.quantgroup.xyqb.service.user.IContactService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserExtInfoService
;
import
cn.quantgroup.xyqb.service.user.IUserExtInfoService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.PostConstruct
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
javax.annotation.PostConstruct
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
/**
* Created by Miraculous on 2017/1/3.
* Created by Miraculous on 2017/1/3.
...
...
src/main/java/cn/quantgroup/xyqb/service/register/IUserDeregisterService.java
View file @
3c8b53b3
...
@@ -2,8 +2,6 @@ package cn.quantgroup.xyqb.service.register;
...
@@ -2,8 +2,6 @@ package cn.quantgroup.xyqb.service.register;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDeregisterRecord
;
import
cn.quantgroup.xyqb.entity.UserDeregisterRecord
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/register/IUserRegisterService.java
View file @
3c8b53b3
...
@@ -3,7 +3,6 @@ package cn.quantgroup.xyqb.service.register;
...
@@ -3,7 +3,6 @@ package cn.quantgroup.xyqb.service.register;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/register/impl/IUserDeregisterServiceImpl.java
View file @
3c8b53b3
...
@@ -5,13 +5,12 @@ import cn.quantgroup.xyqb.entity.UserDeregisterRecord;
...
@@ -5,13 +5,12 @@ import cn.quantgroup.xyqb.entity.UserDeregisterRecord;
import
cn.quantgroup.xyqb.repository.IUserDeregisterRecordRepository
;
import
cn.quantgroup.xyqb.repository.IUserDeregisterRecordRepository
;
import
cn.quantgroup.xyqb.service.register.IUserDeregisterService
;
import
cn.quantgroup.xyqb.service.register.IUserDeregisterService
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
java.util.Calendar
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
/**
/**
* 销户服务实现
* 销户服务实现
...
...
src/main/java/cn/quantgroup/xyqb/service/register/impl/UserRegisterServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
register
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
register
.
impl
;
import
static
cn
.
quantgroup
.
xyqb
.
Constants
.
DELETE_USER_AGAIN_REGISTER_INTERVAL
;
import
cn.quantgroup.user.enums.RecordType
;
import
cn.quantgroup.user.enums.RecordType
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Address
;
...
@@ -18,17 +20,19 @@ import cn.quantgroup.xyqb.util.DateUtils;
...
@@ -18,17 +20,19 @@ import cn.quantgroup.xyqb.util.DateUtils;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
java.util.Comparator
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.util.UUID
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.util.*
;
import
static
cn
.
quantgroup
.
xyqb
.
Constants
.
DELETE_USER_AGAIN_REGISTER_INTERVAL
;
/**
/**
* @author liqing
* @author liqing
* @date 2017/12/4 0004
* @date 2017/12/4 0004
...
...
src/main/java/cn/quantgroup/xyqb/service/risk/impl/LoginRiskServiceImpl.java
View file @
3c8b53b3
...
@@ -4,11 +4,10 @@ import cn.quantgroup.xyqb.entity.enums.KeyType;
...
@@ -4,11 +4,10 @@ import cn.quantgroup.xyqb.entity.enums.KeyType;
import
cn.quantgroup.xyqb.risk.entity.WhiteList
;
import
cn.quantgroup.xyqb.risk.entity.WhiteList
;
import
cn.quantgroup.xyqb.risk.repository.WhiteListRepository
;
import
cn.quantgroup.xyqb.risk.repository.WhiteListRepository
;
import
cn.quantgroup.xyqb.service.risk.LoginRiskService
;
import
cn.quantgroup.xyqb.service.risk.LoginRiskService
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
/**
/**
* @author :dongjianhua
* @author :dongjianhua
* @date :Created in 2020/12/14 15:07
* @date :Created in 2020/12/14 15:07
...
...
src/main/java/cn/quantgroup/xyqb/service/session/ISessionService.java
View file @
3c8b53b3
...
@@ -5,7 +5,6 @@ import cn.quantgroup.xyqb.model.AuthBean;
...
@@ -5,7 +5,6 @@ import cn.quantgroup.xyqb.model.AuthBean;
import
cn.quantgroup.xyqb.model.LoginProperties
;
import
cn.quantgroup.xyqb.model.LoginProperties
;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
cn.quantgroup.xyqb.model.session.SessionValue
;
import
cn.quantgroup.xyqb.model.session.SessionValue
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/session/aspect/UserBtRegisterFill.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
session
.
aspect
;
package
cn
.
quantgroup
.
xyqb
.
service
.
session
.
aspect
;
import
java.lang.annotation.*
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
/**
* 用户的白条注册信息填充标记
* 用户的白条注册信息填充标记
...
...
src/main/java/cn/quantgroup/xyqb/service/session/impl/SessionServiceImpl.java
View file @
3c8b53b3
...
@@ -14,6 +14,17 @@ import cn.quantgroup.xyqb.service.user.ILoginRecordService;
...
@@ -14,6 +14,17 @@ import cn.quantgroup.xyqb.service.user.ILoginRecordService;
import
cn.quantgroup.xyqb.util.MqUtils
;
import
cn.quantgroup.xyqb.util.MqUtils
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Set
;
import
java.util.UUID
;
import
java.util.concurrent.TimeUnit
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
...
@@ -25,11 +36,6 @@ import org.springframework.stereotype.Service;
...
@@ -25,11 +36,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
javax.annotation.Resource
;
import
java.sql.Timestamp
;
import
java.util.*
;
import
java.util.concurrent.TimeUnit
;
/**
/**
* session创建和续期
* session创建和续期
*
*
...
...
src/main/java/cn/quantgroup/xyqb/service/sms/impl/SmsServiceImpl.java
View file @
3c8b53b3
...
@@ -5,6 +5,7 @@ import cn.quantgroup.sms.SmsSender;
...
@@ -5,6 +5,7 @@ import cn.quantgroup.sms.SmsSender;
import
cn.quantgroup.tech.util.TechEnvironment
;
import
cn.quantgroup.tech.util.TechEnvironment
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
java.util.Collections
;
import
lombok.Synchronized
;
import
lombok.Synchronized
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
...
@@ -14,8 +15,6 @@ import org.springframework.beans.factory.annotation.Value;
...
@@ -14,8 +15,6 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.Collections
;
/**
/**
* @author mengfan.feng
* @author mengfan.feng
...
...
src/main/java/cn/quantgroup/xyqb/service/user/IAddressService.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Address
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/user/IContactService.java
View file @
3c8b53b3
...
@@ -3,8 +3,6 @@ package cn.quantgroup.xyqb.service.user;
...
@@ -3,8 +3,6 @@ package cn.quantgroup.xyqb.service.user;
import
cn.quantgroup.user.enums.BizType
;
import
cn.quantgroup.user.enums.BizType
;
import
cn.quantgroup.user.enums.Relation
;
import
cn.quantgroup.user.enums.Relation
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
org.springframework.data.jpa.repository.Query
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/user/IOauthClientDetailsService.java
View file @
3c8b53b3
...
@@ -2,8 +2,6 @@ package cn.quantgroup.xyqb.service.user;
...
@@ -2,8 +2,6 @@ package cn.quantgroup.xyqb.service.user;
import
cn.quantgroup.xyqb.entity.OauthClientDetailsEntity
;
import
cn.quantgroup.xyqb.entity.OauthClientDetailsEntity
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
org.springframework.data.domain.Page
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/user/IProductLoginService.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/user/ISmsService.java
View file @
3c8b53b3
...
@@ -5,14 +5,17 @@ import cn.quantgroup.xyqb.model.JsonResult;
...
@@ -5,14 +5,17 @@ import cn.quantgroup.xyqb.model.JsonResult;
import
cn.quantgroup.xyqb.repository.ISmsTemplateRepository
;
import
cn.quantgroup.xyqb.repository.ISmsTemplateRepository
;
import
cn.quantgroup.xyqb.util.GcodeUtils
;
import
cn.quantgroup.xyqb.util.GcodeUtils
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Optional
;
import
javax.inject.Inject
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
javax.inject.Inject
;
import
java.util.*
;
/**
/**
* Created by hechao on 2020/2/17.
* Created by hechao on 2020/2/17.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/user/ITenantService.java
View file @
3c8b53b3
...
@@ -4,7 +4,6 @@ import cn.quantgroup.xyqb.entity.CustomerInfoEntity;
...
@@ -4,7 +4,6 @@ import cn.quantgroup.xyqb.entity.CustomerInfoEntity;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.model.UserBrief
;
import
cn.quantgroup.xyqb.model.UserBrief
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/user/IUserDetailService.java
View file @
3c8b53b3
...
@@ -2,11 +2,10 @@ package cn.quantgroup.xyqb.service.user;
...
@@ -2,11 +2,10 @@ package cn.quantgroup.xyqb.service.user;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.service.user.vo.UserDetailVO
;
import
cn.quantgroup.xyqb.service.user.vo.UserDetailVO
;
import
java.util.List
;
import
org.springframework.dao.DataIntegrityViolationException
;
import
org.springframework.dao.DataIntegrityViolationException
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
java.util.List
;
/**
/**
* Created by 11 on 2016/12/29.
* Created by 11 on 2016/12/29.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/user/IUserExtInfoService.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
;
import
cn.quantgroup.user.enums.OccupationEnum
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* Created by Miraculous on 2017/1/3.
* Created by Miraculous on 2017/1/3.
...
...
src/main/java/cn/quantgroup/xyqb/service/user/IUserQueryLogService.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
;
import
cn.quantgroup.xyqb.entity.UserQueryLog
;
import
cn.quantgroup.xyqb.entity.UserQueryLog
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
...
src/main/java/cn/quantgroup/xyqb/service/user/IUserService.java
View file @
3c8b53b3
...
@@ -6,10 +6,9 @@ import cn.quantgroup.xyqb.entity.User;
...
@@ -6,10 +6,9 @@ import cn.quantgroup.xyqb.entity.User;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.LoginProperties
;
import
cn.quantgroup.xyqb.model.LoginProperties
;
import
cn.quantgroup.xyqb.model.UserInfo
;
import
cn.quantgroup.xyqb.model.UserInfo
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
/**
/**
* Created by Miraculous on 15/7/5.
* Created by Miraculous on 15/7/5.
...
...
src/main/java/cn/quantgroup/xyqb/service/user/UserCenterService.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
;
import
cn.quantgroup.xyqb.entity.UserAttached
;
import
cn.quantgroup.xyqb.entity.UserAttached
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/AddressServiceImpl.java
View file @
3c8b53b3
...
@@ -5,14 +5,11 @@ import cn.quantgroup.xyqb.repository.IAddressRepository;
...
@@ -5,14 +5,11 @@ import cn.quantgroup.xyqb.repository.IAddressRepository;
import
cn.quantgroup.xyqb.service.user.IAddressService
;
import
cn.quantgroup.xyqb.service.user.IAddressService
;
import
cn.quantgroup.xyqb.util.AddressFilter
;
import
cn.quantgroup.xyqb.util.AddressFilter
;
import
cn.quantgroup.xyqb.util.EmojiUtil
;
import
cn.quantgroup.xyqb.util.EmojiUtil
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.sql.Timestamp
;
import
java.util.List
;
/**
/**
* Created by Miraculous on 2017/1/3.
* Created by Miraculous on 2017/1/3.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/CleanDataServiceImp.java
View file @
3c8b53b3
...
@@ -7,15 +7,6 @@ import cn.quantgroup.xyqb.service.user.CleanDataService;
...
@@ -7,15 +7,6 @@ import cn.quantgroup.xyqb.service.user.CleanDataService;
import
cn.quantgroup.xyqb.service.user.IUserExtInfoService
;
import
cn.quantgroup.xyqb.service.user.IUserExtInfoService
;
import
com.google.common.base.Stopwatch
;
import
com.google.common.base.Stopwatch
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
...
@@ -24,6 +15,14 @@ import java.util.Date;
...
@@ -24,6 +15,14 @@ import java.util.Date;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
/**
/**
* @author :dongjianhua
* @author :dongjianhua
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/ContactServiceImpl.java
View file @
3c8b53b3
...
@@ -5,6 +5,8 @@ import cn.quantgroup.user.enums.Relation;
...
@@ -5,6 +5,8 @@ import cn.quantgroup.user.enums.Relation;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.repository.IContactRepository
;
import
cn.quantgroup.xyqb.repository.IContactRepository
;
import
cn.quantgroup.xyqb.service.user.IContactService
;
import
cn.quantgroup.xyqb.service.user.IContactService
;
import
java.util.List
;
import
java.util.Objects
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -13,10 +15,6 @@ import org.springframework.cache.annotation.Caching;
...
@@ -13,10 +15,6 @@ import org.springframework.cache.annotation.Caching;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
java.sql.Timestamp
;
import
java.util.List
;
import
java.util.Objects
;
/**
/**
* Created by Miraculous on 2017/1/3.
* Created by Miraculous on 2017/1/3.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/CustomerInfoServiceImpl.java
View file @
3c8b53b3
...
@@ -17,14 +17,12 @@ public class CustomerInfoServiceImpl implements ICustomerInfoService {
...
@@ -17,14 +17,12 @@ public class CustomerInfoServiceImpl implements ICustomerInfoService {
private
ICustomerInfoRepository
customerInfoRepository
;
private
ICustomerInfoRepository
customerInfoRepository
;
@Override
@Override
// @TargetDataSource(type = DSType.SLAVE)//查询从库
public
CustomerInfoEntity
findSlaveByCustomerId
(
Long
customerId
)
{
public
CustomerInfoEntity
findSlaveByCustomerId
(
Long
customerId
)
{
CustomerInfoEntity
customerInfo
=
customerInfoRepository
.
findByCustomerId
(
customerId
);
CustomerInfoEntity
customerInfo
=
customerInfoRepository
.
findByCustomerId
(
customerId
);
return
customerInfo
;
return
customerInfo
;
}
}
@Override
@Override
// @TargetDataSource(type = DSType.SLAVE)//查询从库
public
CustomerInfoEntity
findSlaveByOpenId
(
String
openId
,
String
institutionId
,
String
productId
)
{
public
CustomerInfoEntity
findSlaveByOpenId
(
String
openId
,
String
institutionId
,
String
productId
)
{
CustomerInfoEntity
customerInfo
=
customerInfoRepository
.
findByInstitutionIdAndProductIdAndSourceOpenId
(
institutionId
,
productId
,
openId
);
CustomerInfoEntity
customerInfo
=
customerInfoRepository
.
findByInstitutionIdAndProductIdAndSourceOpenId
(
institutionId
,
productId
,
openId
);
return
customerInfo
;
return
customerInfo
;
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/CustomerLoginServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
import
cn.quantgroup.tech.db.DSType
;
import
cn.quantgroup.tech.db.TargetDataSource
;
import
cn.quantgroup.xyqb.entity.CustomerLoginEntity
;
import
cn.quantgroup.xyqb.entity.CustomerLoginEntity
;
import
cn.quantgroup.xyqb.repository.ICustomerLoginRepository
;
import
cn.quantgroup.xyqb.repository.ICustomerLoginRepository
;
import
cn.quantgroup.xyqb.service.user.ICustomerLoginService
;
import
cn.quantgroup.xyqb.service.user.ICustomerLoginService
;
...
@@ -19,7 +17,6 @@ public class CustomerLoginServiceImpl implements ICustomerLoginService {
...
@@ -19,7 +17,6 @@ public class CustomerLoginServiceImpl implements ICustomerLoginService {
private
ICustomerLoginRepository
customerLoginRepository
;
private
ICustomerLoginRepository
customerLoginRepository
;
@Override
@Override
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
//查询从库
public
CustomerLoginEntity
findSlaveByCustomerId
(
Long
customerId
)
{
public
CustomerLoginEntity
findSlaveByCustomerId
(
Long
customerId
)
{
CustomerLoginEntity
customerLogin
=
customerLoginRepository
.
findFirstByCustomerId
(
customerId
);
CustomerLoginEntity
customerLogin
=
customerLoginRepository
.
findFirstByCustomerId
(
customerId
);
return
customerLogin
;
return
customerLogin
;
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/LkbUserviceImpl.java
View file @
3c8b53b3
...
@@ -6,15 +6,14 @@ import cn.quantgroup.xyqb.service.user.ILkbUserService;
...
@@ -6,15 +6,14 @@ import cn.quantgroup.xyqb.service.user.ILkbUserService;
import
cn.quantgroup.xyqb.util.JsonUtil
;
import
cn.quantgroup.xyqb.util.JsonUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
java.util.Map
;
import
java.util.Optional
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
import
java.util.Optional
;
/**
/**
* @author mengfan.feng
* @author mengfan.feng
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/LockIpv4ServiceImpl.java
View file @
3c8b53b3
...
@@ -7,18 +7,15 @@ import cn.quantgroup.xyqb.service.user.ILockIpv4Service;
...
@@ -7,18 +7,15 @@ import cn.quantgroup.xyqb.service.user.ILockIpv4Service;
import
cn.quantgroup.xyqb.util.DateUtils
;
import
cn.quantgroup.xyqb.util.DateUtils
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
java.util.Objects
;
import
java.util.concurrent.TimeUnit
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.Objects
;
import
java.util.concurrent.TimeUnit
;
/**
/**
* IPV4锁机制Service实现
* IPV4锁机制Service实现
*
*
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/LoginRecordServiceImpl.java
View file @
3c8b53b3
...
@@ -5,14 +5,13 @@ import cn.quantgroup.xyqb.controller.IBaseController;
...
@@ -5,14 +5,13 @@ import cn.quantgroup.xyqb.controller.IBaseController;
import
cn.quantgroup.xyqb.entity.LoginRecord
;
import
cn.quantgroup.xyqb.entity.LoginRecord
;
import
cn.quantgroup.xyqb.repository.ILoginRecordRepository
;
import
cn.quantgroup.xyqb.repository.ILoginRecordRepository
;
import
cn.quantgroup.xyqb.service.user.ILoginRecordService
;
import
cn.quantgroup.xyqb.service.user.ILoginRecordService
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
/**
/**
* Created by Miraculous on 15/7/5.
* Created by Miraculous on 15/7/5.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/ModifyPhoneNoServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
import
cn.quantgroup.xyqb.model.ModifyPhoneNoApplyStatusEnum
;
import
cn.quantgroup.xyqb.model.ModifyPhoneNoProcessingStatusEnum
;
import
cn.quantgroup.xyqb.aspect.limit.AccessLimit
;
import
cn.quantgroup.xyqb.aspect.limit.AccessLimit
;
import
cn.quantgroup.xyqb.controller.modifyphoneno.req.AuditReq
;
import
cn.quantgroup.xyqb.controller.modifyphoneno.req.AuditReq
;
import
cn.quantgroup.xyqb.controller.modifyphoneno.req.ModifyPhoneNoQueryReq
;
import
cn.quantgroup.xyqb.controller.modifyphoneno.req.ModifyPhoneNoQueryReq
;
...
@@ -11,6 +9,8 @@ import cn.quantgroup.xyqb.controller.modifyphoneno.resp.ProgressResp;
...
@@ -11,6 +9,8 @@ import cn.quantgroup.xyqb.controller.modifyphoneno.resp.ProgressResp;
import
cn.quantgroup.xyqb.entity.ModifyPhoneNo
;
import
cn.quantgroup.xyqb.entity.ModifyPhoneNo
;
import
cn.quantgroup.xyqb.exception.DataException
;
import
cn.quantgroup.xyqb.exception.DataException
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.ModifyPhoneNoApplyStatusEnum
;
import
cn.quantgroup.xyqb.model.ModifyPhoneNoProcessingStatusEnum
;
import
cn.quantgroup.xyqb.repository.IModifyPhoneNoRepository
;
import
cn.quantgroup.xyqb.repository.IModifyPhoneNoRepository
;
import
cn.quantgroup.xyqb.repository.IUserDetailRepository
;
import
cn.quantgroup.xyqb.repository.IUserDetailRepository
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
...
@@ -23,6 +23,12 @@ import com.alibaba.fastjson.JSONException;
...
@@ -23,6 +23,12 @@ import com.alibaba.fastjson.JSONException;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.qiniu.util.Auth
;
import
com.qiniu.util.Auth
;
import
java.util.List
;
import
javax.annotation.Resource
;
import
javax.persistence.criteria.CriteriaBuilder
;
import
javax.persistence.criteria.CriteriaQuery
;
import
javax.persistence.criteria.Predicate
;
import
javax.persistence.criteria.Root
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -35,11 +41,6 @@ import org.springframework.data.jpa.domain.Specification;
...
@@ -35,11 +41,6 @@ import org.springframework.data.jpa.domain.Specification;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
javax.persistence.criteria.*
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* Date: 2019/11/4
* Date: 2019/11/4
* Time: 下午2:59
* Time: 下午2:59
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/OauthClientDetailsServiceImpl.java
View file @
3c8b53b3
...
@@ -2,19 +2,14 @@ package cn.quantgroup.xyqb.service.user.impl;
...
@@ -2,19 +2,14 @@ package cn.quantgroup.xyqb.service.user.impl;
import
cn.quantgroup.xyqb.entity.OauthClientDetailsEntity
;
import
cn.quantgroup.xyqb.entity.OauthClientDetailsEntity
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.repository.IOauthClientDetailsRepository
;
import
cn.quantgroup.xyqb.repository.IOauthClientDetailsRepository
;
import
cn.quantgroup.xyqb.service.user.IOauthClientDetailsService
;
import
cn.quantgroup.xyqb.service.user.IOauthClientDetailsService
;
import
java.util.ArrayList
;
import
java.util.List
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
/**
* Created by 11 on 2016/12/29.
* Created by 11 on 2016/12/29.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/OauthLoginInfoServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
import
cn.quantgroup.xyqb.entity.*
;
import
cn.quantgroup.xyqb.entity.CustomerInfoEntity
;
import
cn.quantgroup.xyqb.entity.CustomerLoginEntity
;
import
cn.quantgroup.xyqb.entity.EntityBuilder
;
import
cn.quantgroup.xyqb.entity.OauthClientDetailsEntity
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.middleoffice.AppletParamEntry
;
import
cn.quantgroup.xyqb.entity.middleoffice.AppletParamEntry
;
import
cn.quantgroup.xyqb.repository.ICustomerInfoRepository
;
import
cn.quantgroup.xyqb.repository.ICustomerInfoRepository
;
import
cn.quantgroup.xyqb.repository.ICustomerLoginRepository
;
import
cn.quantgroup.xyqb.repository.ICustomerLoginRepository
;
...
@@ -10,15 +15,13 @@ import cn.quantgroup.xyqb.service.user.IOauthLoginInfoService;
...
@@ -10,15 +15,13 @@ import cn.quantgroup.xyqb.service.user.IOauthLoginInfoService;
import
cn.quantgroup.xyqb.service.user.IProductLoginService
;
import
cn.quantgroup.xyqb.service.user.IProductLoginService
;
import
cn.quantgroup.xyqb.util.AtomicSequencer
;
import
cn.quantgroup.xyqb.util.AtomicSequencer
;
import
cn.quantgroup.xyqb.util.RandomSequencer
;
import
cn.quantgroup.xyqb.util.RandomSequencer
;
import
com.alibaba.fastjson.JSON
;
import
java.util.Date
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Date
;
/**
/**
* Created by 11 on 2016/12/29.
* Created by 11 on 2016/12/29.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/ProductLoginServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
import
cn.quantgroup.tech.db.DSType
;
import
cn.quantgroup.tech.db.TargetDataSource
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
cn.quantgroup.xyqb.repository.IProductLoginRepository
;
import
cn.quantgroup.xyqb.repository.IProductLoginRepository
;
import
cn.quantgroup.xyqb.service.user.IProductLoginService
;
import
cn.quantgroup.xyqb.service.user.IProductLoginService
;
import
java.util.List
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
/**
* Created by 11 on 2016/12/29.
* Created by 11 on 2016/12/29.
*/
*/
...
@@ -21,7 +18,6 @@ public class ProductLoginServiceImpl implements IProductLoginService {
...
@@ -21,7 +18,6 @@ public class ProductLoginServiceImpl implements IProductLoginService {
private
IProductLoginRepository
productLoginRepository
;
private
IProductLoginRepository
productLoginRepository
;
@Override
@Override
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
//查询从库
public
ProductLoginEntity
findSlaveByPloginInfo
(
String
institutionId
,
String
productId
,
Long
userId
)
{
public
ProductLoginEntity
findSlaveByPloginInfo
(
String
institutionId
,
String
productId
,
Long
userId
)
{
ProductLoginEntity
productLogin
=
productLoginRepository
.
findByInstitutionIdAndProductIdAndExtensionAccountId
(
institutionId
,
productId
,
userId
);
ProductLoginEntity
productLogin
=
productLoginRepository
.
findByInstitutionIdAndProductIdAndExtensionAccountId
(
institutionId
,
productId
,
userId
);
return
productLogin
;
return
productLogin
;
...
@@ -34,7 +30,6 @@ public class ProductLoginServiceImpl implements IProductLoginService {
...
@@ -34,7 +30,6 @@ public class ProductLoginServiceImpl implements IProductLoginService {
}
}
@Override
@Override
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
//查询从库
public
List
<
ProductLoginEntity
>
findSlaveByUserId
(
Long
userId
)
{
public
List
<
ProductLoginEntity
>
findSlaveByUserId
(
Long
userId
)
{
List
<
ProductLoginEntity
>
productLoginEntityList
=
productLoginRepository
.
findAllByExtensionAccountId
(
userId
);
List
<
ProductLoginEntity
>
productLoginEntityList
=
productLoginRepository
.
findAllByExtensionAccountId
(
userId
);
return
productLoginEntityList
;
return
productLoginEntityList
;
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/TenantServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
import
cn.quantgroup.xyqb.entity.*
;
import
cn.quantgroup.xyqb.entity.CustomerInfoEntity
;
import
cn.quantgroup.xyqb.entity.OauthClientDetailsEntity
;
import
cn.quantgroup.xyqb.entity.ProductLoginEntity
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.model.UserBrief
;
import
cn.quantgroup.xyqb.model.UserBrief
;
import
cn.quantgroup.xyqb.service.user.ICustomerInfoService
;
import
cn.quantgroup.xyqb.service.user.ICustomerInfoService
;
import
cn.quantgroup.xyqb.service.user.IOauthClientDetailsService
;
import
cn.quantgroup.xyqb.service.user.IOauthClientDetailsService
;
import
cn.quantgroup.xyqb.service.user.IProductLoginService
;
import
cn.quantgroup.xyqb.service.user.IProductLoginService
;
import
cn.quantgroup.xyqb.service.user.ITenantService
;
import
cn.quantgroup.xyqb.service.user.ITenantService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Optional
;
import
java.util.Optional
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
/**
* Created by 11 on 2016/12/29.
* Created by 11 on 2016/12/29.
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserBtRegisterServiceImpl.java
View file @
3c8b53b3
...
@@ -3,13 +3,11 @@ package cn.quantgroup.xyqb.service.user.impl;
...
@@ -3,13 +3,11 @@ package cn.quantgroup.xyqb.service.user.impl;
import
cn.quantgroup.xyqb.entity.UserBtRegister
;
import
cn.quantgroup.xyqb.entity.UserBtRegister
;
import
cn.quantgroup.xyqb.repository.IUserBtRegisterRepository
;
import
cn.quantgroup.xyqb.repository.IUserBtRegisterRepository
;
import
cn.quantgroup.xyqb.service.user.IUserBtRegisterService
;
import
cn.quantgroup.xyqb.service.user.IUserBtRegisterService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cache.annotation.Cacheable
;
import
org.springframework.stereotype.Service
;
import
javax.persistence.criteria.Predicate
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
javax.persistence.criteria.Predicate
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
/**
* Created by Administrator on 2017/5/16.
* Created by Administrator on 2017/5/16.
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserCenterServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
import
cn.quantgroup.tech.db.DSType
;
import
cn.quantgroup.tech.db.TargetDataSource
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserAttached
;
import
cn.quantgroup.xyqb.entity.UserAttached
;
import
cn.quantgroup.xyqb.repository.IUserAttachedRepository
;
import
cn.quantgroup.xyqb.repository.IUserAttachedRepository
;
...
@@ -10,6 +8,11 @@ import cn.quantgroup.xyqb.service.user.ITenantService;
...
@@ -10,6 +8,11 @@ import cn.quantgroup.xyqb.service.user.ITenantService;
import
cn.quantgroup.xyqb.service.user.UserCenterService
;
import
cn.quantgroup.xyqb.service.user.UserCenterService
;
import
cn.quantgroup.xyqb.util.EmojiUtil
;
import
cn.quantgroup.xyqb.util.EmojiUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.util.stream.Collectors
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.hibernate.exception.ConstraintViolationException
;
import
org.hibernate.exception.ConstraintViolationException
;
...
@@ -17,12 +20,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -17,12 +20,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.util.stream.Collectors
;
/**
/**
* Created by 11 on 2017/3/22.
* Created by 11 on 2017/3/22.
*/
*/
...
@@ -40,7 +37,6 @@ public class UserCenterServiceImpl implements UserCenterService {
...
@@ -40,7 +37,6 @@ public class UserCenterServiceImpl implements UserCenterService {
private
ITenantService
tenantService
;
private
ITenantService
tenantService
;
@Override
@Override
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
//查询从库
// @Cacheable(value = "userAttachedCache", key = "'xyqbUserAttached' + #userId", unless = "#result == null", cacheManager = "cacheManager")
// @Cacheable(value = "userAttachedCache", key = "'xyqbUserAttached' + #userId", unless = "#result == null", cacheManager = "cacheManager")
public
UserAttached
searchUserAttachedByUserId
(
long
userId
)
{
public
UserAttached
searchUserAttachedByUserId
(
long
userId
)
{
return
userAttachedRepository
.
findByUserId
(
userId
);
return
userAttachedRepository
.
findByUserId
(
userId
);
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserDetailServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
import
cn.quantgroup.tech.db.DSType
;
import
cn.quantgroup.tech.db.TargetDataSource
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.event.UserDetailUpdateEvent
;
import
cn.quantgroup.xyqb.event.UserDetailUpdateEvent
;
import
cn.quantgroup.xyqb.model.Gender
;
import
cn.quantgroup.xyqb.model.Gender
;
...
@@ -16,6 +13,12 @@ import cn.quantgroup.xyqb.service.user.IUserDetailService;
...
@@ -16,6 +13,12 @@ import cn.quantgroup.xyqb.service.user.IUserDetailService;
import
cn.quantgroup.xyqb.service.user.vo.UserDetailVO
;
import
cn.quantgroup.xyqb.service.user.vo.UserDetailVO
;
import
cn.quantgroup.xyqb.util.AddressFilter
;
import
cn.quantgroup.xyqb.util.AddressFilter
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Optional
;
import
javax.annotation.Resource
;
import
javax.persistence.criteria.Predicate
;
import
lombok.extern.slf4j.Slf4j
;
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
;
...
@@ -26,15 +29,8 @@ import org.springframework.data.domain.PageRequest;
...
@@ -26,15 +29,8 @@ import org.springframework.data.domain.PageRequest;
import
org.springframework.data.domain.Sort
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.jdbc.core.RowMapper
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.persistence.criteria.Predicate
;
import
java.sql.ResultSet
;
import
java.sql.SQLException
;
import
java.util.*
;
/**
/**
* Created by 11 on 2016/12/29.
* Created by 11 on 2016/12/29.
*/
*/
...
@@ -63,7 +59,6 @@ public class UserDetailServiceImpl implements IUserDetailService {
...
@@ -63,7 +59,6 @@ public class UserDetailServiceImpl implements IUserDetailService {
}
}
@Override
@Override
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
//查询从库
public
UserDetail
findSlaveByUserId
(
Long
userId
)
{
public
UserDetail
findSlaveByUserId
(
Long
userId
)
{
UserDetail
userDetail
=
userDetailRepository
.
findByUserId
(
userId
);
UserDetail
userDetail
=
userDetailRepository
.
findByUserId
(
userId
);
if
(
null
==
userDetail
)
{
if
(
null
==
userDetail
)
{
...
@@ -91,7 +86,6 @@ public class UserDetailServiceImpl implements IUserDetailService {
...
@@ -91,7 +86,6 @@ public class UserDetailServiceImpl implements IUserDetailService {
}
}
@Override
@Override
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
//查询从库
public
UserDetail
findSlaveByPhoneNo
(
String
phoneNo
)
{
public
UserDetail
findSlaveByPhoneNo
(
String
phoneNo
)
{
return
userDetailRepository
.
findByPhoneNo
(
phoneNo
);
return
userDetailRepository
.
findByPhoneNo
(
phoneNo
);
}
}
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserExtInfoServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
import
cn.quantgroup.tech.db.DSType
;
import
cn.quantgroup.tech.db.TargetDataSource
;
import
cn.quantgroup.user.enums.OccupationEnum
;
import
cn.quantgroup.user.enums.OccupationEnum
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
cn.quantgroup.xyqb.repository.IUserExtInfoRepository
;
import
cn.quantgroup.xyqb.repository.IUserExtInfoRepository
;
import
cn.quantgroup.xyqb.service.user.IUserExtInfoService
;
import
cn.quantgroup.xyqb.service.user.IUserExtInfoService
;
import
java.sql.Timestamp
;
import
java.util.List
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.sql.Timestamp
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* Created by Miraculous on 2017/1/3.
* Created by Miraculous on 2017/1/3.
*/
*/
...
@@ -46,7 +36,6 @@ public class UserExtInfoServiceImpl implements IUserExtInfoService {
...
@@ -46,7 +36,6 @@ public class UserExtInfoServiceImpl implements IUserExtInfoService {
}
}
@Override
@Override
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
//查询从库
public
List
<
UserExtInfo
>
findByCreatedAtAfterAndCreatedAtBeforeAndOccupationEnum
(
Timestamp
start
,
Timestamp
end
)
{
public
List
<
UserExtInfo
>
findByCreatedAtAfterAndCreatedAtBeforeAndOccupationEnum
(
Timestamp
start
,
Timestamp
end
)
{
return
userExtInfoRepository
.
findByCreatedAtAfterAndCreatedAtBeforeAndOccupationEnum
(
start
,
end
,
OccupationEnum
.
STUDENT
);
return
userExtInfoRepository
.
findByCreatedAtAfterAndCreatedAtBeforeAndOccupationEnum
(
start
,
end
,
OccupationEnum
.
STUDENT
);
}
}
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserQueryLogServiceImpl.java
View file @
3c8b53b3
...
@@ -3,11 +3,10 @@ package cn.quantgroup.xyqb.service.user.impl;
...
@@ -3,11 +3,10 @@ package cn.quantgroup.xyqb.service.user.impl;
import
cn.quantgroup.xyqb.entity.UserQueryLog
;
import
cn.quantgroup.xyqb.entity.UserQueryLog
;
import
cn.quantgroup.xyqb.repository.IUserQueryLogRepository
;
import
cn.quantgroup.xyqb.repository.IUserQueryLogRepository
;
import
cn.quantgroup.xyqb.service.user.IUserQueryLogService
;
import
cn.quantgroup.xyqb.service.user.IUserQueryLogService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
/**
* Created by zenglibin on 2017/06/13.
* Created by zenglibin on 2017/06/13.
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
user
.
impl
;
import
cn.quantgroup.tech.db.DSType
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_ENABLE_ERROR
;
import
cn.quantgroup.tech.db.TargetDataSource
;
import
cn.quantgroup.user.enums.BizType
;
import
cn.quantgroup.user.enums.BizType
;
import
cn.quantgroup.user.enums.IncomeRangeEnum
;
import
cn.quantgroup.user.enums.IncomeRangeEnum
;
import
cn.quantgroup.user.enums.LoginType
;
import
cn.quantgroup.user.enums.LoginType
;
...
@@ -9,25 +9,63 @@ import cn.quantgroup.xyqb.Constants;
...
@@ -9,25 +9,63 @@ import cn.quantgroup.xyqb.Constants;
import
cn.quantgroup.xyqb.aspect.lock.RedisLock
;
import
cn.quantgroup.xyqb.aspect.lock.RedisLock
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.controller.internal.user.resp.UserFullResp
;
import
cn.quantgroup.xyqb.controller.internal.user.resp.UserFullResp
;
import
cn.quantgroup.xyqb.entity.*
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Merchant
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
cn.quantgroup.xyqb.entity.UserHashMapping
;
import
cn.quantgroup.xyqb.entity.UserHashPhoneNoIdNoMapping
;
import
cn.quantgroup.xyqb.event.PhoneNoUpdateEvent
;
import
cn.quantgroup.xyqb.event.PhoneNoUpdateEvent
;
import
cn.quantgroup.xyqb.exception.DataException
;
import
cn.quantgroup.xyqb.exception.DataException
;
import
cn.quantgroup.xyqb.exception.UserNotExistException
;
import
cn.quantgroup.xyqb.exception.UserNotExistException
;
import
cn.quantgroup.xyqb.exception.UserRegisterLoginException
;
import
cn.quantgroup.xyqb.exception.UserRegisterLoginException
;
import
cn.quantgroup.xyqb.model.*
;
import
cn.quantgroup.xyqb.model.AuthBean
;
import
cn.quantgroup.xyqb.repository.*
;
import
cn.quantgroup.xyqb.model.FindByMd5Enum
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.LoginProperties
;
import
cn.quantgroup.xyqb.model.UserInfo
;
import
cn.quantgroup.xyqb.repository.IProductLoginRepository
;
import
cn.quantgroup.xyqb.repository.IUserAttachedRepository
;
import
cn.quantgroup.xyqb.repository.IUserBtRegisterRepository
;
import
cn.quantgroup.xyqb.repository.IUserHashMappingRepository
;
import
cn.quantgroup.xyqb.repository.IUserHashPhoneNoIdNoMappingRepository
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
import
cn.quantgroup.xyqb.repository.IUuidPhoneMappingRepository
;
import
cn.quantgroup.xyqb.repository.IWeChatUserRepository
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestLogService
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestLogService
;
import
cn.quantgroup.xyqb.service.register.IUserDeregisterService
;
import
cn.quantgroup.xyqb.service.register.IUserDeregisterService
;
import
cn.quantgroup.xyqb.service.register.IUserRegisterService
;
import
cn.quantgroup.xyqb.service.register.IUserRegisterService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.user.*
;
import
cn.quantgroup.xyqb.service.user.IAddressService
;
import
cn.quantgroup.xyqb.service.user.IContactService
;
import
cn.quantgroup.xyqb.service.user.ILockIpv4Service
;
import
cn.quantgroup.xyqb.service.user.IOauthLoginInfoService
;
import
cn.quantgroup.xyqb.service.user.ITenantService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserExtInfoService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.util.*
;
import
cn.quantgroup.xyqb.util.BctyptPasswordUtil
;
import
cn.quantgroup.xyqb.util.HashUtil
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.MqUtils
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
com.sensorsdata.analytics.javasdk.ISensorsAnalytics
;
import
com.sensorsdata.analytics.javasdk.ISensorsAnalytics
;
import
com.sensorsdata.analytics.javasdk.bean.EventRecord
;
import
com.sensorsdata.analytics.javasdk.bean.EventRecord
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Set
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
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
;
...
@@ -40,14 +78,6 @@ import org.springframework.stereotype.Service;
...
@@ -40,14 +78,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.*
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_ENABLE_ERROR
;
/**
/**
* Created by Miraculous on 15/7/5.
* Created by Miraculous on 15/7/5.
*/
*/
...
@@ -131,14 +161,12 @@ public class UserServiceImpl implements IUserService, IBaseController {
...
@@ -131,14 +161,12 @@ public class UserServiceImpl implements IUserService, IBaseController {
}
}
@Override
@Override
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
//查询从库
// @Cacheable(value = "usercache", key = "'xyqbuser' + #phone", unless = "#result == null", cacheManager = "cacheManager")
// @Cacheable(value = "usercache", key = "'xyqbuser' + #phone", unless = "#result == null", cacheManager = "cacheManager")
public
User
findSlaveByPhoneInDb
(
String
phone
)
{
public
User
findSlaveByPhoneInDb
(
String
phone
)
{
return
userRepository
.
findByPhoneNo
(
phone
);
return
userRepository
.
findByPhoneNo
(
phone
);
}
}
@Override
@Override
@TargetDataSource
(
type
=
DSType
.
SLAVE
)
//查询从库
public
Map
<
Long
,
String
>
findPhoneByIdsInDb
(
List
<
Long
>
userIds
,
Integer
tenantId
)
{
public
Map
<
Long
,
String
>
findPhoneByIdsInDb
(
List
<
Long
>
userIds
,
Integer
tenantId
)
{
if
(
CollectionUtils
.
isEmpty
(
userIds
))
{
if
(
CollectionUtils
.
isEmpty
(
userIds
))
{
return
Maps
.
newHashMap
();
return
Maps
.
newHashMap
();
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserSpouseServiceImpl.java
View file @
3c8b53b3
...
@@ -5,7 +5,6 @@ import cn.quantgroup.xyqb.repository.IUserSpouseRepository;
...
@@ -5,7 +5,6 @@ import cn.quantgroup.xyqb.repository.IUserSpouseRepository;
import
cn.quantgroup.xyqb.service.user.IUserSpouseService
;
import
cn.quantgroup.xyqb.service.user.IUserSpouseService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
@Service
@Service
...
...
src/main/java/cn/quantgroup/xyqb/service/user/vo/UserDetailVO.java
View file @
3c8b53b3
...
@@ -4,11 +4,10 @@ import cn.quantgroup.motan.retbean.XUserDetail;
...
@@ -4,11 +4,10 @@ import cn.quantgroup.motan.retbean.XUserDetail;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.model.Gender
;
import
cn.quantgroup.xyqb.model.Gender
;
import
cn.quantgroup.xyqb.model.IdType
;
import
cn.quantgroup.xyqb.model.IdType
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.Optional
;
import
java.util.Optional
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@Data
@NoArgsConstructor
@NoArgsConstructor
...
...
src/main/java/cn/quantgroup/xyqb/service/wechat/IWechatFollowService.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
wechat
;
package
cn
.
quantgroup
.
xyqb
.
service
.
wechat
;
import
cn.quantgroup.xyqb.entity.WechatUserInfo
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.webchat.AccessTokenResponse
;
import
cn.quantgroup.xyqb.model.webchat.AccessTokenResponse
;
import
java.util.List
;
import
java.util.List
;
public
interface
IWechatFollowService
{
public
interface
IWechatFollowService
{
...
...
src/main/java/cn/quantgroup/xyqb/service/wechat/IWechatService.java
View file @
3c8b53b3
...
@@ -2,7 +2,6 @@ package cn.quantgroup.xyqb.service.wechat;
...
@@ -2,7 +2,6 @@ package cn.quantgroup.xyqb.service.wechat;
import
cn.quantgroup.xyqb.entity.WechatUserInfo
;
import
cn.quantgroup.xyqb.entity.WechatUserInfo
;
import
cn.quantgroup.xyqb.model.webchat.AccessTokenResponse
;
import
cn.quantgroup.xyqb.model.webchat.AccessTokenResponse
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
...
src/main/java/cn/quantgroup/xyqb/service/wechat/impl/WechatFollowServiceImpl.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
service
.
wechat
.
impl
;
package
cn
.
quantgroup
.
xyqb
.
service
.
wechat
.
impl
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.entity.WechatUserInfo
;
import
cn.quantgroup.xyqb.event.WechatBindEvent
;
import
cn.quantgroup.xyqb.exception.WechatRelateUserException
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.webchat.*
;
import
cn.quantgroup.xyqb.model.webchat.AccessTokenResponse
;
import
cn.quantgroup.xyqb.model.webchat.CustomerListResponse
;
import
cn.quantgroup.xyqb.model.webchat.DepartmentInfoResponse
;
import
cn.quantgroup.xyqb.model.webchat.DepartmentListResponse
;
import
cn.quantgroup.xyqb.model.webchat.WechatUserListResponse
;
import
cn.quantgroup.xyqb.repository.IWeChatInfoRelationRepository
;
import
cn.quantgroup.xyqb.repository.IWeChatInfoRelationRepository
;
import
cn.quantgroup.xyqb.repository.IWeChatUserRepository
;
import
cn.quantgroup.xyqb.service.http.IHttpService
;
import
cn.quantgroup.xyqb.service.http.IHttpService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatFollowService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatFollowService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.util.GcodeUtils
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.google.common.collect.ImmutableMap
;
import
java.text.SimpleDateFormat
;
import
com.google.gson.Gson
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -27,16 +30,8 @@ import org.springframework.data.redis.core.RedisTemplate;
...
@@ -27,16 +30,8 @@ import org.springframework.data.redis.core.RedisTemplate;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.Resource
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
/**
/**
* Created by Miraculous on 2017/1/19.
* Created by Miraculous on 2017/1/19.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/service/wechat/impl/WechatServiceImpl.java
View file @
3c8b53b3
...
@@ -12,6 +12,12 @@ import cn.quantgroup.xyqb.service.wechat.IWechatService;
...
@@ -12,6 +12,12 @@ import cn.quantgroup.xyqb.service.wechat.IWechatService;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.util.concurrent.TimeUnit
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -22,13 +28,6 @@ import org.springframework.data.redis.core.RedisTemplate;
...
@@ -22,13 +28,6 @@ import org.springframework.data.redis.core.RedisTemplate;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.util.concurrent.TimeUnit
;
/**
/**
* Created by Miraculous on 2017/1/19.
* Created by Miraculous on 2017/1/19.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/session/XyqbSessionContextHolder.java
View file @
3c8b53b3
...
@@ -4,15 +4,14 @@ import cn.quantgroup.xyqb.Constants;
...
@@ -4,15 +4,14 @@ import cn.quantgroup.xyqb.Constants;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
cn.quantgroup.xyqb.model.session.SessionValue
;
import
cn.quantgroup.xyqb.model.session.SessionValue
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
java.util.Objects
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Objects
;
/**
/**
* Created by Miraculous on 2016/12/29.
* Created by Miraculous on 2016/12/29.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/thirdparty/jcaptcha/AbstractManageableCaptchaService.java
View file @
3c8b53b3
...
@@ -8,12 +8,11 @@ import com.octo.captcha.service.AbstractManageableCaptchaServiceMBean;
...
@@ -8,12 +8,11 @@ import com.octo.captcha.service.AbstractManageableCaptchaServiceMBean;
import
com.octo.captcha.service.CaptchaService
;
import
com.octo.captcha.service.CaptchaService
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
com.octo.captcha.service.captchastore.CaptchaStore
;
import
com.octo.captcha.service.captchastore.CaptchaStore
;
import
org.apache.commons.collections.FastHashMap
;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.HashSet
;
import
java.util.HashSet
;
import
java.util.Iterator
;
import
java.util.Iterator
;
import
java.util.Locale
;
import
java.util.Locale
;
import
org.apache.commons.collections.FastHashMap
;
/**
/**
* 类名称:AbstractManageableCaptchaService
* 类名称:AbstractManageableCaptchaService
...
...
src/main/java/cn/quantgroup/xyqb/thirdparty/jcaptcha/AbstractManageableImageCaptchaService.java
View file @
3c8b53b3
...
@@ -5,7 +5,6 @@ import com.octo.captcha.engine.CaptchaEngine;
...
@@ -5,7 +5,6 @@ import com.octo.captcha.engine.CaptchaEngine;
import
com.octo.captcha.service.CaptchaServiceException
;
import
com.octo.captcha.service.CaptchaServiceException
;
import
com.octo.captcha.service.captchastore.CaptchaStore
;
import
com.octo.captcha.service.captchastore.CaptchaStore
;
import
com.octo.captcha.service.image.ImageCaptchaService
;
import
com.octo.captcha.service.image.ImageCaptchaService
;
import
java.awt.image.BufferedImage
;
import
java.awt.image.BufferedImage
;
import
java.util.Locale
;
import
java.util.Locale
;
...
...
src/main/java/cn/quantgroup/xyqb/thirdparty/jcaptcha/CustomGimpyFactory.java
View file @
3c8b53b3
...
@@ -6,7 +6,6 @@ import com.octo.captcha.component.image.wordtoimage.WordToImage;
...
@@ -6,7 +6,6 @@ import com.octo.captcha.component.image.wordtoimage.WordToImage;
import
com.octo.captcha.component.word.wordgenerator.WordGenerator
;
import
com.octo.captcha.component.word.wordgenerator.WordGenerator
;
import
com.octo.captcha.image.ImageCaptcha
;
import
com.octo.captcha.image.ImageCaptcha
;
import
com.octo.captcha.image.gimpy.GimpyFactory
;
import
com.octo.captcha.image.gimpy.GimpyFactory
;
import
java.awt.image.BufferedImage
;
import
java.awt.image.BufferedImage
;
import
java.util.Locale
;
import
java.util.Locale
;
...
...
src/main/java/cn/quantgroup/xyqb/thirdparty/jcaptcha/SimpleCaptcha.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
thirdparty
.
jcaptcha
;
package
cn
.
quantgroup
.
xyqb
.
thirdparty
.
jcaptcha
;
import
com.octo.captcha.image.ImageCaptcha
;
import
com.octo.captcha.image.ImageCaptcha
;
import
org.apache.commons.lang3.StringUtils
;
import
java.awt.image.BufferedImage
;
import
java.awt.image.BufferedImage
;
import
org.apache.commons.lang3.StringUtils
;
/**
/**
* 类名称:SimpleCaptcha
* 类名称:SimpleCaptcha
...
...
src/main/java/cn/quantgroup/xyqb/urora/UroraAuthenticationManager.java
View file @
3c8b53b3
...
@@ -2,10 +2,16 @@ package cn.quantgroup.xyqb.urora;
...
@@ -2,10 +2,16 @@ package cn.quantgroup.xyqb.urora;
import
cn.quantgroup.xyqb.security.CustomerAuthenticationManager
;
import
cn.quantgroup.xyqb.security.CustomerAuthenticationManager
;
import
cn.quantgroup.xyqb.security.RSADecrypt
;
import
cn.quantgroup.xyqb.security.RSADecrypt
;
import
java.util.Arrays
;
import
java.util.List
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.codec.binary.Base64
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.http.*
;
import
org.springframework.http.HttpEntity
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.converter.HttpMessageConverter
;
import
org.springframework.http.converter.HttpMessageConverter
;
import
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
;
import
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
;
import
org.springframework.security.authentication.BadCredentialsException
;
import
org.springframework.security.authentication.BadCredentialsException
;
...
@@ -15,9 +21,6 @@ import org.springframework.util.ObjectUtils;
...
@@ -15,9 +21,6 @@ import org.springframework.util.ObjectUtils;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
java.util.Arrays
;
import
java.util.List
;
/**
/**
* Created by Administrator on 2021/7/1 0001.
* Created by Administrator on 2021/7/1 0001.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/urora/UroraAuthenticationToken.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
urora
;
package
cn
.
quantgroup
.
xyqb
.
urora
;
import
org.springframework.security.authentication.AbstractAuthenticationToken
;
import
java.util.Collection
;
import
java.util.Collection
;
import
org.springframework.security.authentication.AbstractAuthenticationToken
;
/**
/**
* Created by Administrator on 2021/7/1 0001.
* Created by Administrator on 2021/7/1 0001.
...
...
src/main/java/cn/quantgroup/xyqb/util/AddressFilter.java
View file @
3c8b53b3
...
@@ -2,16 +2,15 @@ package cn.quantgroup.xyqb.util;
...
@@ -2,16 +2,15 @@ package cn.quantgroup.xyqb.util;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.commons.lang3.StringUtils
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.Set
;
import
java.util.regex.Matcher
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.commons.lang3.StringUtils
;
/**
/**
* @author :dongjianhua
* @author :dongjianhua
...
...
src/main/java/cn/quantgroup/xyqb/util/AesUtil.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
util
;
package
cn
.
quantgroup
.
xyqb
.
util
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
javax.crypto.Cipher
;
import
javax.crypto.spec.SecretKeySpec
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
javax.crypto.Cipher
;
import
javax.crypto.spec.SecretKeySpec
;
/**
/**
* AES编码器工具
* AES编码器工具
* 使用AES加密解密 AES-128-ECB加密
* 使用AES加密解密 AES-128-ECB加密
...
...
src/main/java/cn/quantgroup/xyqb/util/ApplicationContextHolder.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
util
;
package
cn
.
quantgroup
.
xyqb
.
util
;
import
java.util.Map
;
import
org.springframework.beans.BeansException
;
import
org.springframework.beans.BeansException
;
import
org.springframework.beans.factory.NoSuchBeanDefinitionException
;
import
org.springframework.beans.factory.NoSuchBeanDefinitionException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -7,8 +8,6 @@ import org.springframework.context.ApplicationContext;
...
@@ -7,8 +8,6 @@ import org.springframework.context.ApplicationContext;
import
org.springframework.context.ApplicationContextAware
;
import
org.springframework.context.ApplicationContextAware
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.Map
;
/**
/**
* Created by Miraculous on 15/7/12.
* Created by Miraculous on 15/7/12.
*/
*/
...
...
src/main/java/cn/quantgroup/xyqb/util/AtomicSequencer.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
util
;
package
cn
.
quantgroup
.
xyqb
.
util
;
import
org.springframework.stereotype.Component
;
import
java.util.concurrent.atomic.AtomicLong
;
import
java.util.concurrent.atomic.AtomicLong
;
import
org.springframework.stereotype.Component
;
/**
/**
* @author hechao
* @author hechao
...
...
src/main/java/cn/quantgroup/xyqb/util/BctyptPasswordUtil.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
util
;
package
cn
.
quantgroup
.
xyqb
.
util
;
import
org.springframework.security.crypto.bcrypt.BCrypt
;
import
java.util.Objects
;
import
java.util.Objects
;
import
org.springframework.security.crypto.bcrypt.BCrypt
;
/**
/**
* Created by Miraculous on 15/7/5.
* Created by Miraculous on 15/7/5.
...
...
src/main/java/cn/quantgroup/xyqb/util/DateUtils.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
util
;
package
cn
.
quantgroup
.
xyqb
.
util
;
import
java.util.Calendar
;
import
java.util.Date
;
import
org.joda.time.DateTime
;
import
org.joda.time.DateTime
;
import
org.joda.time.format.DateTimeFormat
;
import
org.joda.time.format.DateTimeFormat
;
import
org.joda.time.format.DateTimeFormatter
;
import
org.joda.time.format.DateTimeFormatter
;
import
java.util.Calendar
;
import
java.util.Date
;
/**
/**
* joda-time
* joda-time
* <p>
* <p>
...
...
src/main/java/cn/quantgroup/xyqb/util/IpUtil.java
View file @
3c8b53b3
...
@@ -2,13 +2,12 @@ package cn.quantgroup.xyqb.util;
...
@@ -2,13 +2,12 @@ package cn.quantgroup.xyqb.util;
import
cn.quantgroup.tech.util.TechEnvironment
;
import
cn.quantgroup.tech.util.TechEnvironment
;
import
com.google.common.collect.Sets
;
import
com.google.common.collect.Sets
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Objects
;
import
java.util.Objects
;
import
java.util.Set
;
import
java.util.Set
;
import
javax.servlet.http.HttpServletRequest
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
/**
/**
* IP地址工具类
* IP地址工具类
...
...
src/main/java/cn/quantgroup/xyqb/util/JsonUtil.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
util
;
package
cn
.
quantgroup
.
xyqb
.
util
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.Optional
;
import
java.util.Optional
;
import
lombok.extern.slf4j.Slf4j
;
/**
/**
* Created by liqing on 2017/12/4 0004.
* Created by liqing on 2017/12/4 0004.
...
...
src/main/java/cn/quantgroup/xyqb/util/MqUtils.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
util
;
package
cn
.
quantgroup
.
xyqb
.
util
;
import
org.apache.commons.lang.StringUtils
;
import
com.alibaba.fastjson.JSONObject
;
import
lombok.extern.slf4j.Slf4j
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.model.UserRegisterMqMessage
;
import
cn.quantgroup.xyqb.model.UserRegisterMqMessage
;
import
cn.quantgroup.xyqb.model.UserRet
;
import
cn.quantgroup.xyqb.model.UserRet
;
import
cn.quantgroup.xyqb.model.UserStatistics
;
import
cn.quantgroup.xyqb.model.UserStatistics
;
import
cn.quantgroup.xyqb.service.mq.IRegisterMqService
;
import
cn.quantgroup.xyqb.service.mq.IRegisterMqService
;
import
cn.quantgroup.xyqb.service.mq.IVestService
;
import
cn.quantgroup.xyqb.service.mq.IVestService
;
import
com.alibaba.fastjson.JSONObject
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
/**
/**
* Created by xuran on 2017/6/23.
* Created by xuran on 2017/6/23.
...
...
src/main/java/cn/quantgroup/xyqb/util/PasswordUtil.java
View file @
3c8b53b3
...
@@ -3,12 +3,11 @@ package cn.quantgroup.xyqb.util;
...
@@ -3,12 +3,11 @@ package cn.quantgroup.xyqb.util;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.google.common.base.Preconditions
;
import
com.google.common.base.Preconditions
;
import
org.apache.commons.lang.StringUtils
;
import
java.security.MessageDigest
;
import
java.security.MessageDigest
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Objects
;
import
java.util.concurrent.ThreadLocalRandom
;
import
java.util.concurrent.ThreadLocalRandom
;
import
org.apache.commons.lang.StringUtils
;
/**
/**
* Created by Miraculous on 15/7/5.
* Created by Miraculous on 15/7/5.
...
...
src/main/java/cn/quantgroup/xyqb/util/RedisLock.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
util
;
package
cn
.
quantgroup
.
xyqb
.
util
;
import
java.util.Random
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.text.RandomStringGenerator
;
import
org.apache.commons.text.RandomStringGenerator
;
import
org.springframework.dao.InvalidDataAccessResourceUsageException
;
import
org.springframework.dao.InvalidDataAccessResourceUsageException
;
...
@@ -7,8 +8,6 @@ import org.springframework.data.redis.core.RedisCallback;
...
@@ -7,8 +8,6 @@ import org.springframework.data.redis.core.RedisCallback;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.serializer.StringRedisSerializer
;
import
org.springframework.data.redis.serializer.StringRedisSerializer
;
import
java.util.Random
;
/**
/**
* RedisLock
* RedisLock
* Created by Feng on 2017/6/5.
* Created by Feng on 2017/6/5.
...
...
src/main/java/cn/quantgroup/xyqb/util/ServerUtils.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
util
;
package
cn
.
quantgroup
.
xyqb
.
util
;
import
org.springframework.core.env.Environment
;
import
javax.management.MBeanServer
;
import
javax.management.MalformedObjectNameException
;
import
javax.management.ObjectName
;
import
javax.management.Query
;
import
java.lang.management.ManagementFactory
;
import
java.lang.management.ManagementFactory
;
import
java.net.InetAddress
;
import
java.net.InetAddress
;
import
java.net.UnknownHostException
;
import
java.net.UnknownHostException
;
import
java.util.Set
;
import
java.util.Set
;
import
javax.management.MBeanServer
;
import
javax.management.MalformedObjectNameException
;
import
javax.management.ObjectName
;
import
javax.management.Query
;
import
org.springframework.core.env.Environment
;
/**
/**
* Created by hechao on 2020/1/21.
* Created by hechao on 2020/1/21.
...
...
src/main/java/cn/quantgroup/xyqb/util/ValidationUtil.java
View file @
3c8b53b3
...
@@ -2,13 +2,12 @@ package cn.quantgroup.xyqb.util;
...
@@ -2,13 +2,12 @@ package cn.quantgroup.xyqb.util;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
cn.quantgroup.xyqb.util.encrypt.Md5Util
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
java.util.Calendar
;
import
java.util.Calendar
;
import
java.util.Objects
;
import
java.util.Objects
;
import
java.util.regex.Matcher
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
/**
/**
* Created by Miraculous on 15/7/6.
* Created by Miraculous on 15/7/6.
...
...
src/main/java/cn/quantgroup/xyqb/util/encrypt/Md5Util.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
util
.
encrypt
;
package
cn
.
quantgroup
.
xyqb
.
util
.
encrypt
;
import
lombok.extern.slf4j.Slf4j
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
java.security.MessageDigest
;
import
java.security.MessageDigest
;
import
java.security.NoSuchAlgorithmException
;
import
java.security.NoSuchAlgorithmException
;
import
lombok.extern.slf4j.Slf4j
;
/**
/**
* Created by tums on 2015/11/30.
* Created by tums on 2015/11/30.
...
...
src/main/java/cn/quantgroup/xyqb/util/encrypt/Rsa.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
util
.
encrypt
;
package
cn
.
quantgroup
.
xyqb
.
util
.
encrypt
;
import
lombok.extern.slf4j.Slf4j
;
import
javax.crypto.Cipher
;
import
java.io.ByteArrayOutputStream
;
import
java.io.ByteArrayOutputStream
;
import
java.math.BigInteger
;
import
java.math.BigInteger
;
import
java.security.*
;
import
java.security.Key
;
import
java.security.KeyFactory
;
import
java.security.KeyPair
;
import
java.security.KeyPairGenerator
;
import
java.security.PrivateKey
;
import
java.security.PublicKey
;
import
java.security.SecureRandom
;
import
java.security.Signature
;
import
java.security.interfaces.RSAPublicKey
;
import
java.security.interfaces.RSAPublicKey
;
import
java.security.spec.PKCS8EncodedKeySpec
;
import
java.security.spec.PKCS8EncodedKeySpec
;
import
java.security.spec.X509EncodedKeySpec
;
import
java.security.spec.X509EncodedKeySpec
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
javax.crypto.Cipher
;
import
lombok.extern.slf4j.Slf4j
;
@Slf4j
@Slf4j
public
class
Rsa
{
public
class
Rsa
{
...
...
src/main/java/cn/quantgroup/xyqb/validator/ChineseName.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
validator
;
package
cn
.
quantgroup
.
xyqb
.
validator
;
import
javax.validation.Constraint
;
import
javax.validation.Payload
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
import
java.lang.annotation.Target
;
import
javax.validation.Constraint
;
import
javax.validation.Payload
;
@Target
({
ElementType
.
FIELD
,
ElementType
.
PARAMETER
})
@Target
({
ElementType
.
FIELD
,
ElementType
.
PARAMETER
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
...
...
src/main/java/cn/quantgroup/xyqb/validator/ChineseNameValidator.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
validator
;
package
cn
.
quantgroup
.
xyqb
.
validator
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
javax.validation.ConstraintValidator
;
import
javax.validation.ConstraintValidator
;
import
javax.validation.ConstraintValidatorContext
;
import
javax.validation.ConstraintValidatorContext
;
...
...
src/main/java/cn/quantgroup/xyqb/validator/IdCard.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
validator
;
package
cn
.
quantgroup
.
xyqb
.
validator
;
import
javax.validation.Constraint
;
import
javax.validation.Payload
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
import
java.lang.annotation.Target
;
import
javax.validation.Constraint
;
import
javax.validation.Payload
;
/**
/**
* @author 徐小光
* @author 徐小光
...
...
src/main/java/cn/quantgroup/xyqb/validator/IdCardValidator.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
validator
;
package
cn
.
quantgroup
.
xyqb
.
validator
;
import
cn.quantgroup.xyqb.util.IdcardValidator
;
import
cn.quantgroup.xyqb.util.IdcardValidator
;
import
org.apache.commons.lang3.StringUtils
;
import
javax.validation.ConstraintValidator
;
import
javax.validation.ConstraintValidator
;
import
javax.validation.ConstraintValidatorContext
;
import
javax.validation.ConstraintValidatorContext
;
import
org.apache.commons.lang3.StringUtils
;
/**
/**
* 身份证验证器, <IdCard,String> String 对应的是可以对哪些类型校验
* 身份证验证器, <IdCard,String> String 对应的是可以对哪些类型校验
...
...
src/main/java/cn/quantgroup/xyqb/xxlJob/DeregisterTimeJobHandler.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
xxlJob
;
package
cn
.
quantgroup
.
xyqb
.
xxlJob
;
import
cn.quantgroup.xyqb.service.register.IUserDeregisterService
;
import
cn.quantgroup.xyqb.service.register.IUserDeregisterService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatFollowService
;
import
com.xxl.job.core.biz.model.ReturnT
;
import
com.xxl.job.core.biz.model.ReturnT
;
import
com.xxl.job.core.handler.IJobHandler
;
import
com.xxl.job.core.handler.IJobHandler
;
import
com.xxl.job.core.handler.annotation.JobHandler
;
import
com.xxl.job.core.handler.annotation.JobHandler
;
...
...
src/main/java/cn/quantgroup/xyqb/xxlJob/GeetestLogTimeJobHandler.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
xxlJob
;
package
cn
.
quantgroup
.
xyqb
.
xxlJob
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestLogService
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestLogService
;
import
cn.quantgroup.xyqb.service.register.IUserDeregisterService
;
import
com.xxl.job.core.biz.model.ReturnT
;
import
com.xxl.job.core.biz.model.ReturnT
;
import
com.xxl.job.core.handler.IJobHandler
;
import
com.xxl.job.core.handler.IJobHandler
;
import
com.xxl.job.core.handler.annotation.JobHandler
;
import
com.xxl.job.core.handler.annotation.JobHandler
;
...
...
src/main/java/cn/quantgroup/xyqb/xxlJob/XxlJobConfig.java
View file @
3c8b53b3
package
cn
.
quantgroup
.
xyqb
.
xxlJob
;
package
cn
.
quantgroup
.
xyqb
.
xxlJob
;
import
com.xxl.job.core.executor.impl.XxlJobSpringExecutor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
com.xxl.job.core.executor.impl.XxlJobSpringExecutor
;
@Configuration
@Configuration
@Slf4j
@Slf4j
...
...
src/main/java/springfox/documentation/schema/Enums.java
deleted
100644 → 0
View file @
ae057614
/*
*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*/
package
springfox
.
documentation
.
schema
;
import
com.fasterxml.jackson.annotation.JsonValue
;
import
com.google.common.base.Function
;
import
com.google.common.base.Optional
;
import
org.springframework.core.annotation.AnnotationUtils
;
import
springfox.documentation.service.AllowableListValues
;
import
springfox.documentation.service.AllowableValues
;
import
java.lang.reflect.Method
;
import
java.util.ArrayList
;
import
java.util.LinkedHashSet
;
import
java.util.List
;
import
java.util.Set
;
import
static
com
.
google
.
common
.
base
.
Strings
.
isNullOrEmpty
;
import
static
com
.
google
.
common
.
collect
.
Lists
.
transform
;
import
static
java
.
util
.
Arrays
.
asList
;
/**
* 增加对enum name 的支持
*/
public
class
Enums
{
private
Enums
()
{
throw
new
UnsupportedOperationException
();
}
public
static
AllowableValues
allowableValues
(
Class
<?>
type
)
{
if
(
type
.
isEnum
())
{
List
<
String
>
enumValues
=
getEnumValues
(
type
);
return
new
AllowableListValues
(
enumValues
,
"LIST"
);
}
return
null
;
}
static
List
<
String
>
getEnumValues
(
final
Class
<?>
subject
)
{
return
transformUnique
(
subject
.
getEnumConstants
(),
new
Function
<
Object
,
String
>()
{
@Override
public
String
apply
(
Object
input
)
{
Optional
<
String
>
jsonValue
=
findJsonValueAnnotatedMethod
(
input
)
.
transform
(
evaluateJsonValue
(
input
));
if
(
jsonValue
.
isPresent
()
&&
!
isNullOrEmpty
(
jsonValue
.
get
()))
{
return
jsonValue
.
get
();
}
return
((
Enum
)
input
).
name
();
}
});
}
@SuppressWarnings
(
"PMD"
)
private
static
Function
<
Method
,
String
>
evaluateJsonValue
(
final
Object
enumConstant
)
{
return
new
Function
<
Method
,
String
>()
{
@Override
public
String
apply
(
Method
input
)
{
try
{
return
input
.
invoke
(
enumConstant
).
toString
();
}
catch
(
Exception
ignored
)
{
}
return
""
;
}
};
}
private
static
<
E
>
List
<
String
>
transformUnique
(
E
[]
values
,
Function
<
E
,
String
>
mapper
)
{
List
<
String
>
nonUniqueValues
=
transform
(
asList
(
values
),
mapper
);
Set
<
String
>
uniqueValues
=
new
LinkedHashSet
<
String
>(
nonUniqueValues
);
return
new
ArrayList
<
String
>(
uniqueValues
);
}
private
static
Optional
<
Method
>
findJsonValueAnnotatedMethod
(
Object
enumConstant
)
{
for
(
Method
each
:
enumConstant
.
getClass
().
getMethods
())
{
JsonValue
jsonValue
=
AnnotationUtils
.
findAnnotation
(
each
,
JsonValue
.
class
);
if
(
jsonValue
!=
null
&&
jsonValue
.
value
())
{
return
Optional
.
of
(
each
);
}
}
return
Optional
.
absent
();
}
public
static
AllowableValues
emptyListValuesToNull
(
AllowableListValues
values
)
{
if
(!
values
.
getValues
().
isEmpty
())
{
return
values
;
}
return
null
;
}
}
src/main/resources/META-INF/persistence.xml
0 → 100644
View file @
3c8b53b3
<provider>
org.hibernate.jpa.HibernatePersistenceProvider
</provider>
\ No newline at end of file
src/test/java/DemoTest.java
View file @
3c8b53b3
import
demo.*
;
import
demo.DynamicTest
;
import
demo.MockMvcTest
;
import
demo.MvcTest
;
import
demo.ParametersJunit4Test
;
import
demo.ParametersJunit5Test
;
import
demo.RepsitoryJpaTest
;
import
demo.RepsitoryTest
;
import
demo.ServiceTest
;
import
demo.WebTest
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.Suite
;
import
org.junit.runners.Suite
;
...
...
src/test/java/TestApp.java
View file @
3c8b53b3
import
cn.quantgroup.xyqb.security.RSADecrypt
;
import
cn.quantgroup.xyqb.security.RSADecrypt
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
org.springframework.util.Base64Utils
;
import
java.io.UnsupportedEncodingException
;
import
java.io.UnsupportedEncodingException
;
import
java.net.URLDecoder
;
import
java.net.URLDecoder
;
import
org.springframework.util.Base64Utils
;
/**
/**
* Created by Administrator on 2021/6/25 0025.
* Created by Administrator on 2021/6/25 0025.
...
...
src/test/java/common/Jdk8Test.java
View file @
3c8b53b3
package
common
;
package
common
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.util.AesUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.UUID
;
import
java.util.UUID
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.util.AesUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.RandomStringUtils
;
import
org.apache.commons.lang.RandomStringUtils
;
import
org.junit.Assert
;
import
org.junit.Assert
;
...
@@ -14,8 +14,6 @@ import org.junit.Test;
...
@@ -14,8 +14,6 @@ import org.junit.Test;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.JUnit4
;
import
org.junit.runners.JUnit4
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
@Slf4j
@Slf4j
@RunWith
(
JUnit4
.
class
)
@RunWith
(
JUnit4
.
class
)
public
class
Jdk8Test
{
public
class
Jdk8Test
{
...
...
src/test/java/common/JsonTest.java
View file @
3c8b53b3
package
common
;
package
common
;
import
java.sql.Timestamp
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.model.IdType
;
import
org.apache.commons.codec.binary.Base64
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
...
@@ -11,14 +9,13 @@ import com.fasterxml.jackson.databind.DeserializationFeature;
...
@@ -11,14 +9,13 @@ import com.fasterxml.jackson.databind.DeserializationFeature;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.SerializationFeature
;
import
com.fasterxml.jackson.databind.SerializationFeature
;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
import
java.sql.Timestamp
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.JUnit4
;
import
org.junit.runners.JUnit4
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.model.IdType
;
@Slf4j
@Slf4j
@RunWith
(
JUnit4
.
class
)
@RunWith
(
JUnit4
.
class
)
public
class
JsonTest
{
public
class
JsonTest
{
...
...
src/test/java/common/ValidationUtilTest.java
View file @
3c8b53b3
package
common
;
package
common
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.JUnit4
;
import
org.junit.runners.JUnit4
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
@Slf4j
@Slf4j
@RunWith
(
JUnit4
.
class
)
@RunWith
(
JUnit4
.
class
)
public
class
ValidationUtilTest
{
public
class
ValidationUtilTest
{
...
...
src/test/java/demo/DynamicTest.java
View file @
3c8b53b3
package
demo
;
package
demo
;
import
org.junit.jupiter.api.*
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
assertEquals
;
import
org.junit.jupiter.api.function.ThrowingConsumer
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
assertFalse
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
assertNotNull
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
assertTrue
;
import
static
org
.
junit
.
jupiter
.
api
.
DynamicContainer
.
dynamicContainer
;
import
static
org
.
junit
.
jupiter
.
api
.
DynamicTest
.
dynamicTest
;
import
java.security.SecureRandom
;
import
java.security.SecureRandom
;
import
java.util.*
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.NoSuchElementException
;
import
java.util.function.Function
;
import
java.util.function.Function
;
import
java.util.stream.IntStream
;
import
java.util.stream.IntStream
;
import
java.util.stream.Stream
;
import
java.util.stream.Stream
;
import
org.junit.jupiter.api.Disabled
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.*;
import
org.junit.jupiter.api.DynamicNode
;
import
static
org
.
junit
.
jupiter
.
api
.
DynamicContainer
.
dynamicContainer
;
import
org.junit.jupiter.api.Tag
;
import
static
org
.
junit
.
jupiter
.
api
.
DynamicTest
.
dynamicTest
;
import
org.junit.jupiter.api.TestFactory
;
import
org.junit.jupiter.api.function.ThrowingConsumer
;
/**
/**
...
...
src/test/java/demo/MockMvcTest.java
View file @
3c8b53b3
package
demo
;
package
demo
;
import
static
org
.
mockito
.
BDDMockito
.
given
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
request
.
MockMvcRequestBuilders
.
get
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
content
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.config.data.JpaConfig
;
import
cn.quantgroup.xyqb.config.data.JpaConfig
;
import
cn.quantgroup.xyqb.config.data.RedisConfig
;
import
cn.quantgroup.xyqb.config.data.RedisConfig
;
...
@@ -7,6 +12,7 @@ import cn.quantgroup.xyqb.controller.external.UserController;
...
@@ -7,6 +12,7 @@ import cn.quantgroup.xyqb.controller.external.UserController;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
javax.annotation.Resource
;
import
org.json.JSONObject
;
import
org.json.JSONObject
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
...
@@ -20,13 +26,6 @@ import org.springframework.test.web.servlet.MockMvc;
...
@@ -20,13 +26,6 @@ import org.springframework.test.web.servlet.MockMvc;
import
org.springframework.test.web.servlet.MvcResult
;
import
org.springframework.test.web.servlet.MvcResult
;
import
org.springframework.test.web.servlet.request.MockMvcRequestBuilders
;
import
org.springframework.test.web.servlet.request.MockMvcRequestBuilders
;
import
javax.annotation.Resource
;
import
static
org
.
mockito
.
BDDMockito
.
given
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
request
.
MockMvcRequestBuilders
.
get
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
content
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
@RunWith
(
SpringRunner
.
class
)
@RunWith
(
SpringRunner
.
class
)
@WebMvcTest
({
UserController
.
class
})
@WebMvcTest
({
UserController
.
class
})
...
...
src/test/java/demo/MvcTest.java
View file @
3c8b53b3
package
demo
;
package
demo
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
import
cn.quantgroup.xyqb.Bootstrap
;
import
cn.quantgroup.xyqb.Bootstrap
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
javax.annotation.Resource
;
import
org.json.JSONObject
;
import
org.json.JSONObject
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Before
;
import
org.junit.Before
;
...
@@ -19,10 +22,6 @@ import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
...
@@ -19,10 +22,6 @@ import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
import
org.springframework.test.web.servlet.setup.MockMvcBuilders
;
import
org.springframework.test.web.servlet.setup.MockMvcBuilders
;
import
org.springframework.web.context.WebApplicationContext
;
import
org.springframework.web.context.WebApplicationContext
;
import
javax.annotation.Resource
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
@RunWith
(
SpringRunner
.
class
)
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
Bootstrap
.
class
)
@SpringBootTest
(
classes
=
Bootstrap
.
class
)
@ContextConfiguration
(
initializers
=
ApolloPropertySourceInitializer
.
class
)
@ContextConfiguration
(
initializers
=
ApolloPropertySourceInitializer
.
class
)
...
...
src/test/java/demo/ParametersJunit4Test.java
View file @
3c8b53b3
package
demo
;
package
demo
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.jupiter.api.Tag
;
import
org.junit.jupiter.api.Tag
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.Parameterized
;
import
org.junit.runners.Parameterized
;
import
java.util.Arrays
;
import
java.util.Collection
;
/**
/**
* jUnit4风格参数化批量测试(用例)
* jUnit4风格参数化批量测试(用例)
* @author renwc
* @author renwc
...
...
src/test/java/demo/ParametersJunit5Test.java
View file @
3c8b53b3
package
demo
;
package
demo
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
assertEquals
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Ignore
;
import
org.junit.Ignore
;
import
org.junit.Test
;
import
org.junit.Test
;
...
@@ -9,8 +11,6 @@ import org.junit.jupiter.api.TestInfo;
...
@@ -9,8 +11,6 @@ import org.junit.jupiter.api.TestInfo;
import
org.junit.jupiter.params.ParameterizedTest
;
import
org.junit.jupiter.params.ParameterizedTest
;
import
org.junit.jupiter.params.provider.ValueSource
;
import
org.junit.jupiter.params.provider.ValueSource
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
assertEquals
;
/**
/**
* jUnit5风格参数化批量测试(用例)
* jUnit5风格参数化批量测试(用例)
* @author renwc
* @author renwc
...
...
src/test/java/demo/RepsitoryJpaTest.java
View file @
3c8b53b3
...
@@ -5,6 +5,10 @@ import cn.quantgroup.xyqb.config.data.RedisConfig;
...
@@ -5,6 +5,10 @@ import cn.quantgroup.xyqb.config.data.RedisConfig;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
java.sql.Timestamp
;
import
java.time.Instant
;
import
javax.annotation.Resource
;
import
javax.persistence.PersistenceException
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
...
@@ -16,11 +20,6 @@ import org.springframework.test.context.ContextConfiguration;
...
@@ -16,11 +20,6 @@ import org.springframework.test.context.ContextConfiguration;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
javax.persistence.PersistenceException
;
import
java.sql.Timestamp
;
import
java.time.Instant
;
/**
/**
* 持久层测试用例
* 持久层测试用例
* @author renwc
* @author renwc
...
...
src/test/java/demo/RepsitoryTest.java
View file @
3c8b53b3
...
@@ -4,6 +4,9 @@ import cn.quantgroup.xyqb.Bootstrap;
...
@@ -4,6 +4,9 @@ import cn.quantgroup.xyqb.Bootstrap;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
java.sql.Timestamp
;
import
java.time.Instant
;
import
javax.annotation.Resource
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
...
@@ -14,10 +17,6 @@ import org.springframework.test.context.junit4.AbstractTransactionalJUnit4Spring
...
@@ -14,10 +17,6 @@ import org.springframework.test.context.junit4.AbstractTransactionalJUnit4Spring
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.sql.Timestamp
;
import
java.time.Instant
;
/**
/**
* 持久层测试用例
* 持久层测试用例
...
...
src/test/java/demo/ServiceTest.java
View file @
3c8b53b3
...
@@ -4,6 +4,9 @@ import cn.quantgroup.xyqb.Bootstrap;
...
@@ -4,6 +4,9 @@ import cn.quantgroup.xyqb.Bootstrap;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
java.sql.Timestamp
;
import
java.time.Instant
;
import
javax.annotation.Resource
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
...
@@ -14,10 +17,6 @@ import org.springframework.test.context.junit4.AbstractTransactionalJUnit4Spring
...
@@ -14,10 +17,6 @@ import org.springframework.test.context.junit4.AbstractTransactionalJUnit4Spring
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.sql.Timestamp
;
import
java.time.Instant
;
/**
/**
* 业务层测试用例
* 业务层测试用例
* @author renwc
* @author renwc
...
...
src/test/java/demo/WebTest.java
View file @
3c8b53b3
...
@@ -2,6 +2,7 @@ package demo;
...
@@ -2,6 +2,7 @@ package demo;
import
cn.quantgroup.xyqb.Bootstrap
;
import
cn.quantgroup.xyqb.Bootstrap
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
...
@@ -14,8 +15,6 @@ import org.springframework.http.ResponseEntity;
...
@@ -14,8 +15,6 @@ import org.springframework.http.ResponseEntity;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
javax.annotation.Resource
;
/**
/**
* 控制层测试用例
* 控制层测试用例
...
...
src/test/java/login/UserLoginTest.java
View file @
3c8b53b3
...
@@ -9,6 +9,10 @@ import cn.quantgroup.xyqb.entity.Address;
...
@@ -9,6 +9,10 @@ import cn.quantgroup.xyqb.entity.Address;
import
cn.quantgroup.xyqb.model.AuthBean
;
import
cn.quantgroup.xyqb.model.AuthBean
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.service.user.IAddressService
;
import
cn.quantgroup.xyqb.service.user.IAddressService
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.http.HttpEntity
;
import
org.apache.http.HttpEntity
;
...
@@ -25,11 +29,6 @@ import org.springframework.boot.test.context.SpringBootTest;
...
@@ -25,11 +29,6 @@ import org.springframework.boot.test.context.SpringBootTest;
import
org.springframework.mock.web.MockHttpServletRequest
;
import
org.springframework.mock.web.MockHttpServletRequest
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
javax.annotation.Resource
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
/**
* Created by 11 on 2017/1/3.
* Created by 11 on 2017/1/3.
*/
*/
...
...
src/test/java/repsitory/UserAuthorizedRepsitoryTest.java
View file @
3c8b53b3
...
@@ -6,6 +6,9 @@ import cn.quantgroup.xyqb.model.AuthPattern;
...
@@ -6,6 +6,9 @@ import cn.quantgroup.xyqb.model.AuthPattern;
import
cn.quantgroup.xyqb.repository.IUserAuthorizedRepository
;
import
cn.quantgroup.xyqb.repository.IUserAuthorizedRepository
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
demo.BaseParametersTest
;
import
demo.BaseParametersTest
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
...
@@ -17,10 +20,6 @@ import org.springframework.test.annotation.Rollback;
...
@@ -17,10 +20,6 @@ import org.springframework.test.annotation.Rollback;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.util.Arrays
;
import
java.util.Collection
;
/**
/**
* 业务层测试用例
* 业务层测试用例
* @author renwc
* @author renwc
...
...
src/test/java/service/GeetestCaptchaServiceTest.java
View file @
3c8b53b3
...
@@ -5,6 +5,8 @@ import cn.quantgroup.xyqb.model.ClientType;
...
@@ -5,6 +5,8 @@ import cn.quantgroup.xyqb.model.ClientType;
import
cn.quantgroup.xyqb.service.captcha.IGeetestCaptchaService
;
import
cn.quantgroup.xyqb.service.captcha.IGeetestCaptchaService
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
java.util.Map
;
import
javax.annotation.Resource
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
...
@@ -12,9 +14,6 @@ import org.springframework.boot.test.context.SpringBootTest;
...
@@ -12,9 +14,6 @@ import org.springframework.boot.test.context.SpringBootTest;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
javax.annotation.Resource
;
import
java.util.Map
;
@RunWith
(
SpringRunner
.
class
)
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
Bootstrap
.
class
)
@SpringBootTest
(
classes
=
Bootstrap
.
class
)
@ContextConfiguration
(
initializers
=
ApolloPropertySourceInitializer
.
class
)
@ContextConfiguration
(
initializers
=
ApolloPropertySourceInitializer
.
class
)
...
...
src/test/java/service/QuantgroupCaptchaServiceTest.java
View file @
3c8b53b3
...
@@ -3,6 +3,8 @@ package service;
...
@@ -3,6 +3,8 @@ package service;
import
cn.quantgroup.xyqb.Bootstrap
;
import
cn.quantgroup.xyqb.Bootstrap
;
import
cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService
;
import
cn.quantgroup.xyqb.service.captcha.IQuantgroupCaptchaService
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
java.util.Locale
;
import
javax.annotation.Resource
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
...
@@ -10,9 +12,6 @@ import org.springframework.boot.test.context.SpringBootTest;
...
@@ -10,9 +12,6 @@ import org.springframework.boot.test.context.SpringBootTest;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
javax.annotation.Resource
;
import
java.util.Locale
;
@RunWith
(
SpringRunner
.
class
)
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
Bootstrap
.
class
)
@SpringBootTest
(
classes
=
Bootstrap
.
class
)
@ContextConfiguration
(
initializers
=
ApolloPropertySourceInitializer
.
class
)
@ContextConfiguration
(
initializers
=
ApolloPropertySourceInitializer
.
class
)
...
...
src/test/java/service/UserAuthorizedServiceTest.java
View file @
3c8b53b3
...
@@ -7,6 +7,10 @@ import cn.quantgroup.xyqb.model.UserAuthorizedParam;
...
@@ -7,6 +7,10 @@ import cn.quantgroup.xyqb.model.UserAuthorizedParam;
import
cn.quantgroup.xyqb.service.auth.IUserAuthorizedService
;
import
cn.quantgroup.xyqb.service.auth.IUserAuthorizedService
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
demo.BaseParametersTest
;
import
demo.BaseParametersTest
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.Optional
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.FixMethodOrder
;
import
org.junit.FixMethodOrder
;
...
@@ -19,11 +23,6 @@ import org.springframework.test.annotation.Rollback;
...
@@ -19,11 +23,6 @@ import org.springframework.test.annotation.Rollback;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.Optional
;
/**
/**
* 业务层测试用例
* 业务层测试用例
* @author renwc
* @author renwc
...
...
src/test/java/service/UserServiceTest.java
View file @
3c8b53b3
...
@@ -6,6 +6,10 @@ import cn.quantgroup.xyqb.service.user.IAddressService;
...
@@ -6,6 +6,10 @@ import cn.quantgroup.xyqb.service.user.IAddressService;
import
cn.quantgroup.xyqb.service.user.IContactService
;
import
cn.quantgroup.xyqb.service.user.IContactService
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.List
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Before
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.Test
;
...
@@ -17,13 +21,6 @@ import org.springframework.test.context.ContextConfiguration;
...
@@ -17,13 +21,6 @@ import org.springframework.test.context.ContextConfiguration;
import
org.springframework.test.context.TestContextManager
;
import
org.springframework.test.context.TestContextManager
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.sql.Timestamp
;
import
java.time.LocalDateTime
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.List
;
/**
/**
* Created by xuran on 2017/12/26.
* Created by xuran on 2017/12/26.
*/
*/
...
...
src/test/java/web/UserAuthorizedControllerTest.java
View file @
3c8b53b3
...
@@ -5,6 +5,8 @@ import cn.quantgroup.xyqb.model.AuthPattern;
...
@@ -5,6 +5,8 @@ import cn.quantgroup.xyqb.model.AuthPattern;
import
cn.quantgroup.xyqb.model.UserAuthorizedParam
;
import
cn.quantgroup.xyqb.model.UserAuthorizedParam
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
demo.BaseParametersTest
;
import
demo.BaseParametersTest
;
import
java.util.Optional
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
...
@@ -18,9 +20,6 @@ import org.springframework.test.context.ContextConfiguration;
...
@@ -18,9 +20,6 @@ import org.springframework.test.context.ContextConfiguration;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.util.Optional
;
/**
/**
* 业务层测试用例
* 业务层测试用例
* @author renwc
* @author renwc
...
...
src/test/java/wechat/WechatTest.java
View file @
3c8b53b3
...
@@ -6,17 +6,13 @@ import cn.quantgroup.xyqb.entity.WechatUserInfo;
...
@@ -6,17 +6,13 @@ import cn.quantgroup.xyqb.entity.WechatUserInfo;
import
cn.quantgroup.xyqb.repository.IWeChatUserRepository
;
import
cn.quantgroup.xyqb.repository.IWeChatUserRepository
;
import
cn.quantgroup.xyqb.service.user.IAddressService
;
import
cn.quantgroup.xyqb.service.user.IAddressService
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
javax.annotation.Resource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.Parameterized
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.annotation.Rollback
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
/**
/**
* @author :dongjianhua
* @author :dongjianhua
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment