| | |
| | | import com.ruoyi.system.api.domain.dto.MerEditUserDto; |
| | | import com.ruoyi.system.api.domain.dto.MerPageDto; |
| | | import com.ruoyi.system.api.domain.poji.shop.Shop; |
| | | import com.ruoyi.system.api.domain.poji.shop.ShopAppointableTime; |
| | | import com.ruoyi.system.api.domain.poji.shop.ShopNonAppointableTime; |
| | | import com.ruoyi.system.api.domain.poji.shop.TShopAppointableTime; |
| | | import com.ruoyi.system.api.domain.vo.MerHomeShopTotalVo; |
| | | import com.ruoyi.system.api.domain.vo.MerStaffInfoVo; |
| | | import com.ruoyi.system.api.domain.vo.MgtSimpleShopVo; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.*; |
| | | import java.util.Comparator; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping(value = "/delShopNonAppointableTime/{id}", method = RequestMethod.POST) |
| | | @ApiOperation(value = "门店删除不可预约时间段【2.0】") |
| | | public R delShopNonAppointableTime(@PathVariable("id") String id) { |
| | | shopNonAppointableTimeService.removeById(id); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/switchAppointment/{shopId}/{subscribe}", method = RequestMethod.POST) |
| | | @ApiOperation(value = "开关门店预约配置【2.0】") |
| | | @ApiImplicitParams({ |
| | |
| | | @RequestMapping(value = "/confirmReservation/{id}", method = RequestMethod.POST) |
| | | @ApiOperation(value = "商户确认预约【2.0】") |
| | | public R confirmReservation(@PathVariable("id") String id) { |
| | | ShopAppointableTime shopAppointableTime = shopAppointableTimeService.getById(id); |
| | | TShopAppointableTime shopAppointableTime = shopAppointableTimeService.getById(id); |
| | | if (null == shopAppointableTime) { |
| | | return R.fail("预约不存在"); |
| | | } |
| | |
| | | @RequestMapping(value = "/cancelReservation", method = RequestMethod.POST) |
| | | @ApiOperation(value = "商户取消预约【2.0】") |
| | | public R cancelReservation(@RequestBody CancelReservationDto dto) { |
| | | ShopAppointableTime shopAppointableTime = shopAppointableTimeService.getById(dto.getId()); |
| | | TShopAppointableTime shopAppointableTime = shopAppointableTimeService.getById(dto.getId()); |
| | | if (null == shopAppointableTime) { |
| | | return R.fail("预约不存在"); |
| | | } |