记得上下班打卡 | 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
cc290cf3
Commit
cc290cf3
authored
Dec 09, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单维度增加 erpHosting
parent
34ac0687
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
GoblinStoreOrderVo.java
...m/liquidnet/service/goblin/dto/vo/GoblinStoreOrderVo.java
+6
-1
GoblinOrderServiceImpl.java
...et/service/order/service/impl/GoblinOrderServiceImpl.java
+5
-1
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinStoreOrderVo.java
View file @
cc290cf3
package
com
.
liquidnet
.
service
.
goblin
.
dto
.
vo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.liquidnet.service.goblin.entity.GoblinOrderAttr
;
import
com.liquidnet.service.goblin.entity.GoblinStoreOrder
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -21,6 +22,7 @@ import java.util.List;
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
GoblinStoreOrderVo
implements
Serializable
,
Cloneable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -127,6 +129,8 @@ public class GoblinStoreOrderVo implements Serializable, Cloneable {
private
String
mixName
;
@ApiModelProperty
(
value
=
"核销时间"
)
private
String
pushTime
;
@ApiModelProperty
(
value
=
"ERP托管[0-否|1-是],默认0"
)
private
Integer
erpHosting
;
public
String
getPushTime
()
{
return
pushTime
==
null
?
""
:
pushTime
;
...
...
@@ -155,7 +159,7 @@ public class GoblinStoreOrderVo implements Serializable, Cloneable {
}
public
GoblinStoreOrderVo
copy
(
GoblinStoreOrder
source
)
{
public
GoblinStoreOrderVo
copy
(
GoblinStoreOrder
source
,
int
erpHosting
)
{
if
(
null
==
source
)
return
this
;
this
.
setOrderId
(
source
.
getOrderId
());
this
.
setStoreId
(
source
.
getStoreId
());
...
...
@@ -202,6 +206,7 @@ public class GoblinStoreOrderVo implements Serializable, Cloneable {
this
.
setMarketId
(
source
.
getMarketId
());
// this.setRandomKey(source.getrad());
this
.
setCreatedAt
(
source
.
getCreatedAt
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
)));
this
.
setErpHosting
(
erpHosting
);
return
this
;
}
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/GoblinOrderServiceImpl.java
View file @
cc290cf3
...
...
@@ -537,6 +537,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
for
(
GoblinOrderSqlParam
item
:
sqlParams
)
{
List
<
String
>
goblinOrderSkuIdList
=
CollectionUtil
.
linkedListString
();
BigDecimal
restVoucherPrice
=
item
.
getStoreOrder
().
getPriceVoucher
();
int
erpHosting
=
0
;
for
(
int
i
=
0
;
i
<
item
.
getOrderSkuList
().
size
();
i
++)
{
GoblinOrderSku
orderSku
=
item
.
getOrderSkuList
().
get
(
i
);
if
(
item
.
getStoreOrder
().
getPriceVoucher
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
...
...
@@ -593,6 +594,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
}
}
}
if
(
erpHosting
==
0
){
erpHosting
=
orderSku
.
getErpHosting
();
}
sqlDataSku
.
add
(
new
Object
[]{
orderSku
.
getOrderSkuId
(),
orderSku
.
getOrderId
(),
orderSku
.
getSpuId
(),
orderSku
.
getSpuName
(),
orderSku
.
getSpuPic
(),
orderSku
.
getSkuId
(),
orderSku
.
getNum
(),
orderSku
.
getSkuPrice
(),
orderSku
.
getSkuPriceActual
(),
orderSku
.
getSkuName
(),
orderSku
.
getSkuNo
(),
orderSku
.
getSkuImage
(),
orderSku
.
getSkuSpecs
(),
orderSku
.
getPriceVoucher
(),
orderSku
.
getSpuErpCode
(),
orderSku
.
getSkuErpCode
(),
orderSku
.
getErpType
(),
orderSku
.
getErpWarehouseNo
(),
orderSku
.
getErpHosting
(),
orderSku
.
getCreatedAt
()
...
...
@@ -615,7 +619,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
orderAttr
.
getOrderAttrId
(),
orderAttr
.
getOrderId
(),
orderAttr
.
getExpressContacts
(),
orderAttr
.
getExpressAddress
(),
orderAttr
.
getExpressAddressDetail
(),
orderAttr
.
getExpressPhone
(),
orderAttr
.
getExpressType
(),
orderAttr
.
getCreatedAt
()
});
//订单vo
GoblinStoreOrderVo
orderVo
=
GoblinStoreOrderVo
.
getNew
().
copy
(
storeOrder
);
GoblinStoreOrderVo
orderVo
=
GoblinStoreOrderVo
.
getNew
().
copy
(
storeOrder
,
erpHosting
);
//订单attr vo
GoblinOrderAttrVo
orderAttrVo
=
GoblinOrderAttrVo
.
getNew
().
copy
(
orderAttr
);
...
...
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