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
order-group-application
order-group
Commits
d03b5b86
Commit
d03b5b86
authored
Jun 21, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配送券展示
Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent
71489756
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
order-application-service/src/main/java/cn/freemud/entities/dto/activity/ActivityRequestCommon.java
+4
-0
order-application-service/src/main/java/cn/freemud/service/impl/EvaluationServiceImpl.java
+5
-3
No files found.
order-application-service/src/main/java/cn/freemud/entities/dto/activity/ActivityRequestCommon.java
View file @
d03b5b86
package
cn
.
freemud
.
entities
.
dto
.
activity
;
package
cn
.
freemud
.
entities
.
dto
.
activity
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
/**
* @author : xh.Z
* @author : xh.Z
...
@@ -9,6 +11,8 @@ import lombok.Data;
...
@@ -9,6 +11,8 @@ import lombok.Data;
* @description :
* @description :
*/
*/
@Data
@Data
@NoArgsConstructor
@AllArgsConstructor
public
class
ActivityRequestCommon
{
public
class
ActivityRequestCommon
{
//订单号
//订单号
...
...
order-application-service/src/main/java/cn/freemud/service/impl/EvaluationServiceImpl.java
View file @
d03b5b86
...
@@ -126,7 +126,7 @@ public class EvaluationServiceImpl implements EvaluationService {
...
@@ -126,7 +126,7 @@ public class EvaluationServiceImpl implements EvaluationService {
}
}
CheckAndJoinRequest
requestCommon
=
getCheckAndJoinRequest
(
data
,
sessionId
,
orderId
,
activityId
);
CheckAndJoinRequest
requestCommon
=
getCheckAndJoinRequest
(
data
,
sessionId
,
orderId
,
activityId
);
BaseResponse
<
CheckAndJoinResponse
>
checkAndJoin
=
activityApplicationClient
.
checkAndJoin
(
requestCommon
);
BaseResponse
<
CheckAndJoinResponse
>
checkAndJoin
=
activityApplicationClient
.
checkAndJoin
(
requestCommon
);
LogUtil
.
info
(
"请求活动-评价有礼"
,
requestCommon
,
checkAndJoin
);
//
LogUtil.info("请求活动-评价有礼",requestCommon, checkAndJoin);
if
(
checkAndJoin
!=
null
if
(
checkAndJoin
!=
null
&&
checkAndJoin
.
getCode
().
equals
(
ResponseResult
.
SUCCESS
.
getCode
()))
{
&&
checkAndJoin
.
getCode
().
equals
(
ResponseResult
.
SUCCESS
.
getCode
()))
{
return
checkAndJoin
.
getResult
();
return
checkAndJoin
.
getResult
();
...
@@ -219,14 +219,16 @@ public class EvaluationServiceImpl implements EvaluationService {
...
@@ -219,14 +219,16 @@ public class EvaluationServiceImpl implements EvaluationService {
OrderEvaluationStatus
orderEvaluationStatus
=
new
OrderEvaluationStatus
(
1
);
OrderEvaluationStatus
orderEvaluationStatus
=
new
OrderEvaluationStatus
(
1
);
List
<
AssortmentOrderEvaluation
>
orderEvaluationListAmount
=
assortmentEvaluationManager
.
getOrderEvaluationDetailsByOrderId
(
request
.
getOrderId
());
List
<
AssortmentOrderEvaluation
>
orderEvaluationListAmount
=
assortmentEvaluationManager
.
getOrderEvaluationDetailsByOrderId
(
request
.
getOrderId
());
CheckAndJoinResponse
checkAndJoinMsg
;
if
(
orderEvaluationListAmount
!=
null
&&
orderEvaluationListAmount
.
size
()
>
0
)
{
if
(
orderEvaluationListAmount
!=
null
&&
orderEvaluationListAmount
.
size
()
>
0
)
{
// 获取 评价有礼活动
// 获取 评价有礼活动
AssortmentOrderEvaluation
assortmentOrderEvaluation
=
orderEvaluationListAmount
.
get
(
0
);
AssortmentOrderEvaluation
assortmentOrderEvaluation
=
orderEvaluationListAmount
.
get
(
0
);
CheckAndJoinResponse
checkAndJoinMsg
=
getCheckAndJoinMsg
(
orderDetailResponse
.
getData
(),
request
.
getSessionId
(),
assortmentOrderEvaluation
.
getOrderId
(),
assortmentOrderEvaluation
.
getActivityId
());
checkAndJoinMsg
=
getCheckAndJoinMsg
(
orderDetailResponse
.
getData
(),
request
.
getSessionId
(),
assortmentOrderEvaluation
.
getOrderId
(),
assortmentOrderEvaluation
.
getActivityId
());
orderEvaluationStatus
.
setResult
(
checkAndJoinMsg
);
}
else
{
}
else
{
orderEvaluationStatus
.
setStatus
(
2
);
orderEvaluationStatus
.
setStatus
(
2
);
checkAndJoinMsg
=
getCheckAndJoinMsg
(
orderDetailResponse
.
getData
(),
request
.
getSessionId
(),
request
.
getOrderId
(),
null
);
}
}
orderEvaluationStatus
.
setResult
(
checkAndJoinMsg
);
return
ResponseUtil
.
success
(
orderEvaluationStatus
);
return
ResponseUtil
.
success
(
orderEvaluationStatus
);
}
}
...
...
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