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
e6f532e7
Commit
e6f532e7
authored
Apr 10, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
4b0b99fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletions
+24
-1
ProblemOutApiService.java
...n/java/com/gic/evaluate/service/ProblemOutApiService.java
+11
-0
ProblemOutApiServiceImpl.java
...evaluate/service/outer/impl/ProblemOutApiServiceImpl.java
+13
-1
No files found.
gic-evaluate-api/src/main/java/com/gic/evaluate/service/ProblemOutApiService.java
View file @
e6f532e7
...
...
@@ -67,4 +67,15 @@ public interface ProblemOutApiService {
* @throws
*/
ServiceResponse
<
Void
>
endProblem
(
Integer
problemId
);
/**
* 判断会员能不能进行投诉
* @Title: ensure
* @Description:
* @author zhiwj
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Boolean>
* @throws
*/
ServiceResponse
<
Void
>
ensure
(
Integer
enterpriseId
,
Long
ecuId
);
}
gic-evaluate-service/src/main/java/com/gic/evaluate/service/outer/impl/ProblemOutApiServiceImpl.java
View file @
e6f532e7
...
...
@@ -170,5 +170,16 @@ public class ProblemOutApiServiceImpl implements ProblemOutApiService {
return
EnterpriseServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
Void
>
ensure
(
Integer
enterpriseId
,
Long
ecuId
)
{
TabEvaluateOrderConfig
evaluateOrderConfig
=
evaluateOrderConfigService
.
getEvaluateOrderConfig
(
enterpriseId
);
if
(
Constants
.
CLOSE
.
equals
(
evaluateOrderConfig
.
getBadSuggestionTag
()))
{
return
EnterpriseServiceResponse
.
success
();
}
boolean
b
=
problemService
.
hasMaliciousStatusByEcuIdBeforeHours
(
ecuId
,
evaluateOrderConfig
.
getBadSuggestionTagType
());
if
(
b
)
{
return
EnterpriseServiceResponse
.
failure
(
ErrorCode
.
OPERATION_FAILED
.
getCode
(),
"已被标记为恶意投诉,暂不可投诉"
);
}
return
EnterpriseServiceResponse
.
success
();
}
}
\ No newline at end of file
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