Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jenkins
order-group
Commits
6593f257
Commit
6593f257
authored
Dec 17, 2019
by
dingkai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商城订单列表
parent
34be4d11
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
7 deletions
+26
-7
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+6
-3
order-application-service/src/main/java/cn/freemud/controller/OrderController.java
+1
-1
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderVo.java
+2
-2
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+17
-1
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
6593f257
...
@@ -27,6 +27,7 @@ import cn.freemud.entities.vo.*;
...
@@ -27,6 +27,7 @@ import cn.freemud.entities.vo.*;
import
cn.freemud.entities.vo.encircle.PreviewOrderInfoVo
;
import
cn.freemud.entities.vo.encircle.PreviewOrderInfoVo
;
import
cn.freemud.enums.ActivityTypeEnum
;
import
cn.freemud.enums.ActivityTypeEnum
;
import
cn.freemud.enums.*
;
import
cn.freemud.enums.*
;
import
cn.freemud.enums.OrderChannelType
;
import
cn.freemud.enums.OrderSourceType
;
import
cn.freemud.enums.OrderSourceType
;
import
cn.freemud.enums.PayStatus
;
import
cn.freemud.enums.PayStatus
;
import
cn.freemud.enums.QueryOrderStatus
;
import
cn.freemud.enums.QueryOrderStatus
;
...
@@ -737,7 +738,7 @@ public class OrderAdapter {
...
@@ -737,7 +738,7 @@ public class OrderAdapter {
return
confirmOrderDto
;
return
confirmOrderDto
;
}
}
public
QueryOrdersDto
convent2QueryOrdersDto
(
QueryOrderDto
queryOrderDto
,
String
memberId
,
String
iAppId
)
{
public
QueryOrdersDto
convent2QueryOrdersDto
(
QueryOrderDto
queryOrderDto
,
String
memberId
,
String
channelType
)
{
QueryOrdersDto
queryOrdersDto
=
new
QueryOrdersDto
();
QueryOrdersDto
queryOrdersDto
=
new
QueryOrdersDto
();
queryOrdersDto
.
setUserId
(
memberId
);
queryOrdersDto
.
setUserId
(
memberId
);
queryOrdersDto
.
setCompanyId
(
queryOrderDto
.
getPartnerId
());
queryOrdersDto
.
setCompanyId
(
queryOrderDto
.
getPartnerId
());
...
@@ -746,8 +747,10 @@ public class OrderAdapter {
...
@@ -746,8 +747,10 @@ public class OrderAdapter {
queryOrdersDto
.
setStartDate
(
queryOrderDto
.
getStartDate
());
queryOrdersDto
.
setStartDate
(
queryOrderDto
.
getStartDate
());
queryOrdersDto
.
setEndDate
(
queryOrderDto
.
getEndDate
());
queryOrdersDto
.
setEndDate
(
queryOrderDto
.
getEndDate
());
if
(
IappIdType
.
WC_XCX
.
getCode
().
equals
(
iAppId
))
{
if
(
OrderChannelType
.
IWC
.
getCode
().
equals
(
channelType
))
{
queryOrdersDto
.
setSource
(
new
String
[]{
"meals"
});
queryOrdersDto
.
setSource
(
new
String
[]{
"meals"
});
}
else
if
(
OrderChannelType
.
MALL
.
getCode
().
equals
(
channelType
))
{
queryOrdersDto
.
setSource
(
new
String
[]{
"mall"
});
}
else
{
}
else
{
queryOrdersDto
.
setSource
(
new
String
[]{
"saas"
});
queryOrdersDto
.
setSource
(
new
String
[]{
"saas"
});
}
}
...
@@ -772,7 +775,7 @@ public class OrderAdapter {
...
@@ -772,7 +775,7 @@ public class OrderAdapter {
queryOrdersDto
.
setRefundStatus
(
statuses
);
queryOrdersDto
.
setRefundStatus
(
statuses
);
}
}
}
}
if
(
IappIdType
.
WC_XCX
.
getCode
().
equals
(
iAppId
))
{
if
(
OrderChannelType
.
IWC
.
getCode
().
equals
(
channelType
)
||
OrderChannelType
.
MALL
.
getCode
().
equals
(
channelType
))
{
Integer
[]
statuses
=
new
Integer
[]{
OrderStatus
.
COMPLETE
.
getCode
(),
OrderStatus
.
CALCEL
.
getCode
()};
Integer
[]
statuses
=
new
Integer
[]{
OrderStatus
.
COMPLETE
.
getCode
(),
OrderStatus
.
CALCEL
.
getCode
()};
queryOrdersDto
.
setStatus
(
statuses
);
queryOrdersDto
.
setStatus
(
statuses
);
}
}
...
...
order-application-service/src/main/java/cn/freemud/controller/OrderController.java
View file @
6593f257
...
@@ -130,7 +130,7 @@ public class OrderController {
...
@@ -130,7 +130,7 @@ public class OrderController {
@ApiAnnotation
(
logMessage
=
"queryOrderById"
)
@ApiAnnotation
(
logMessage
=
"queryOrderById"
)
@PostMapping
(
"/queryOrderById"
)
@PostMapping
(
"/queryOrderById"
)
public
BaseResponse
queryOrderById
(
@Validated
@LogParams
@RequestBody
QueryOrderVo
queryOrderVo
)
{
public
BaseResponse
queryOrderById
(
@Validated
@LogParams
@RequestBody
QueryOrderVo
queryOrderVo
)
{
return
orderservice
.
queryOrderById
(
queryOrderVo
.
getOperation
(),
queryOrderVo
.
getSessionId
(),
queryOrderVo
.
getOid
(),
queryOrderVo
.
getPartnerId
(),
queryOrderVo
.
getChannel
());
return
orderservice
.
queryOrderById
(
queryOrderVo
.
getOperation
(),
queryOrderVo
.
getSessionId
(),
queryOrderVo
.
getOid
(),
queryOrderVo
.
getPartnerId
(),
queryOrderVo
.
getChannel
Type
());
}
}
/**
/**
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderVo.java
View file @
6593f257
...
@@ -55,8 +55,8 @@ public class QueryOrderVo {
...
@@ -55,8 +55,8 @@ public class QueryOrderVo {
private
String
endDate
;
private
String
endDate
;
/**
/**
* 渠道信息 1:saas 2:img 3:iwc
* 渠道信息 1:saas 2:img 3:iwc
;4:mall
*/
*/
private
String
channel
;
private
String
channel
Type
;
}
}
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
6593f257
...
@@ -661,7 +661,8 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -661,7 +661,8 @@ public class OrderServiceImpl implements Orderservice {
queryOrderDto
.
setPartnerId
(
queryOrderVo
.
getPartnerId
());
queryOrderDto
.
setPartnerId
(
queryOrderVo
.
getPartnerId
());
queryOrderDto
.
setStartDate
(
startDateStr
);
queryOrderDto
.
setStartDate
(
startDateStr
);
queryOrderDto
.
setEndDate
(
endDateStr
);
queryOrderDto
.
setEndDate
(
endDateStr
);
QueryOrdersDto
queryOrdersDto
=
orderAdapter
.
convent2QueryOrdersDto
(
queryOrderDto
,
userId
,
userLoginInfoDto
.
getIappId
());
String
channelType
=
this
.
getQueryOrderChannelType
(
queryOrderVo
,
userLoginInfoDto
);
QueryOrdersDto
queryOrdersDto
=
orderAdapter
.
convent2QueryOrdersDto
(
queryOrderDto
,
userId
,
channelType
);
QueryOrdersResponse
queryOrderResponse
;
QueryOrdersResponse
queryOrderResponse
;
try
{
try
{
QueryOrdersRequest
queryOrdersRequest2
=
new
QueryOrdersRequest
();
QueryOrdersRequest
queryOrdersRequest2
=
new
QueryOrdersRequest
();
...
@@ -2063,4 +2064,19 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -2063,4 +2064,19 @@ public class OrderServiceImpl implements Orderservice {
}
}
}
}
/**
* 历史判断围餐是从userLoginInfoDto判断iappid的。
* 商城订单从前端传channelType区分,
* 默认点餐
*/
private
String
getQueryOrderChannelType
(
QueryOrderVo
queryOrderVo
,
AssortmentCustomerInfoVo
userLoginInfoDto
)
{
String
channelType
=
OrderChannelType
.
SAAS
.
getCode
();
if
(
IappIdType
.
WC_XCX
.
getCode
().
equals
(
userLoginInfoDto
.
getIappId
()))
{
channelType
=
OrderChannelType
.
IWC
.
getCode
();
}
else
if
(
OrderChannelType
.
MALL
.
getCode
().
equals
(
queryOrderVo
.
getChannelType
()))
{
channelType
=
OrderChannelType
.
MALL
.
getCode
();
}
return
channelType
;
}
}
}
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