预约判断

This commit is contained in:
2024-02-04 17:39:20 +08:00
parent 756ec7c7fc
commit 542585b1ca

View File

@@ -54,9 +54,9 @@ public class VegeCellarReserveOrderService extends MybatisBaseService<VegeCellar
public ResultBean submission(VegeCellarReserveOrderDto dto) {
ResultBean rb = new ResultBean().fail();
boolean b = isSatAndSun(dto.getReserveDate());
// if (!b) {
// return rb.setMsg("当前提货时间不可预约提货");
// }
if (!b) {
return rb.setMsg("当前提货时间不可预约提货");
}
Date date=new Date();
//1>2 1 、1<2 -1 、1=2 0
//判断预约时间小于当前时间