TASK: 全局异常处理,代码优化,测试数据库连接信息变更;
This commit is contained in:
@@ -142,7 +142,7 @@ public class LibraryModelPointServiceImpl extends ServiceImpl<LibraryModelPointM
|
||||
queryWrapper.lambda().eq(LibraryModelPoint::getModelType, modelType);
|
||||
queryWrapper.lambda().last("limit 1");
|
||||
List<LibraryModelPoint> libraryModelPoints = baseMapper.selectList(queryWrapper);
|
||||
if (CollectionUtil.isNotEmpty(libraryModelPoints)) {
|
||||
if (CollectionUtil.isEmpty(libraryModelPoints)) {
|
||||
throw new BusinessException("modelPoint.not.find");
|
||||
}
|
||||
return libraryModelPoints.get(0);
|
||||
|
||||
@@ -12,6 +12,13 @@ error.login.type=Error login type!
|
||||
the.verification.code.has.expired=The verification code has expired!
|
||||
verification.code.error=Verification code error!
|
||||
user.has.bound.mailbox=User has bound mailbox!
|
||||
get.moodBoards.data.is.mismatch=Get moodBoards data is mismatch!
|
||||
get.printBoards.data.is.mismatch=Get printBoards data is mismatch!
|
||||
get.sketchBoards.data.is.mismatch=Get sketchBoards data is mismatch!
|
||||
the.number.of.PIN.top.or.bottom.or.outerwear.sketchBoard.cannot.be.more.than.8=The number of PIN top or bottom or outerwear sketchBoard cannot be more than 8!
|
||||
modelPoint.not.find=ModelPoint not find!
|
||||
attributeRetrieval.interface.exception=AttributeRetrieval interface exception, please try again later! If still failed after trying again please contact administrator!
|
||||
design.interface.exception=Design interface exception, please try again later! If still failed after trying again please contact administrator!
|
||||
|
||||
# 前端传参校验
|
||||
singleOverall.cannot.be.empty=SingleOverall cannot be empty!
|
||||
@@ -25,3 +32,13 @@ timeZone.cannot.be.empty=TimeZone cannot be empty!
|
||||
userId.cannot.be.empty=UserId cannot be empty!
|
||||
email.cannot.be.empty=Email cannot be empty!
|
||||
operationType.cannot.be.empty=OperationType cannot be empty!
|
||||
password.cannot.be.empty=Password cannot be empty!
|
||||
emailVerifyCode.cannot.be.empty=EmailVerifyCode cannot be empty!
|
||||
loginType.cannot.be.empty=LoginType cannot be empty!
|
||||
userName.cannot.be.empty=UserName cannot be empty!
|
||||
operationType.cannot.be.empty=OperationType cannot be empty!
|
||||
sketchBoards.designType.cannot.be.empty=SketchBoards designType cannot be empty!
|
||||
moodBoards.designType.cannot.be.empty=MoodBoards designType cannot be empty!
|
||||
printBoards.designType.cannot.be.empty=PrintBoards designType cannot be empty!
|
||||
unknown.parameter.singleOverall=Unknown parameter singleOverall!
|
||||
unknown.parameter.switchCategory=Unknown parameter switchCategory!
|
||||
Reference in New Issue
Block a user