Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-car-boutique
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 956b60f4
authored
Aug 03, 2026
by
范富荣
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:新增区域经理查询/统计订单列表接口
1 parent
71894e25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
src/main/java/cn/com/glsx/dj/carboutique/controller/smartcarlife/GoodsOrderController.java
src/main/java/cn/com/glsx/dj/carboutique/controller/smartcarlife/GoodsOrderController.java
View file @
956b60f
...
@@ -69,6 +69,7 @@ import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderDTO;
...
@@ -69,6 +69,7 @@ import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderDTO;
import
cn.com.glsx.dj.smartcarlife.dto.GoodsOrderLiveQRCodeDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.GoodsOrderLiveQRCodeDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.GoodsOrderPerformanceDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.GoodsOrderPerformanceDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.GoodsOrderStatDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.GoodsOrderStatDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.GoodsOrderApplyStatDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.GoodsOrderUpdateDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.GoodsOrderUpdateDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.GoodsSubOrderDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.GoodsSubOrderDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.LifeCustomerCouponDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.LifeCustomerCouponDTO
;
...
@@ -262,6 +263,30 @@ public class GoodsOrderController {
...
@@ -262,6 +263,30 @@ public class GoodsOrderController {
return
RopResponse
.
result
(
RopErrorEnum
.
SCL_ORDER_SEARCH_FAILURE
);
return
RopResponse
.
result
(
RopErrorEnum
.
SCL_ORDER_SEARCH_FAILURE
);
}
}
@ServiceMethod
(
method
=
"dj.api.smartcarlife.order.search.containPackageGoods.byArea"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"区域经理-搜索订单(含套餐)"
)
public
RopResponse
<
RpcPagination
<
GoodsOrderDTO
>>
searchPackageByArea
(
SearchGoodsOrderRequest
request
)
{
RpcPagination
<
GoodsOrderDTO
>
pagination
=
new
RpcPagination
<>();
pagination
.
setPageNum
(
request
.
getPageNum
()
==
null
?
1
:
request
.
getPageNum
());
pagination
.
setPageSize
(
request
.
getPageSize
()
==
null
?
10
:
request
.
getPageSize
());
GoodsOrderDTO
condition
=
GoodsOrderDTOConvert
.
INSTANCE
.
fromSearchGoodsOrderRequest
(
request
);
condition
.
setYqMerchantIds
(
request
.
getSellerMerchantIds
());
condition
.
setOrderTypeList
(
Arrays
.
asList
(
OrderType
.
NORMAL
.
getValue
(),
OrderType
.
ABNORMAL
.
getValue
(),
OrderType
.
UNCOLLECTED
.
getValue
()));
condition
.
setMerchantIdList
(
Arrays
.
asList
(
request
.
getMerchantId
()));
//区域经理,只能查看自己负责的订单
condition
.
setAdvanceUserId
(
CommonUtil
.
getLoginUserInfo
().
getUuid
());
pagination
.
setCondition
(
condition
);
logger
.
info
(
"区域经理-搜索订单(含套餐)整合[{}]"
,
JSON
.
toJSONString
(
condition
));
RpcResponse
<
RpcPagination
<
GoodsOrderDTO
>>
res
=
goodsOrderRemote
.
listContainPackageGoodsOrderPage
(
pagination
);
if
(
res
.
hasResult
()){
return
RopResponse
.
success
(
res
.
getResult
());
}
else
{
logger
.
error
(
"区域经理-搜索订单失败,msg:{}"
,
res
.
getMessage
());
}
return
RopResponse
.
result
(
RopErrorEnum
.
SCL_ORDER_SEARCH_FAILURE
);
}
@ServiceMethod
(
method
=
"dj.api.smartcarlife.order.updateOrderStatus"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.api.smartcarlife.order.updateOrderStatus"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"修改订单状态为撤销"
)
@ApiOperation
(
"修改订单状态为撤销"
)
...
@@ -293,6 +318,20 @@ public class GoodsOrderController {
...
@@ -293,6 +318,20 @@ public class GoodsOrderController {
return
RopResponse
.
error
(
res
);
return
RopResponse
.
error
(
res
);
}
}
@ApiOperation
(
"根据审批状态统计订单数"
)
@ServiceMethod
(
method
=
"dj.api.smartcarlife.order.statByApplyStatus"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
GoodsOrderApplyStatDTO
>
statByApplyStatus
(
SearchGoodsOrderRequest
request
){
GoodsOrderDTO
goodsOrderDTO
=
GoodsOrderDTOConvert
.
INSTANCE
.
fromSearchGoodsOrderRequest
(
request
);
goodsOrderDTO
.
setYqMerchantIds
(
request
.
getSellerMerchantIds
());
goodsOrderDTO
.
setOrderTypeList
(
Arrays
.
asList
(
OrderType
.
NORMAL
.
getValue
(),
OrderType
.
ABNORMAL
.
getValue
(),
OrderType
.
UNCOLLECTED
.
getValue
()));
goodsOrderDTO
.
setMerchantIdList
(
Arrays
.
asList
(
request
.
getMerchantId
()));
//区域经理,只能查看自己负责的订单
goodsOrderDTO
.
setAdvanceUserId
(
CommonUtil
.
getLoginUserInfo
().
getUuid
());
RpcResponse
<
GoodsOrderApplyStatDTO
>
res
=
goodsOrderRemote
.
statByApplyStatus
(
goodsOrderDTO
);
return
CommonUtil
.
convertRopResponse
(
res
);
}
@ServiceMethod
(
method
=
"dj.api.smartcarlife.order.search.noLogin"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"dj.api.smartcarlife.order.search.noLogin"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"搜索订单"
)
@ApiOperation
(
"搜索订单"
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment