Commit e0468c1e by huluobin

bug fix

parent bcc4b899
...@@ -96,7 +96,7 @@ public interface ScheduleManageService extends IService<ScheduleManage> { ...@@ -96,7 +96,7 @@ public interface ScheduleManageService extends IService<ScheduleManage> {
* @param cmd * @param cmd
* @return * @return
*/ */
void updateSchedule(UpdateScheduleCommand cmd); void updateSchedule(SubmitScheduleCommand cmd);
/** /**
* 更新预约前检查 * 更新预约前检查
......
...@@ -96,7 +96,7 @@ public class ScheduleManageController { ...@@ -96,7 +96,7 @@ public class ScheduleManageController {
@ApiOperation("用户更新预约") @ApiOperation("用户更新预约")
@PostMapping("/customer/schedule/updateSchedule") @PostMapping("/customer/schedule/updateSchedule")
public JsonResult<Void> updateSchedule(@RequestHeader String token, public JsonResult<Void> updateSchedule(@RequestHeader String token,
@RequestBody UpdateScheduleCommand cmd) { @RequestBody SubmitScheduleCommand cmd) {
Integer currentCustomerId = Optional.ofNullable(gogirlTokenService.getByToken(token).getCustomerId()) Integer currentCustomerId = Optional.ofNullable(gogirlTokenService.getByToken(token).getCustomerId())
.orElseThrow(() -> new RRException(500, "token不存在")); .orElseThrow(() -> new RRException(500, "token不存在"));
...@@ -191,7 +191,7 @@ public class ScheduleManageController { ...@@ -191,7 +191,7 @@ public class ScheduleManageController {
@ApiOperation("更新预约") @ApiOperation("更新预约")
@PostMapping("/technician/schedule/updateSchedule") @PostMapping("/technician/schedule/updateSchedule")
public JsonResult<Void> updateSchedule(@RequestBody UpdateScheduleCommand cmd) { public JsonResult<Void> updateSchedule(@RequestBody SubmitScheduleCommand cmd) {
scheduleManageService.updateSchedule(cmd); scheduleManageService.updateSchedule(cmd);
return JsonResult.success(); return JsonResult.success();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment