记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
51fbad48
Commit
51fbad48
authored
Mar 21, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
99b9eba9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
SellDataInfoImpl.java
...service/platform/service/impl/smile/SellDataInfoImpl.java
+2
-1
SmileUserController.java
...com/liquidnet/service/controller/SmileUserController.java
+1
-0
SmileFrontServiceImpl.java
...liquidnet/service/service/impl/SmileFrontServiceImpl.java
+8
-0
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/smile/SellDataInfoImpl.java
View file @
51fbad48
...
...
@@ -53,6 +53,7 @@ public class SellDataInfoImpl {
for
(
SmileUser
smileUser:
list
){
//-- 看这个人有哪些演出维度的订单 (支付的、演出id,该用户的。)
if
(
StringUtil
.
isNotBlank
(
smileUser
.
getUid
())){
//获得6个月内演出
List
<
Map
>
list1
=
orderTicketsMapper
.
getUserOrder
(
smileUser
.
getUid
());
for
(
Map
a:
list1
){
String
performanceId
=
a
.
get
(
"yanchuId"
)==
null
?
""
:
a
.
get
(
"yanchuId"
).
toString
();
...
...
@@ -71,7 +72,7 @@ public class SellDataInfoImpl {
//票提
sellDataOneVO
.
setPiaoTi
(
new
BigDecimal
(
a1
.
get
(
"paioTi"
)==
null
?
""
:
a1
.
get
(
"paioTi"
).
toString
()));
//佣金
sellDataOneVO
.
setCommission
(
new
BigDecimal
(
a1
.
get
(
"commiss"
)==
null
?
"0"
:
a1
.
get
(
""
).
toString
()));
sellDataOneVO
.
setCommission
(
new
BigDecimal
(
a1
.
get
(
"commiss"
)==
null
?
"0"
:
a1
.
get
(
"
commiss
"
).
toString
()));
sellDataOneVO
.
setTicketId
(
a1
.
get
(
"ticketId"
)==
null
?
""
:
a1
.
get
(
"ticketId"
).
toString
());
listSellDataOneVo
.
add
(
sellDataOneVO
);
if
(
StringUtils
.
isNotBlank
(
sellDataOneVO
.
getTicketId
())){
...
...
liquidnet-bus-service/liquidnet-service-smile/liquidnet-service-smile-impl/src/main/java/com/liquidnet/service/controller/SmileUserController.java
View file @
51fbad48
...
...
@@ -160,6 +160,7 @@ public class SmileUserController {
@ApiOperation
(
"获取销售数据"
)
public
ResponseDto
<
SellDataVO
>
getSellDataOne
(
@RequestParam
String
performanceId
)
{
String
userId
=
CurrentUtil
.
getCurrentUid
();
userId
=
"953190108752281604111893"
;
SellDataVO
sellDataVO
=
(
SellDataVO
)
redisUtil
.
get
(
SmileRedisConst
.
SELL_DATA
.
concat
(
userId
).
concat
(
performanceId
));
return
ResponseDto
.
success
(
sellDataVO
);
}
...
...
liquidnet-bus-service/liquidnet-service-smile/liquidnet-service-smile-impl/src/main/java/com/liquidnet/service/service/impl/SmileFrontServiceImpl.java
View file @
51fbad48
...
...
@@ -21,6 +21,7 @@ import org.springframework.data.mongodb.core.query.Criteria;
import
org.springframework.data.mongodb.core.query.Query
;
import
org.springframework.stereotype.Service
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.LinkedList
;
...
...
@@ -139,9 +140,16 @@ public class SmileFrontServiceImpl implements SmileFrontService {
}
int
d
=
a
.
get
(
"number"
)==
null
?
0
:
Integer
.
parseInt
(
a
.
get
(
"number"
).
toString
());
number
=
number
+
d
;
if
(
null
!=
a
.
get
(
"createTime"
)){
String
strDateFormat
=
"yyyy-MM-dd HH:mm:ss"
;
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
strDateFormat
);
a
.
replace
(
"createTime"
,
sdf
.
format
(
a
.
get
(
"createTime"
)));
}
}
sellDataDetailVO
.
setCount
(
number
);
sellDataDetailVO
.
setActiveName
(
activeName
);
sellDataDetailVO
.
setTicketName
(
ticketName
);
return
sellDataDetailVO
;
}
...
...
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