Pu Zhibing
2 天以前 6c3f781630bc0c559ceca1a69d4c9e7e33e5daf1
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/business/MerShopController.java
@@ -283,7 +283,7 @@
    @RequestMapping(value = "/cancelReservation", method = RequestMethod.POST)
    @ApiOperation(value = "商户取消预约【2.0】")
    public R cancelReservation(@RequestBody CancelReservationDto dto) {
        TShopAppointableTime shopAppointableTime = shopAppointableTimeService.getById(dto.getId());
        TShopAppointableTime shopAppointableTime = shopAppointableTimeService.getById(dto.getAppointmentId());
        if (null == shopAppointableTime) {
            return R.fail("预约不存在");
        }
@@ -291,7 +291,7 @@
            return R.fail("不能重复操作");
        }
        shopAppointableTime.setStatus(0);
        shopAppointableTime.setReason(dto.getReason());
        shopAppointableTime.setReason(dto.getCancelReason());
        shopAppointableTimeService.updateById(shopAppointableTime);
        return R.ok();
    }
@@ -306,6 +306,9 @@
            if (e.getIsDefault()==1){
                shop.setIsDefault(true);
            }
            if(null != shop && 1 == shop.getShopType()){
                shop.setModifyPricePermission(1);
            }
            return shop;
        }).collect(Collectors.toList());
        return R.ok(collect);