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
825bf5f4
Commit
825bf5f4
authored
Jan 07, 2025
by
wux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "会员等级配置,同等级相同顺序报错"
This reverts commit
c1506b2a
.
parent
15e0414b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
28 deletions
+2
-28
ErrorCodeConstants.java
...iocoder/yudao/module/member/enums/ErrorCodeConstants.java
+0
-1
MemberUserLevelConfigServiceImpl.java
...ember/service/level/MemberUserLevelConfigServiceImpl.java
+0
-14
OrderBackPageVO.java
.../iocoder/yudao/module/order/vo/order/OrderBackPageVO.java
+1
-1
messages_en.properties
yudao-server/src/main/resources/i18n/messages_en.properties
+1
-6
messages_fr.properties
yudao-server/src/main/resources/i18n/messages_fr.properties
+0
-5
messages_zh.properties
yudao-server/src/main/resources/i18n/messages_zh.properties
+0
-1
No files found.
yudao-module-member/yudao-module-member-api/src/main/java/cn/iocoder/yudao/module/member/enums/ErrorCodeConstants.java
View file @
825bf5f4
...
...
@@ -73,5 +73,4 @@ public interface ErrorCodeConstants {
ErrorCode
SCORE_RULE_CUSTOMERSIDE_ERROR
=
new
ErrorCode
(
1004008028
,
"score.rule.customer.side.error"
);
ErrorCode
LEVEL_RULE_NOT_EXISTS
=
new
ErrorCode
(
1004008028
,
"level.rule.not.exists"
);
ErrorCode
LEVEL_DETAILs_NOT_EXISTS
=
new
ErrorCode
(
1004008028
,
"level.details.not.exists"
);
ErrorCode
LEVEL_Order_REPEAT
=
new
ErrorCode
(
1004008029
,
"level.order.repeat"
);
}
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/service/level/MemberUserLevelConfigServiceImpl.java
View file @
825bf5f4
...
...
@@ -23,7 +23,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.validation.annotation.Validated
;
import
javax.annotation.Resource
;
import
java.util.Collections
;
import
java.util.Comparator
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -129,19 +128,6 @@ public class MemberUserLevelConfigServiceImpl extends AbstractService<MemberUser
if
(
query
.
getLowerCount
()
>
query
.
getUpperCount
())
{
throw
exception
(
LEVEL_BOUND_RANGE_ERROR
);
}
MemberUserLevelConfigReqVO
memberUserLevelConfigReqVO
=
new
MemberUserLevelConfigReqVO
();
memberUserLevelConfigReqVO
.
setLevel
(
Collections
.
singletonList
(
query
.
getLevel
()));
memberUserLevelConfigReqVO
.
setPageNo
(
1
);
memberUserLevelConfigReqVO
.
setPageSize
(
1000
);
PageResult
<
MemberUserLevelConfigBaseRespVO
>
levelPage
=
this
.
getLevelPage
(
memberUserLevelConfigReqVO
);
if
(
levelPage
.
getTotal
()
>
0
){
List
<
MemberUserLevelConfigBaseRespVO
>
list
=
levelPage
.
getList
();
list
.
forEach
(
i
->
{
if
(
i
.
getSort
().
equals
(
query
.
getSort
())){
throw
exception
(
LEVEL_Order_REPEAT
);
}
});
}
}
@Override
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderBackPageVO.java
View file @
825bf5f4
...
...
@@ -665,7 +665,7 @@ public class OrderBackPageVO {
private
void
getOrderDesc
()
{
// TODO 这里的文案国际化现在只支持两种语言,如果需要支持更多的语言,需要优化
Integer
lang
=
Objects
.
nonNull
(
this
.
lang
)
?
this
.
lang
:
I18nMessage
.
getLang
();
if
(
null
!=
this
.
status
&&
this
.
status
.
equals
(
OrderStatusEnum
.
CANCEL
.
getValue
())
&&
this
.
userType
!=
null
)
{
if
(
null
!=
this
.
status
&&
this
.
status
.
equals
(
OrderStatusEnum
.
CANCEL
.
getValue
())
&&
this
.
userType
!=
null
)
{
String
message
=
this
.
userType
==
2
?
OrderStatusMsgEnum
.
CANCEL
.
getAdminSourceName
()
:
OrderStatusMsgEnum
.
CANCEL
.
getCustomerSourceName
();
this
.
statusMsg
=
lang
==
0
?
I18nMessage
.
getZhMessage
(
message
)
:
I18nMessage
.
getEnMessage
(
message
);
}
else
if
(
null
!=
this
.
abnormalState
&&
this
.
abnormalState
>
0
)
{
...
...
yudao-server/src/main/resources/i18n/messages_en.properties
View file @
825bf5f4
...
...
@@ -1058,10 +1058,7 @@ currency.not.exist = currency not exist
date.format.error
=
date format error, for example : 2024-01-01 12:11:11
redeem.cancel.status.error
=
record status must be redeeming
level.bound.range.error
=
upper count must greater than lower count
level.bound.range.conflict
=
score range exist conflict'
level.rule.not.exists
=
Membership level rule does not exist
level.details.not.exists
=
Membership level details do not exist
level.order.repeat
=
Membership level configuration order repeats
level.bound.range.conflict
=
score range exist conflict
score.operate.idempotent.error
=
idempotent key conflict
score.rule.not.exists
=
score rule not exists
...
...
@@ -1138,5 +1135,3 @@ guan.lian.order.is.approval.in.process=Related order [{}] has approval in progre
msg.code.not.exist
=
The verification code does not exist
msg.code.is.use
=
The verification code is in use
msg.code.is.incorrect
=
The verification code is incorrect
msg.sent.too.often
=
Text messages are sent too often
msg.day.exceeded
=
The number of short messages sent per day exceeded
yudao-server/src/main/resources/i18n/messages_fr.properties
View file @
825bf5f4
...
...
@@ -1057,9 +1057,6 @@ date.format.error=Format de date incorrect, format correct : 2024-01-01 12:11:11
redeem.cancel.status.error
=
Seules les enregistrements avec un statut "en
\u
00E9change" peuvent
\u
00EAtre annul
\u
00E9s
level.bound.range.error
=
La valeur sup
\u
00E9rieure doit
\u
00EAtre sup
\u
00E9rieure
\u
00E0 la valeur inf
\u
00E9rieure
level.bound.range.conflict
=
Conflit dans la plage des points de fid
\u
00E9lit
\u
00E9
level.rule.not.exists
=
La r
\u
00E8gle du niveau de membre n'existe pas
level.details.not.exists
=
Les d
\u
00E9tails du niveau de membre n'existent pas
level.order.repeat
=
L'ordre de configuration du niveau d'adh
\u
00E9sion se r
\u
00E9p
\u
00E8te
score.operate.idempotent.error
=
Conflit de cl
\u
00E9 idempotente
score.rule.not.exists
=
La r
\u
00E8gle de points n'existe pas
...
...
@@ -1132,5 +1129,3 @@ guan.lian.order.is.approval.in.process=La commande li\u00E9e [{}] est en cours d
msg.code.not.exist
=
Le captcha n
\u2019
existe pas
msg.code.is.use
=
Captcha d
\u
00E9j
\u
00E0 utilis
\u
00E9
msg.code.is.incorrect
=
Le captcha est incorrect
msg.sent.too.often
=
Les SMS sont envoy
\u
00E9s trop souvent
msg.day.exceeded
=
Le nombre de messages courts envoy
\u
00E9s par jour d
\u
00E9pass
\u
00E9
yudao-server/src/main/resources/i18n/messages_zh.properties
View file @
825bf5f4
...
...
@@ -1061,7 +1061,6 @@ level.bound.range.error = \u4E0A\u754C\u6570\u503C\u5FC5\u987B\u5927\u4E8E\u4E0B
level.bound.range.conflict
=
\u
79EF
\u5206\u8303\u
56F4
\u
5B58
\u5728\u
51B2
\u
7A81
level.rule.not.exists
=
\u
4F1A
\u5458\u
7B49
\u
7EA7
\u
89C4
\u5219\u
4E0D
\u
5B58
\u5728
level.details.not.exists
=
\u
4F1A
\u5458\u
7B49
\u
7EA7
\u
8BE6
\u
60C5
\u
4E0D
\u
5B58
\u5728
level.order.repeat
=
\u
4F1A
\u5458\u
7B49
\u
7EA7
\u
89C4
\u5219\u
91CD
\u
590D
score.operate.idempotent.error
=
\u
5E42
\u
7B49key
\u
51B2
\u
7A81
score.rule.not.exists
=
\u
79EF
\u5206\u
89C4
\u5219\u
4E0D
\u
5B58
\u5728
...
...
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