记得上下班打卡 | 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
5bce64eb
Commit
5bce64eb
authored
Sep 17, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下单增加输出
parent
4cc54009
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
CandyCouponServiceImpl.java
...et/service/candy/service/impl/CandyCouponServiceImpl.java
+2
-0
OrderUtils.java
...in/java/com/liquidnet/service/order/utils/OrderUtils.java
+5
-3
No files found.
liquidnet-bus-service/liquidnet-service-candy/liquidnet-service-candy-impl/src/main/java/com/liquidnet/service/candy/service/impl/CandyCouponServiceImpl.java
View file @
5bce64eb
...
...
@@ -411,6 +411,8 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
)
);
return
ResponseDto
.
success
(
uCouponId
);
}
else
if
(
dto
.
getState
().
equals
(
1
)){
return
ResponseDto
.
failure
(
"兑换已使用"
);
}
else
{
return
ResponseDto
.
failure
(
"兑换失败,请稍后再试"
);
}
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/OrderUtils.java
View file @
5bce64eb
...
...
@@ -19,6 +19,7 @@ import com.liquidnet.service.kylin.dto.vo.mongo.KylinOrderTicketVo;
import
com.liquidnet.service.kylin.dto.vo.returns.InnerReturnVo
;
import
com.liquidnet.service.kylin.dto.vo.returns.KylinOrderListVo
;
import
com.liquidnet.service.kylin.dto.vo.returns.PayResultVo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.http.client.methods.HttpRequestBase
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -33,6 +34,7 @@ import java.util.HashMap;
import
java.util.List
;
@Component
@Slf4j
public
class
OrderUtils
{
@Autowired
...
...
@@ -197,12 +199,12 @@ public class OrderUtils {
MultiValueMap
<
String
,
String
>
header
=
CollectionUtil
.
linkedMultiValueMapStringString
();
header
.
add
(
"Authorization"
,
"Bearer "
+
CurrentUtil
.
getToken
());
System
.
out
.
println
(
"url="
+
candyUrl
+
"/candy-coupon/use"
);
System
.
out
.
println
(
"params="
+
JSON
.
toJSONString
(
params
));
log
.
info
(
"url="
+
candyUrl
+
"/candy-coupon/use"
);
log
.
info
(
"params="
+
JSON
.
toJSONString
(
params
));
String
returnData
=
HttpUtil
.
post
(
candyUrl
+
"/candy-coupon/use"
,
params
,
header
);
InnerReturnVo
<
CandyUseResultVo
>
innerReturnVo
=
JsonUtils
.
fromJson
(
returnData
,
new
TypeReference
<
InnerReturnVo
<
CandyUseResultVo
>>()
{
});
System
.
out
.
println
(
"returnData="
+
returnData
);
log
.
info
(
"returnData="
+
returnData
);
CandyUseResultVo
candyUseResultVo
=
innerReturnVo
.
getData
();
Integer
type
=
candyUseResultVo
.
getCouType
();
BigDecimal
value
=
candyUseResultVo
.
getValue
();
...
...
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