Commit f35f8ec5 by zhiwj

自动审批

parent 9c95442c
......@@ -29,8 +29,6 @@ import org.redisson.api.RBucket;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import java.util.Date;
import java.util.HashMap;
......@@ -124,7 +122,6 @@ public class RiskModeApiServiceImpl implements RiskModeApiService {
}
@Override
@Transactional(rollbackFor = Exception.class)
public ServiceResponse<Void> applyRiskMode(Integer enterpriseId, Integer userId, Integer duration, String applyReason) {
if (duration == null) {
return EnterpriseServiceResponse.failure(ErrorCode.PARAMETER_ERROR);
......@@ -164,9 +161,6 @@ public class RiskModeApiServiceImpl implements RiskModeApiService {
auditLogDTO.setExtraInfo(JSON.toJSONString(map));
auditLogDTO.setAuditType(AuditTypeEnum.RISK_MODE.getCode());
ServiceResponse<Void> serviceResponse = auditLogApiService.apply(auditLogDTO);
if (!serviceResponse.isSuccess()) {
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
}
return serviceResponse;
}
}
\ 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