Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
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
lanbaoming
jiedao-api-boot-master
Commits
62c2c69f
Commit
62c2c69f
authored
Aug 05, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refs/heads/feature_member_score' into feature_member_score_zhangfeng
parents
b32084eb
a7735247
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
25 additions
and
19 deletions
+25
-19
MemberUserScoreApiImpl.java
...yudao/module/member/api/score/MemberUserScoreApiImpl.java
+9
-9
MemberUserScoreExpireTask.java
...ember/controller/admin/job/MemberUserScoreExpireTask.java
+1
-1
MemberUserScoreController.java
...controller/admin/userScore/MemberUserScoreController.java
+1
-1
AppAuthRegReqVO.java
...module/member/controller/app/auth/vo/AppAuthRegReqVO.java
+3
-0
MemberUserDO.java
...yudao/module/member/dal/dataobject/user/MemberUserDO.java
+2
-0
MemberUserScoreDetailExpireListener.java
.../member/listener/MemberUserScoreDetailExpireListener.java
+1
-1
MemberAuthServiceImpl.java
...dao/module/member/service/auth/MemberAuthServiceImpl.java
+1
-1
MemberUserService.java
...r/yudao/module/member/service/user/MemberUserService.java
+2
-2
MemberUserServiceImpl.java
...dao/module/member/service/user/MemberUserServiceImpl.java
+3
-2
RedeemRewardApiImpl.java
...r/yudao/module/reward/api/reward/RedeemRewardApiImpl.java
+1
-1
RewardRedeemServiceImpl.java
...module/reward/service/redeem/RewardRedeemServiceImpl.java
+1
-1
No files found.
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/api/score/MemberUserScoreApiImpl.java
View file @
62c2c69f
...
...
@@ -71,7 +71,7 @@ public class MemberUserScoreApiImpl implements MemberUserScoreApi {
if
(
StringUtils
.
isBlank
(
req
.
getUniqueId
()))
{
throw
exception
(
SCORE_OPERATE_MUST_HAVE_UNIQUE_ID
);
}
MemberUserScoreLogDO
memberUserScoreLogDO
=
logService
.
getByUniqueId
(
req
.
getUniqueId
());
MemberUserScoreLogDO
memberUserScoreLogDO
=
logService
.
getByUniqueId
(
req
.
get
SourceType
()
+
"_"
+
req
.
get
UniqueId
());
if
(
memberUserScoreLogDO
!=
null
)
{
throw
exception
(
SCORE_OPERATE_IDEMPOTENT_ERROR
);
}
...
...
@@ -200,7 +200,7 @@ public class MemberUserScoreApiImpl implements MemberUserScoreApi {
req
.
getOperateType
().
getValue
()
:
req
.
getSourceType
().
getOperateType
().
getValue
())
.
sourceType
(
req
.
getSourceType
().
getValue
())
.
extParam
(
req
.
getExtParam
())
.
uniqueId
(
req
.
getUniqueId
())
.
uniqueId
(
req
.
get
SourceType
()
+
"_"
+
req
.
get
UniqueId
())
.
build
());
}
}
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/controller/admin/job/MemberUserScoreExpireTask.java
View file @
62c2c69f
...
...
@@ -64,7 +64,7 @@ public class MemberUserScoreExpireTask implements JobHandler {
.
memberId
(
memberUserScoreDetailDO
.
getMemberId
())
.
scoreCount
(
memberUserScoreDetailDO
.
getRemainCount
())
.
sourceType
(
ScoreSourceTypeEnum
.
SYSTEM_EXPIRED
)
.
uniqueId
(
ScoreSourceTypeEnum
.
SYSTEM_EXPIRED
+
"_"
+
memberUserScoreDetailDO
.
getId
()
+
"_"
+
System
.
currentTimeMillis
())
.
uniqueId
(
memberUserScoreDetailDO
.
getId
()
+
"_"
+
System
.
currentTimeMillis
())
.
extParam
(
extParam
)
.
build
());
}
catch
(
Exception
e
)
{
...
...
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/controller/admin/userScore/MemberUserScoreController.java
View file @
62c2c69f
...
...
@@ -60,7 +60,7 @@ public class MemberUserScoreController {
.
operateType
(
ScoreOperateTypeEnum
.
parseByValue
(
query
.
getOperateType
()))
.
sourceType
(
ScoreSourceTypeEnum
.
MANUAL_OPERATE
)
.
extParam
(
extParam
)
.
uniqueId
(
S
coreSourceTypeEnum
.
MANUAL_OPERATE
+
"_"
+
System
.
currentTimeMillis
(
))
.
uniqueId
(
S
tring
.
valueOf
(
System
.
currentTimeMillis
()
))
.
build
());
return
success
(
null
);
}
...
...
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthRegReqVO.java
View file @
62c2c69f
...
...
@@ -43,4 +43,7 @@ public class AppAuthRegReqVO {
@ApiModelProperty
(
value
=
"英文名称"
,
required
=
false
,
example
=
"+86"
)
private
String
englishName
;
@ApiModelProperty
(
value
=
"推荐码"
,
required
=
false
)
private
String
referralCode
;
}
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/dal/dataobject/user/MemberUserDO.java
View file @
62c2c69f
...
...
@@ -95,6 +95,8 @@ public class MemberUserDO extends TenantBaseDO {
*/
private
String
controlPassword
;
private
String
referralCode
;
///**
// * 是否身份认证
// */
...
...
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/listener/MemberUserScoreDetailExpireListener.java
View file @
62c2c69f
...
...
@@ -55,7 +55,7 @@ public class MemberUserScoreDetailExpireListener {
.
memberId
(
detail
.
getMemberId
())
.
scoreCount
(
detail
.
getRemainCount
())
.
sourceType
(
ScoreSourceTypeEnum
.
SYSTEM_EXPIRED
)
.
uniqueId
(
ScoreSourceTypeEnum
.
SYSTEM_EXPIRED
+
"_"
+
detail
.
getId
()
+
"_"
+
System
.
currentTimeMillis
())
.
uniqueId
(
detail
.
getId
()
+
"_"
+
System
.
currentTimeMillis
())
.
extParam
(
extParam
)
.
build
());
}
catch
(
Exception
e
)
{
...
...
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/service/auth/MemberAuthServiceImpl.java
View file @
62c2c69f
...
...
@@ -117,7 +117,7 @@ public class MemberAuthServiceImpl implements MemberAuthService {
}
// 获得获得注册用户
MemberUserDO
user
=
userService
.
createUser
(
reqVO
.
getMobile
(),
userIp
,
reqVO
.
getPassword
(),
reqVO
.
getAreaCode
(),
reqVO
.
getEnglishName
());
MemberUserDO
user
=
userService
.
createUser
(
reqVO
.
getMobile
(),
userIp
,
reqVO
.
getPassword
(),
reqVO
.
getAreaCode
(),
reqVO
.
getEnglishName
()
,
reqVO
.
getReferralCode
()
);
Assert
.
notNull
(
user
,
"创建用户失败,结果为空"
);
//记录日志
...
...
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserService.java
View file @
62c2c69f
package
cn
.
iocoder
.
yudao
.
module
.
member
.
service
.
user
;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.common.validation.Mobile
;
import
cn.iocoder.yudao.framework.mybatis.core.vo.PageVO
;
import
cn.iocoder.yudao.module.member.api.user.dto.UserSelectReqVO
;
import
cn.iocoder.yudao.module.member.controller.admin.user.vo.UserBackVO
;
...
...
@@ -51,9 +50,10 @@ public interface MemberUserService {
* @param mobile
* @param registerIp
* @param password
* @param referralCode
* @return
*/
MemberUserDO
createUser
(
String
mobile
,
String
registerIp
,
String
password
,
String
areaCode
,
String
englishName
);
MemberUserDO
createUser
(
String
mobile
,
String
registerIp
,
String
password
,
String
areaCode
,
String
englishName
,
String
referralCode
);
/**
* 更新用户的最后登陆信息
...
...
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserServiceImpl.java
View file @
62c2c69f
...
...
@@ -172,7 +172,7 @@ public class MemberUserServiceImpl implements MemberUserService {
}
String
englishName
=
maskMobileNumber
(
mobile
);
// 用户不存在,则进行创建
user
=
this
.
createUser
(
mobile
,
registerIp
,
null
,
areaCode
,
englishName
);
user
=
this
.
createUser
(
mobile
,
registerIp
,
null
,
areaCode
,
englishName
,
null
);
//记录日志
UserOperationLogCreateReqVO
userOperationLogCreateReqVO
=
new
UserOperationLogCreateReqVO
();
...
...
@@ -202,7 +202,7 @@ public class MemberUserServiceImpl implements MemberUserService {
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
MemberUserDO
createUser
(
String
mobile
,
String
registerIp
,
String
password
,
String
areacode
,
String
englishName
)
{
public
MemberUserDO
createUser
(
String
mobile
,
String
registerIp
,
String
password
,
String
areacode
,
String
englishName
,
String
referralCode
)
{
// 生成密码
/* if (StrUtil.isBlank(password)) {
password = IdUtil.fastSimpleUUID();
...
...
@@ -222,6 +222,7 @@ public class MemberUserServiceImpl implements MemberUserService {
user
.
setEnglishName
(
englishName
);
user
.
setNickname
(
englishName
);
user
.
setCode
(
getNextMemberCode
());
user
.
setReferralCode
(
referralCode
);
memberUserMapper
.
insert
(
user
);
//站内信
InternalMessageCreateDto
dto
=
InternalMessageCreateDto
.
builder
().
toIdList
(
Arrays
.
asList
(
user
.
getId
()))
...
...
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/api/reward/RedeemRewardApiImpl.java
View file @
62c2c69f
...
...
@@ -116,7 +116,7 @@ public class RedeemRewardApiImpl implements RedeemRewardApi {
.
sourceType
(
ScoreSourceTypeEnum
.
EXCHANGE_REWARD
)
.
scoreCount
(
redeemRewardReqVO
.
getRewardCount
()
*
rewardDO
.
getPointsRequire
())
.
releationId
(
String
.
valueOf
(
redeemId
))
.
uniqueId
(
S
coreSourceTypeEnum
.
EXCHANGE_REWARD
+
"_"
+
redeemId
)
.
uniqueId
(
S
tring
.
valueOf
(
redeemId
)
)
.
extParam
(
extParam
)
.
build
());
}
...
...
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/service/redeem/RewardRedeemServiceImpl.java
View file @
62c2c69f
...
...
@@ -274,7 +274,7 @@ public class RewardRedeemServiceImpl extends AbstractService<RewardRedeemMapper,
.
scoreCount
(
rewardRedeemDO
.
getScoreCount
())
.
extParam
(
extParam
)
.
releationId
(
String
.
valueOf
(
req
.
getId
()))
.
uniqueId
(
S
coreSourceTypeEnum
.
EXCHANGE_REWARD_CANCEL
+
"_"
+
req
.
getId
(
))
.
uniqueId
(
S
tring
.
valueOf
(
req
.
getId
()
))
.
build
());
return
true
;
}
...
...
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