多语言-BusiStatus整合

This commit is contained in:
khalil
2024-04-10 16:10:21 +08:00
parent 3819931303
commit b9afd3fbe7
199 changed files with 704 additions and 8099 deletions

View File

@@ -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);

View File

@@ -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);