Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
b214030f
Commit
b214030f
authored
Nov 11, 2020
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
农工商
parent
e8322e4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
order-application-service/src/main/java/cn/freemud/entities/vo/NgsSellCouponCreateOrderVo.java
+3
-0
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
+4
-4
No files found.
order-application-service/src/main/java/cn/freemud/entities/vo/NgsSellCouponCreateOrderVo.java
View file @
b214030f
...
@@ -31,4 +31,7 @@ public class NgsSellCouponCreateOrderVo {
...
@@ -31,4 +31,7 @@ public class NgsSellCouponCreateOrderVo {
// @NotEmpty(message = "version 版本号不能为空")
// @NotEmpty(message = "version 版本号不能为空")
private
String
version
;
private
String
version
;
@NotEmpty
(
message
=
"appId"
)
private
String
appId
;
}
}
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
View file @
b214030f
...
@@ -292,7 +292,7 @@ public class SellCouponOrderServiceImpl {
...
@@ -292,7 +292,7 @@ public class SellCouponOrderServiceImpl {
}
else
{
}
else
{
flowno
=
redisTemplate
.
opsForValue
().
increment
(
key
,
1
).
intValue
();
flowno
=
redisTemplate
.
opsForValue
().
increment
(
key
,
1
).
intValue
();
}
}
String
stationid
=
getStationId
(
date
,
partnerId
,
flowno
);
String
stationid
=
getStationId
(
date
,
requestVo
.
getAppId
()
,
flowno
);
orderExtInfoDto
.
setStationId
(
stationid
);
orderExtInfoDto
.
setStationId
(
stationid
);
...
@@ -301,16 +301,16 @@ public class SellCouponOrderServiceImpl {
...
@@ -301,16 +301,16 @@ public class SellCouponOrderServiceImpl {
}
}
private
String
getStationId
(
String
date
,
String
partnerI
d
,
int
flowno
)
{
private
String
getStationId
(
String
date
,
String
appi
d
,
int
flowno
)
{
String
stationid
=
""
;
String
stationid
=
""
;
int
length
=
String
.
valueOf
(
flowno
).
length
();
int
length
=
String
.
valueOf
(
flowno
).
length
();
if
(
easyPartnerId
.
equals
(
partnerI
d
)){
if
(
easyPartnerId
.
equals
(
appi
d
)){
stationid
=
date
+
"6600000001"
;
stationid
=
date
+
"6600000001"
;
for
(
int
i
=
0
;
i
<
5
-
length
;
i
++){
for
(
int
i
=
0
;
i
<
5
-
length
;
i
++){
stationid
+=
"0"
;
stationid
+=
"0"
;
}
}
stationid
+=
flowno
;
stationid
+=
flowno
;
}
else
if
(
supermarketPartnerId
.
equals
(
partnerI
d
))
{
}
else
if
(
supermarketPartnerId
.
equals
(
appi
d
))
{
stationid
=
date
+
"9988800001"
;
stationid
=
date
+
"9988800001"
;
for
(
int
i
=
0
;
i
<
5
-
length
;
i
++){
for
(
int
i
=
0
;
i
<
5
-
length
;
i
++){
stationid
+=
"0"
;
stationid
+=
"0"
;
...
...
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