Commit e6f532e7 by zhiwj

修改bug

parent 4b0b99fa
......@@ -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);
}
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment