Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
V
volunteer_service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
licc
volunteer_service
Commits
cbd95f25
Commit
cbd95f25
authored
May 18, 2021
by
cy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加充值卡判断
parent
68e4e8f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
RefillCardServiceImpl.java
.../cn/wisenergy/service/app/impl/RefillCardServiceImpl.java
+2
-1
application.yml
wisenergy-web-admin/src/main/resources/application.yml
+1
-1
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/RefillCardServiceImpl.java
View file @
cbd95f25
...
...
@@ -58,7 +58,8 @@ public class RefillCardServiceImpl implements RefillCardService {
List
<
RefillCard
>
refillCards
=
refillCardMapper
.
infoByCardNo
(
cardNumber
);
if
(
refillCards
.
size
()>
0
){
RefillCard
card
=
refillCards
.
stream
().
max
(
Comparator
.
comparing
(
RefillCard:
:
getCardNo
)).
get
();
BigInteger
maxNo
=
refillCard
.
getCardNo
().
add
(
new
BigInteger
((
card
.
getCardNumber
()-
1
)+
""
));
int
num
=
card
.
getCardNumber
()-
1
;
BigInteger
maxNo
=
card
.
getCardNo
().
add
(
new
BigInteger
(
String
.
valueOf
(
num
)));
if
(
maxNo
.
compareTo
(
refillCard
.
getCardNo
())
>
0
)
{
return
R
.
error
(
"该初始卡区间有可能存在相同的卡号,请重新添加"
);
}
...
...
wisenergy-web-admin/src/main/resources/application.yml
View file @
cbd95f25
...
...
@@ -13,7 +13,7 @@ spring:
allow-bean-definition-overriding
:
true
# 环境 dev|test|prod
profiles
:
active
:
prod
active
:
dev
# jackson时间格式化
jackson
:
time-zone
:
GMT+8
...
...
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