分组添加门店

This commit is contained in:
zt
2024-12-13 09:24:45 +08:00
parent 7acf7c7b30
commit 5239e5e018
3 changed files with 9 additions and 2 deletions

View File

@ -29,4 +29,7 @@ public class MemberGroupBaseVO {
@Schema(description = "管理员Id", example = "1")
private Long userId;
@Schema(description = "食堂Id", example = "1")
private Long carteenId;
}

View File

@ -155,8 +155,7 @@ public class AppStoreOrderController {
boolean isInRange = startToNow.isZero() ||!startToNow.isNegative() && startToNow.compareTo(startToEnd) <= 0;
if(isInRange){
String msg = String.format("购买失败,请在%s-%s之间购买", start, end);
throw exception(new ErrorCode(1_007_904_009, msg));
throw exception(new ErrorCode(1_007_904_009, "请明天购买"));
}
}

View File

@ -45,4 +45,9 @@ public class MemberGroupDO extends BaseDO {
* 用户id
*/
private Long userId;
/**
* 食堂Id
*/
private Long carteenId;
}