记得上下班打卡 | 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
66c67dd2
Commit
66c67dd2
authored
Jan 07, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单提交
parent
4b8cd0df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
GoblinOrderAttrVo.java
...om/liquidnet/service/goblin/dto/vo/GoblinOrderAttrVo.java
+3
-0
GoblinOrderController.java
...dnet/service/goblin/controller/GoblinOrderController.java
+1
-1
GoblinOrderServiceImpl.java
...t/service/goblin/service/impl/GoblinOrderServiceImpl.java
+8
-8
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinOrderAttrVo.java
View file @
66c67dd2
...
@@ -2,6 +2,8 @@ package com.liquidnet.service.goblin.dto.vo;
...
@@ -2,6 +2,8 @@ package com.liquidnet.service.goblin.dto.vo;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.liquidnet.commons.lang.util.DateUtil
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
...
@@ -37,6 +39,7 @@ public class GoblinOrderAttrVo implements Serializable,Cloneable {
...
@@ -37,6 +39,7 @@ public class GoblinOrderAttrVo implements Serializable,Cloneable {
@ApiModelProperty
(
value
=
" 订单的赠品信息格式为JSON"
)
@ApiModelProperty
(
value
=
" 订单的赠品信息格式为JSON"
)
private
String
giftInfos
;
private
String
giftInfos
;
@ApiModelProperty
(
value
=
" 创建时间"
)
@ApiModelProperty
(
value
=
" 创建时间"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
DateUtil
.
DATE_FULL_STR
)
private
LocalDateTime
createdAt
;
private
LocalDateTime
createdAt
;
private
static
final
GoblinOrderAttrVo
obj
=
new
GoblinOrderAttrVo
();
private
static
final
GoblinOrderAttrVo
obj
=
new
GoblinOrderAttrVo
();
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/GoblinOrderController.java
View file @
66c67dd2
...
@@ -40,7 +40,7 @@ public class GoblinOrderController {
...
@@ -40,7 +40,7 @@ public class GoblinOrderController {
@ApiOperation
(
"支付回调"
)
@ApiOperation
(
"支付回调"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
String
syncOrder
(
@ModelAttribute
@Valid
SyncOrderParam
syncOrderParam
)
{
public
String
syncOrder
(
@ModelAttribute
@Valid
SyncOrderParam
syncOrderParam
)
{
return
null
;
return
goblinAppOrderService
.
syncOrder
(
syncOrderParam
)
;
}
}
@PostMapping
(
"payAgain"
)
@PostMapping
(
"payAgain"
)
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinOrderServiceImpl.java
View file @
66c67dd2
...
@@ -133,9 +133,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -133,9 +133,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
//下单
//下单
GoblinOrderPreParam
pre
=
order
(
param
,
storeParam
,
uid
,
isMember
,
addressesVo
,
orderMasterCode
,
orderId
,
orderCode
);
GoblinOrderPreParam
pre
=
order
(
param
,
storeParam
,
uid
,
isMember
,
addressesVo
,
orderMasterCode
,
orderId
,
orderCode
);
preParam
.
setPriceActual
(
preParam
.
getPriceActual
().
add
(
pre
.
getPriceActual
()));
preParam
.
setPriceActual
(
preParam
.
getPriceActual
().
add
(
pre
.
getPriceActual
()));
preParam
.
setStoreName
(
pre
.
getStoreName
()
+
","
+
pre
.
getStoreName
());
preParam
.
setStoreName
(
pre
Param
.
getStoreName
()
+
","
+
pre
.
getStoreName
());
preParam
.
setSkuName
(
pre
.
getSkuName
()
+
","
+
pre
.
getSkuName
());
preParam
.
setSkuName
(
pre
Param
.
getSkuName
()
+
","
+
pre
.
getSkuName
());
preParam
.
setOrderIdList
(
pre
.
getOrderIdList
()
+
","
+
pre
.
getOrderIdList
());
preParam
.
setOrderIdList
(
pre
Param
.
getOrderIdList
()
+
","
+
pre
.
getOrderIdList
());
GoblinOrderSqlParam
sqlParam
=
GoblinOrderSqlParam
.
getNew
();
GoblinOrderSqlParam
sqlParam
=
GoblinOrderSqlParam
.
getNew
();
sqlParam
.
setStoreOrder
(
pre
.
getStoreOrder
());
sqlParam
.
setStoreOrder
(
pre
.
getStoreOrder
());
...
@@ -311,7 +311,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -311,7 +311,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
httpData
.
add
(
"name"
,
preParam
.
getStoreName
());
httpData
.
add
(
"name"
,
preParam
.
getStoreName
());
httpData
.
add
(
"detail"
,
preParam
.
getSkuName
());
httpData
.
add
(
"detail"
,
preParam
.
getSkuName
());
httpData
.
add
(
"orderCode"
,
preParam
.
getOrderMasterCode
());
httpData
.
add
(
"orderCode"
,
preParam
.
getOrderMasterCode
());
httpData
.
add
(
"orderId"
,
preParam
.
getOrderIdList
());
httpData
.
add
(
"orderId"
,
preParam
.
getOrderIdList
()
.
substring
(
1
)
);
httpData
.
add
(
"clientIp"
,
CurrentUtil
.
getCliIpAddr
());
httpData
.
add
(
"clientIp"
,
CurrentUtil
.
getCliIpAddr
());
httpData
.
add
(
"notifyUrl"
,
synUrl
);
httpData
.
add
(
"notifyUrl"
,
synUrl
);
httpData
.
add
(
"createDate"
,
LocalDateTime
.
now
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
)));
httpData
.
add
(
"createDate"
,
LocalDateTime
.
now
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
)));
...
@@ -529,10 +529,10 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -529,10 +529,10 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
return
"fail"
;
//重复支付
return
"fail"
;
//重复支付
}
}
}
}
if
(
orderVo
.
getPriceActual
().
compareTo
(
syncOrderParam
.
getPrice
())
!=
0
)
{
//
if (orderVo.getPriceActual().compareTo(syncOrderParam.getPrice()) != 0) {
log
.
error
(
"订单号:"
+
syncOrderParam
.
getOrderCode
()
+
" 价格不符"
);
//
log.error("订单号:" + syncOrderParam.getOrderCode() + " 价格不符");
return
"fail"
;
//价格不符
//
return "fail";//价格不符
}
//
}
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
Object
[]>
sqlDataOrder
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlDataOrder
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlDataSku
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlDataSku
=
CollectionUtil
.
linkedListObjectArr
();
...
...
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