记得上下班打卡 | 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
69a2e9d3
Commit
69a2e9d3
authored
Dec 05, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂时 提交
parent
5224721a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
75 additions
and
4 deletions
+75
-4
GoblinOrderSkuVo.java
...com/liquidnet/service/goblin/dto/vo/GoblinOrderSkuVo.java
+18
-0
GoblinOrderSku.java
...a/com/liquidnet/service/goblin/entity/GoblinOrderSku.java
+21
-0
GoblinInnerZhengzaiController.java
...oblin/controller/Inner/GoblinInnerZhengzaiController.java
+18
-0
GoblinOrderUtils.java
...a/com/liquidnet/service/goblin/util/GoblinOrderUtils.java
+12
-4
GoblinOrderServiceImpl.java
...et/service/order/service/impl/GoblinOrderServiceImpl.java
+6
-0
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinOrderSkuVo.java
View file @
69a2e9d3
...
@@ -67,6 +67,18 @@ public class GoblinOrderSkuVo implements Serializable, Cloneable {
...
@@ -67,6 +67,18 @@ public class GoblinOrderSkuVo implements Serializable, Cloneable {
@ApiModelProperty
(
value
=
"核销时间"
)
@ApiModelProperty
(
value
=
"核销时间"
)
private
String
pushTime
;
private
String
pushTime
;
@ApiModelProperty
(
value
=
"erp-spuNo"
)
private
String
spuErpCode
;
@ApiModelProperty
(
value
=
"erp-skuNo"
)
private
String
skuErpCode
;
@ApiModelProperty
(
value
=
"ERP类型[wangdian-旺店通]"
)
private
String
erpType
;
@ApiModelProperty
(
value
=
"erp-仓库号"
)
private
String
erpWarehouseNo
;
@ApiModelProperty
(
value
=
"仓库编号"
)
private
String
warehouseNo
;
public
String
getPushTime
()
{
public
String
getPushTime
()
{
return
pushTime
==
null
?
""
:
pushTime
;
return
pushTime
==
null
?
""
:
pushTime
;
}
}
...
@@ -89,6 +101,12 @@ public class GoblinOrderSkuVo implements Serializable, Cloneable {
...
@@ -89,6 +101,12 @@ public class GoblinOrderSkuVo implements Serializable, Cloneable {
this
.
setSkuSpecs
(
source
.
getSkuSpecs
());
this
.
setSkuSpecs
(
source
.
getSkuSpecs
());
this
.
setPriceModify
(
source
.
getPriceModify
());
this
.
setPriceModify
(
source
.
getPriceModify
());
this
.
setPriceVoucher
(
source
.
getPriceVoucher
());
this
.
setPriceVoucher
(
source
.
getPriceVoucher
());
this
.
setSpuErpCode
(
source
.
getSpuErpCode
());
this
.
setSkuErpCode
(
source
.
getSkuErpCode
());
this
.
setErpType
(
source
.
getErpType
());
this
.
setErpWarehouseNo
(
source
.
getErpWarehouseNo
());
this
.
setCreatedAt
(
source
.
getCreatedAt
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
)));
this
.
setCreatedAt
(
source
.
getCreatedAt
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
)));
return
this
;
return
this
;
}
}
...
...
liquidnet-bus-do/liquidnet-service-goblin-do/src/main/java/com/liquidnet/service/goblin/entity/GoblinOrderSku.java
View file @
69a2e9d3
...
@@ -125,6 +125,27 @@ public class GoblinOrderSku implements Serializable,Cloneable {
...
@@ -125,6 +125,27 @@ public class GoblinOrderSku implements Serializable,Cloneable {
*/
*/
private
BigDecimal
cateRate
;
private
BigDecimal
cateRate
;
/**
* spu ERP 编号
*/
private
String
spuErpCode
;
/**
* sku ERP 编号
*/
private
String
skuErpCode
;
/**
* ERP类型[wangdian-旺店通]
*/
private
String
erpType
;
/**
* ERP 仓库号
*/
private
String
erpWarehouseNo
;
private
LocalDateTime
createdAt
;
private
LocalDateTime
createdAt
;
private
LocalDateTime
updatedAt
;
private
LocalDateTime
updatedAt
;
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/Inner/GoblinInnerZhengzaiController.java
View file @
69a2e9d3
package
com
.
liquidnet
.
service
.
goblin
.
controller
.
Inner
;
package
com
.
liquidnet
.
service
.
goblin
.
controller
.
Inner
;
import
com.alibaba.fastjson.JSON
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.erp.param.TradeListParam
;
import
com.liquidnet.service.goblin.dto.manage.GoblinStoreZhengzaiCommonParam
;
import
com.liquidnet.service.goblin.dto.manage.GoblinStoreZhengzaiCommonParam
;
import
com.liquidnet.service.goblin.dto.vo.*
;
import
com.liquidnet.service.goblin.dto.vo.*
;
import
com.liquidnet.service.goblin.service.manage.IGoblinConsumerService
;
import
com.liquidnet.service.goblin.service.manage.IGoblinConsumerService
;
import
com.liquidnet.service.goblin.service.manage.IGoblinInnerService
;
import
com.liquidnet.service.goblin.service.manage.IGoblinInnerService
;
import
com.liquidnet.service.goblin.service.manage.IGoblinZhengzaiService
;
import
com.liquidnet.service.goblin.service.manage.IGoblinZhengzaiService
;
import
com.liquidnet.service.goblin.util.GoblinOrderUtils
;
import
io.swagger.annotations.*
;
import
io.swagger.annotations.*
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -131,4 +134,19 @@ public class GoblinInnerZhengzaiController {
...
@@ -131,4 +134,19 @@ public class GoblinInnerZhengzaiController {
public
ResponseDto
<
Boolean
>
consumerType34
(
String
finalSkuId
,
Integer
finalType
,
String
xlsPath
,
String
oXlsPath
,
String
listId
)
{
public
ResponseDto
<
Boolean
>
consumerType34
(
String
finalSkuId
,
Integer
finalType
,
String
xlsPath
,
String
oXlsPath
,
String
listId
)
{
return
goblinConsumerService
.
consumerType34
(
finalSkuId
,
finalType
,
xlsPath
,
oXlsPath
,
listId
);
return
goblinConsumerService
.
consumerType34
(
finalSkuId
,
finalType
,
xlsPath
,
oXlsPath
,
listId
);
}
}
@Autowired
GoblinOrderUtils
goblinOrderUtils
;
@PostMapping
(
"test112233"
)
@ApiOperation
(
"测试11"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"orderId"
,
value
=
"orderId"
),
})
public
ResponseDto
<
Boolean
>
test112233
(
String
orderId
)
{
List
<
TradeListParam
>
aa
=
goblinOrderUtils
.
getErpOrder
(
orderId
);
log
.
info
(
"data = "
+
JSON
.
toJSONString
(
aa
));
return
ResponseDto
.
success
();
}
}
}
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinOrderUtils.java
View file @
69a2e9d3
...
@@ -135,6 +135,7 @@ public class GoblinOrderUtils {
...
@@ -135,6 +135,7 @@ public class GoblinOrderUtils {
GoblinStoreOrderVo
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
GoblinStoreOrderVo
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
List
<
String
>
orderSkuIds
=
orderVo
.
getOrderSkuVoIds
();
List
<
String
>
orderSkuIds
=
orderVo
.
getOrderSkuVoIds
();
List
<
OrderListParam
>
listOrderSku
=
ObjectUtil
.
orderListParam
();
List
<
OrderListParam
>
listOrderSku
=
ObjectUtil
.
orderListParam
();
String
warehouseNo
=
""
;
//配置sku维度数据
//配置sku维度数据
for
(
String
orderSkuId
:
orderSkuIds
)
{
for
(
String
orderSkuId
:
orderSkuIds
)
{
OrderListParam
orderSkuParam
=
OrderListParam
.
getNew
();
OrderListParam
orderSkuParam
=
OrderListParam
.
getNew
();
...
@@ -146,12 +147,19 @@ public class GoblinOrderUtils {
...
@@ -146,12 +147,19 @@ public class GoblinOrderUtils {
orderSkuParam
.
setRefund_status
(
0
);
orderSkuParam
.
setRefund_status
(
0
);
orderSkuParam
.
setGoods_id
(
orderSkuVo
.
getSpuId
());
orderSkuParam
.
setGoods_id
(
orderSkuVo
.
getSpuId
());
orderSkuParam
.
setSpec_id
(
orderSkuVo
.
getSkuId
());
orderSkuParam
.
setSpec_id
(
orderSkuVo
.
getSkuId
());
// orderSkuParam.setGoods_no();
// orderSkuParam.setGoods_no(orderSkuVo.getSpuErpCode());
// orderSkuParam.setSpec_no();
// orderSkuParam.setSpec_no(orderSkuVo.getSkuErpCode());
orderSkuParam
.
setGoods_no
(
"mdsk01"
);
orderSkuParam
.
setSpec_no
(
"mdsk01"
);
orderSkuParam
.
setGoods_name
(
orderSkuVo
.
getSpuName
());
orderSkuParam
.
setGoods_name
(
orderSkuVo
.
getSpuName
());
orderSkuParam
.
setAdjust_amount
(
BigDecimal
.
ZERO
);
orderSkuParam
.
setAdjust_amount
(
BigDecimal
.
ZERO
);
// orderSkuParam.setDiscount(
);
orderSkuParam
.
setDiscount
(
BigDecimal
.
ZERO
);
orderSkuParam
.
setShare_discount
(
orderSkuVo
.
getPriceVoucher
());
orderSkuParam
.
setShare_discount
(
orderSkuVo
.
getPriceVoucher
());
warehouseNo
=
orderSkuVo
.
getWarehouseNo
();
log
.
info
(
"sku = "
+
orderSkuParam
);
listOrderSku
.
add
(
orderSkuParam
);
listOrderSku
.
add
(
orderSkuParam
);
}
}
//配置订单维度数据
//配置订单维度数据
...
@@ -181,7 +189,7 @@ public class GoblinOrderUtils {
...
@@ -181,7 +189,7 @@ public class GoblinOrderUtils {
tradeListParam
.
setExt_cod_fee
(
BigDecimal
.
ZERO
);
tradeListParam
.
setExt_cod_fee
(
BigDecimal
.
ZERO
);
tradeListParam
.
setOther_amount
(
BigDecimal
.
ZERO
);
tradeListParam
.
setOther_amount
(
BigDecimal
.
ZERO
);
tradeListParam
.
setPaid
(
orderVo
.
getPriceActual
());
tradeListParam
.
setPaid
(
orderVo
.
getPriceActual
());
// tradeListParam.setWarehouse_no(
);
tradeListParam
.
setWarehouse_no
(
warehouseNo
);
listOrder
.
add
(
tradeListParam
);
listOrder
.
add
(
tradeListParam
);
return
listOrder
;
return
listOrder
;
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/GoblinOrderServiceImpl.java
View file @
69a2e9d3
...
@@ -287,6 +287,12 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -287,6 +287,12 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
orderSku
.
setSkuPriceActual
(
price
);
orderSku
.
setSkuPriceActual
(
price
);
orderSku
.
setSkuName
(
skuVo
.
getName
());
orderSku
.
setSkuName
(
skuVo
.
getName
());
orderSku
.
setSkuNo
(
skuVo
.
getSkuNo
());
orderSku
.
setSkuNo
(
skuVo
.
getSkuNo
());
orderSku
.
setSpuErpCode
(
spuVo
.
getSpuErpCode
());
orderSku
.
setSkuErpCode
(
skuVo
.
getSkuErpCode
());
orderSku
.
setErpType
(
spuVo
.
getSpuErpCode
());
orderSku
.
setErpWarehouseNo
(
spuVo
.
getSpuErpCode
());
orderSku
.
setSkuImage
(
skuVo
.
getSkuPic
());
orderSku
.
setSkuImage
(
skuVo
.
getSkuPic
());
orderSku
.
setSkuSpecs
(
JSON
.
toJSONString
(
skuVo
.
getSkuSpecList
()));
orderSku
.
setSkuSpecs
(
JSON
.
toJSONString
(
skuVo
.
getSkuSpecList
()));
orderSku
.
setPriceVoucher
(
BigDecimal
.
ZERO
);
orderSku
.
setPriceVoucher
(
BigDecimal
.
ZERO
);
...
...
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