分组添加门店
This commit is contained in:
@ -29,4 +29,7 @@ public class MemberGroupBaseVO {
|
|||||||
@Schema(description = "管理员Id", example = "1")
|
@Schema(description = "管理员Id", example = "1")
|
||||||
private Long userId;
|
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;
|
boolean isInRange = startToNow.isZero() ||!startToNow.isNegative() && startToNow.compareTo(startToEnd) <= 0;
|
||||||
if(isInRange){
|
if(isInRange){
|
||||||
String msg = String.format("购买失败,请在%s-%s之间购买", start, end);
|
throw exception(new ErrorCode(1_007_904_009, "请明天购买"));
|
||||||
throw exception(new ErrorCode(1_007_904_009, msg));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,4 +45,9 @@ public class MemberGroupDO extends BaseDO {
|
|||||||
* 用户id
|
* 用户id
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 食堂Id
|
||||||
|
*/
|
||||||
|
private Long carteenId;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user