Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
haoban3.0
haoban-manage3.0
Commits
e9e83888
Commit
e9e83888
authored
Mar 08, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存
parent
70dbae66
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
11 deletions
+66
-11
pom.xml
haoban-manage3-wx/pom.xml
+5
-0
GicOrderController.java
...aoban/manage/web/controller/order/GicOrderController.java
+18
-1
GicOrderRefundController.java
...manage/web/controller/order/GicOrderRefundController.java
+16
-1
OrderListItemVO.java
...a/com/gic/haoban/manage/web/vo/order/OrderListItemVO.java
+26
-7
dubbo-haoban-manage-wx.xml
...ge3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
+1
-2
No files found.
haoban-manage3-wx/pom.xml
View file @
e9e83888
...
...
@@ -221,6 +221,11 @@
<artifactId>
gic-business-order-api
</artifactId>
<version>
${gic-business-order-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-store-goods-api
</artifactId>
<version>
${gic-store-goods-api}
</version>
</dependency>
</dependencies>
<build>
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/order/GicOrderController.java
View file @
e9e83888
...
...
@@ -64,6 +64,9 @@ import com.gic.integralmall.api.dto.IntegralMallExchangeLogDTO;
import
com.gic.integralmall.api.enums.IntegralMallExchangeLogStatusEnums
;
import
com.gic.integralmall.api.service.IntegralmallService
;
import
com.gic.integralmall.api.service.result.DubboResult
;
import
com.gic.store.goods.dto.stock.GoodsStockBaseQDTO
;
import
com.gic.store.goods.enums.ProductStockChannelType
;
import
com.gic.store.goods.service.ProductStockApiService
;
@RestController
@RequestMapping
(
"/order"
)
...
...
@@ -81,6 +84,8 @@ public class GicOrderController {
private
IntegralmallService
integralmallService
;
@Autowired
private
OrderVerificationRecordApiService
orderVerificationRecordApiService
;
@Autowired
private
ProductStockApiService
productStockApiService
;
// 发货订单列表 (0全部,待发货2+待收货3,部分发货7)
@RequestMapping
(
"list-order"
)
...
...
@@ -246,7 +251,7 @@ public class GicOrderController {
// 订单发货商品列表
@RequestMapping
(
"order-deliver-list"
)
public
RestResponse
<
Object
>
orderDeliverList
(
String
enterpriseId
,
String
orderId
)
{
public
RestResponse
<
Object
>
orderDeliverList
(
String
enterpriseId
,
String
storeId
,
String
orderId
)
{
QueryOrderDetailQDTO
qdto
=
new
QueryOrderDetailQDTO
();
qdto
.
setEnterpriseId
(
enterpriseId
);
qdto
.
setOrderId
(
orderId
);
...
...
@@ -256,6 +261,18 @@ public class GicOrderController {
for
(
ListOrderItemDTO
item
:
list
)
{
if
(
StringUtils
.
isEmpty
(
item
.
getLogisticsId
()))
{
OrderListItemVO
vo
=
EntityUtil
.
changeEntityNew
(
OrderListItemVO
.
class
,
item
);
GoodsStockBaseQDTO
stockQDTO
=
new
GoodsStockBaseQDTO
();
stockQDTO
.
setEnterpriseId
(
enterpriseId
);
stockQDTO
.
setGoodsId
(
vo
.
getMallProId
());
stockQDTO
.
setSkuId
(
vo
.
getMallProSkuId
());
stockQDTO
.
setStoreId
(
storeId
);
stockQDTO
.
setChannelType
(
ProductStockChannelType
.
MALL
.
getCode
());
ServiceResponse
<
Integer
>
stockResp
=
this
.
productStockApiService
.
queryGoodsStock
(
stockQDTO
);
if
(
stockResp
.
isSuccess
()
&&
null
!=
stockResp
.
getResult
())
{
vo
.
setStoreStock
(
stockResp
.
getResult
());
}
voList
.
add
(
vo
);
}
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/order/GicOrderRefundController.java
View file @
e9e83888
...
...
@@ -41,6 +41,9 @@ import com.gic.haoban.manage.web.vo.order.refund.OrderRefundConsultVO;
import
com.gic.haoban.manage.web.vo.order.refund.OrderRefundDetailVO
;
import
com.gic.haoban.manage.web.vo.order.refund.RefundAddressVO
;
import
com.gic.haoban.manage.web.vo.order.refund.SellerAddressVO
;
import
com.gic.store.goods.dto.stock.GoodsStockBaseQDTO
;
import
com.gic.store.goods.enums.ProductStockChannelType
;
import
com.gic.store.goods.service.ProductStockApiService
;
@RestController
@RequestMapping
(
"/refund"
)
...
...
@@ -54,6 +57,8 @@ public class GicOrderRefundController {
private
MallSellerAddressApiService
mallSellerAddressApiService
;
@Autowired
private
AfterSalesManageApiService
afterSalesManageApiService
;
@Autowired
private
ProductStockApiService
productStockApiService
;
/**
*
...
...
@@ -84,12 +89,22 @@ public class GicOrderRefundController {
// 换货-详情
@RequestMapping
(
value
=
"order-exchange-detail"
)
@ResponseBody
public
RestResponse
<
Object
>
exchangeDetail
(
String
orderExchangeId
)
{
public
RestResponse
<
Object
>
exchangeDetail
(
String
enterpriseId
,
String
storeId
,
String
orderExchangeId
)
{
ServiceResponse
<
OrderExchangeDetailDTO
>
resp
=
this
.
orderRefundApiService
.
exchangeDetail
(
orderExchangeId
);
OrderExchangeDetailVO
vo
=
EntityUtil
.
changeEntityNew
(
OrderExchangeDetailVO
.
class
,
resp
.
getResult
());
String
targetProSkuId
=
resp
.
getResult
().
getTargetProSkuId
();
// 查询库存
vo
.
setTargetProStock
(
1
);
GoodsStockBaseQDTO
qdto
=
new
GoodsStockBaseQDTO
();
qdto
.
setEnterpriseId
(
enterpriseId
);
qdto
.
setGoodsId
(
vo
.
getMallProId
());
qdto
.
setSkuId
(
targetProSkuId
);
qdto
.
setStoreId
(
storeId
);
qdto
.
setChannelType
(
ProductStockChannelType
.
MALL
.
getCode
());
ServiceResponse
<
Integer
>
stockResp
=
this
.
productStockApiService
.
queryGoodsStock
(
qdto
);
if
(
stockResp
.
isSuccess
()
&&
null
!=
stockResp
.
getResult
())
{
vo
.
setTargetProStock
(
stockResp
.
getResult
());
}
return
RestResponse
.
successResult
(
vo
);
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/vo/order/OrderListItemVO.java
View file @
e9e83888
...
...
@@ -14,7 +14,8 @@ public class OrderListItemVO implements Serializable {
* 订单项ID
*/
private
String
orderItemId
;
private
String
mallProId
;
/**
* 商城商品Name
*/
...
...
@@ -39,6 +40,8 @@ public class OrderListItemVO implements Serializable {
* 商城商品SKU属性信息展现用 JSON [{propID:xxx,propName:xxx,valueID:xxx,valueName:xxx},...]
*/
private
String
mallProSkuAttr
;
private
String
mallProSkuId
;
/**
* 商品编号
...
...
@@ -56,7 +59,7 @@ public class OrderListItemVO implements Serializable {
private
Double
payAmount
;
// 库存
private
int
stor
t
Stock
;
private
int
stor
e
Stock
;
// 物流ID
private
String
logisticsId
;
...
...
@@ -82,6 +85,22 @@ public class OrderListItemVO implements Serializable {
4、换货成功 */
private
int
afterSalesStatus
;
public
String
getMallProSkuId
()
{
return
mallProSkuId
;
}
public
void
setMallProSkuId
(
String
mallProSkuId
)
{
this
.
mallProSkuId
=
mallProSkuId
;
}
public
String
getMallProId
()
{
return
mallProId
;
}
public
void
setMallProId
(
String
mallProId
)
{
this
.
mallProId
=
mallProId
;
}
public
int
getAfterSalesStatus
()
{
return
afterSalesStatus
;
}
...
...
@@ -121,13 +140,13 @@ public class OrderListItemVO implements Serializable {
public
void
setLogisticsId
(
String
logisticsId
)
{
this
.
logisticsId
=
logisticsId
;
}
public
int
getStor
t
Stock
()
{
return
stor
t
Stock
;
public
int
getStor
e
Stock
()
{
return
stor
e
Stock
;
}
public
void
setStor
tStock
(
int
stort
Stock
)
{
this
.
stor
tStock
=
stort
Stock
;
public
void
setStor
eStock
(
int
store
Stock
)
{
this
.
stor
eStock
=
store
Stock
;
}
public
String
getOrderItemId
()
{
...
...
haoban-manage3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
View file @
e9e83888
...
...
@@ -131,7 +131,6 @@
<dubbo:reference
id=
"webOrderManageApiService"
interface=
"com.gic.business.order.service.ordermanage.WebOrderManageApiService"
timeout=
"100000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
id=
"afterSalesManageApiService"
interface=
"com.gic.business.order.api.service.order.AfterSalesManageApiService"
timeout=
"100000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
id=
"memberReferClerkApiService"
interface=
"com.gic.business.order.service.activity.MemberReferClerkApiService"
timeout=
"100000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
id=
"productStockApiService"
interface=
"com.gic.store.goods.service.ProductStockApiService"
timeout=
"100000"
retries=
"0"
check=
"false"
/>
</beans>
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