分组添加门店
This commit is contained in:
@ -29,4 +29,7 @@ public class MemberGroupBaseVO {
|
||||
@Schema(description = "管理员Id", example = "1")
|
||||
private Long userId;
|
||||
|
||||
@Schema(description = "食堂Id", example = "1")
|
||||
private Long carteenId;
|
||||
|
||||
}
|
||||
|
@ -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, "请明天购买"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -45,4 +45,9 @@ public class MemberGroupDO extends BaseDO {
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 食堂Id
|
||||
*/
|
||||
private Long carteenId;
|
||||
}
|
||||
|
Reference in New Issue
Block a user