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
4b0b99fa
Commit
4b0b99fa
authored
Apr 10, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
37eeb05f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
EvaluateOutApiServiceImpl.java
...valuate/service/outer/impl/EvaluateOutApiServiceImpl.java
+11
-1
No files found.
gic-evaluate-service/src/main/java/com/gic/evaluate/service/outer/impl/EvaluateOutApiServiceImpl.java
View file @
4b0b99fa
...
...
@@ -90,6 +90,7 @@ public class EvaluateOutApiServiceImpl implements EvaluateOutApiService {
if
(
overLimitTime
(
evaluateOrderConfig
,
orderListDetailDTO
.
getOrderDTO
().
getReceiptsTime
()))
{
return
EnterpriseServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"已超越评价期限,无法评价"
);
}
List
<
OrderGoodsDTO
>
dtoList
=
EntityUtil
.
changeEntityListByJSON
(
OrderGoodsDTO
.
class
,
orderListDetailDTO
.
getOrderItemList
());
evaluateDTO
.
setGoodsInfo
(
JSON
.
toJSONString
(
dtoList
));
StoreDTO
storeDTO
=
storeApiService
.
getStoreById
(
evaluateDTO
.
getEnterpriseId
(),
Integer
.
valueOf
(
orderListDetailDTO
.
getOrderDTO
().
getStoreIdOffline
())).
getResult
();
...
...
@@ -435,7 +436,16 @@ public class EvaluateOutApiServiceImpl implements EvaluateOutApiService {
resultMap
.
put
(
statusQO
.
getOrderId
(),
OrderReplyEnum
.
REPLY_OVER_MAX_TIMES
.
getCode
());
}
else
{
//追评没有超过次数
resultMap
.
put
(
statusQO
.
getOrderId
(),
evaluate
.
getReplyStatus
());
if
(
Constants
.
OPEN
.
equals
(
evaluateOrderConfig
.
getBadEvaluateTag
())
&&
Constants
.
OPEN
.
equals
(
evaluate
.
getMaliciousStatus
()))
{
// 恶意评价
if
(
evaluateOrderConfig
.
getBadEvaluateTagType
()
==
-
1
||
DateUtil
.
compareDate
(
DateUtil
.
addNumForHour
(
evaluate
.
getMaliciousStatusTime
(),
evaluateOrderConfig
.
getBadEvaluateTagType
()),
new
Date
()))
{
// 不能评价
resultMap
.
put
(
statusQO
.
getOrderId
(),
OrderReplyEnum
.
REPLY_OVER_MAX_TIMES
.
getCode
());
}
}
else
{
resultMap
.
put
(
statusQO
.
getOrderId
(),
evaluate
.
getReplyStatus
());
}
}
}
}
else
{
...
...
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