Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-evaluate
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-evaluate
Commits
53a3b1ae
Commit
53a3b1ae
authored
Apr 03, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
6e200ba6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
EvaluateOutApiServiceImpl.java
...valuate/service/outer/impl/EvaluateOutApiServiceImpl.java
+9
-1
No files found.
gic-evaluate-service/src/main/java/com/gic/evaluate/service/outer/impl/EvaluateOutApiServiceImpl.java
View file @
53a3b1ae
...
...
@@ -225,7 +225,6 @@ public class EvaluateOutApiServiceImpl implements EvaluateOutApiService {
if
(
acuDetailResponse
.
isSuccess
()
||
acuDetailResponse
.
getResult
()
!=
null
)
{
memberReplyDTO
.
setMemberImgUrl
(
acuDetailResponse
.
getResult
().
getHeadUrl
());
}
}
// 保存追评
...
...
@@ -341,6 +340,12 @@ public class EvaluateOutApiServiceImpl implements EvaluateOutApiService {
return
EnterpriseServiceResponse
.
success
(
resultPage
);
}
private
boolean
overEvaluateTime
(
TabEvaluateOrderConfig
evaluateOrderConfig
,
Date
receiptsDate
)
{
GregorianCalendar
calendar
=
new
GregorianCalendar
();
calendar
.
setTime
(
receiptsDate
);
calendar
.
add
(
Calendar
.
DAY_OF_MONTH
,
evaluateOrderConfig
.
getEvaluateLimitday
());
return
DateUtil
.
compareDate
(
new
Date
(),
calendar
.
getTime
());
}
private
boolean
overLimitTime
(
TabEvaluateOrderConfig
evaluateOrderConfig
,
Date
receiptsDate
)
{
GregorianCalendar
calendar
=
new
GregorianCalendar
();
...
...
@@ -391,6 +396,7 @@ public class EvaluateOutApiServiceImpl implements EvaluateOutApiService {
OrderListDetailDTO
orderListDetailDTO
=
orderApiService
.
getOrderDetail
(
enterpriseId
,
statusQO
.
getOrderId
(),
statusQO
.
getMemberId
()).
getResult
();
if
(
orderListDetailDTO
!=
null
)
{
// 判断是否超过评价时间
if
(
overLimitTime
(
evaluateOrderConfig
,
orderListDetailDTO
.
getOrderDTO
().
getReceiptsTime
()))
{
// 超过评价时间
...
...
@@ -399,6 +405,8 @@ public class EvaluateOutApiServiceImpl implements EvaluateOutApiService {
}
else
{
resultMap
.
put
(
statusQO
.
getOrderId
(),
OrderReplyEnum
.
EVALUATE_HAS_OVERDUE
.
getCode
());
}
}
else
if
(
overEvaluateTime
(
evaluateOrderConfig
,
orderListDetailDTO
.
getOrderDTO
().
getReceiptsTime
()))
{
resultMap
.
put
(
statusQO
.
getOrderId
(),
OrderReplyEnum
.
REPLIED
.
getCode
());
}
else
{
// 没有超过评价时间
if
(
evaluate
!=
null
)
{
...
...
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