多语言-BusiStatus整合
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
package com.xuanyin.flowteam.service;
|
||||
|
||||
import com.accompany.common.exception.ApiException;
|
||||
import com.accompany.core.exception.AdminServiceException;
|
||||
import com.accompany.common.utils.StringUtils;
|
||||
import com.xuanyin.flowteam.constant.FlowTeamConstant;
|
||||
import com.xuanyin.flowteam.model.FlowTeamInfo;
|
||||
@@ -19,7 +19,6 @@ import com.xuanyin.flowteam.model.FlowTeamMemberInviteCode;
|
||||
import com.xuanyin.flowteam.model.FlowTeamMemberInviteUser;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@@ -63,7 +62,7 @@ public class FlowTeamMemberInviteUserBizService {
|
||||
if (FlowTeamConstant.UserSourceType.SELF == source){
|
||||
return;
|
||||
}
|
||||
throw new ApiException("請輸入正確的邀請碼");
|
||||
throw new AdminServiceException("請輸入正確的邀請碼");
|
||||
}
|
||||
Long memberId = flowTeamMemberInviteCode.getMemberId();
|
||||
FlowTeamMember flowTeamMember = flowTeamMemberService.getById(memberId);
|
||||
|
@@ -76,7 +76,7 @@ public class FlowTeamSettlementInfoServiceImpl extends ServiceImpl<FlowTeamSettl
|
||||
String cacheKey = RedisKey.flow_team_settlement_init_lock.getKey(teamId);
|
||||
String lockKey = jedisLockService.lock(cacheKey, 3000, 10 * 1000);
|
||||
if (StringUtils.isBlank(lockKey)) {
|
||||
throw new ServiceException(BusiStatus.SERVER_BUSY);
|
||||
throw new ServiceException(BusiStatus.SERVERBUSY);
|
||||
}
|
||||
try {
|
||||
info = getByTeamIdAndMonth(teamId, lastMonth);
|
||||
|
Reference in New Issue
Block a user