12.18
This commit is contained in:
parent
d81742c873
commit
d618f890a0
|
@ -4,13 +4,11 @@ import com.atjy.common.result.Result;
|
||||||
import com.atjy.web.app.service.AppointmentInfoService;
|
import com.atjy.web.app.service.AppointmentInfoService;
|
||||||
import com.atjy.web.app.vo.appointment.AppointmentInfoVo;
|
import com.atjy.web.app.vo.appointment.AppointmentInfoVo;
|
||||||
import com.atjy.web.app.vo.appointment.AppointmentOrderVo;
|
import com.atjy.web.app.vo.appointment.AppointmentOrderVo;
|
||||||
|
import com.atjy.web.app.vo.appointment.AppointmentSetOrderVo;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
@Tag(name = "预约信息")
|
@Tag(name = "预约信息")
|
||||||
@RestController
|
@RestController
|
||||||
|
@ -29,6 +27,13 @@ public class Appointment {
|
||||||
@Operation(summary = "获取预约订单")
|
@Operation(summary = "获取预约订单")
|
||||||
@PostMapping("getAppointmentOrderByIdAndTime")
|
@PostMapping("getAppointmentOrderByIdAndTime")
|
||||||
public Result<AppointmentOrderVo> getAppointmentOrderByIdAndTime(@RequestParam Long id, @RequestParam String date) {
|
public Result<AppointmentOrderVo> getAppointmentOrderByIdAndTime(@RequestParam Long id, @RequestParam String date) {
|
||||||
return Result.ok(service.getAppointmentOrderByIdAndTime(id,date));
|
return Result.ok(service.getAppointmentOrderByIdAndTime(id, date));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "生成预约订单")
|
||||||
|
@PostMapping("setAppointmentOrder")
|
||||||
|
public Result<AppointmentOrderVo> setAppointmentOrder(@RequestBody AppointmentSetOrderVo appointmentSetOrderVo) {
|
||||||
|
service.setAppointmentOrder(appointmentSetOrderVo);
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,13 @@ import com.atjy.common.result.Result;
|
||||||
import com.atjy.model.entity.AppointmentInfo;
|
import com.atjy.model.entity.AppointmentInfo;
|
||||||
import com.atjy.web.app.vo.appointment.AppointmentInfoVo;
|
import com.atjy.web.app.vo.appointment.AppointmentInfoVo;
|
||||||
import com.atjy.web.app.vo.appointment.AppointmentOrderVo;
|
import com.atjy.web.app.vo.appointment.AppointmentOrderVo;
|
||||||
|
import com.atjy.web.app.vo.appointment.AppointmentSetOrderVo;
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
public interface AppointmentInfoService extends IService<AppointmentInfo> {
|
public interface AppointmentInfoService extends IService<AppointmentInfo> {
|
||||||
AppointmentInfoVo getAppointmentByIdAndTime(Long id, String date);
|
AppointmentInfoVo getAppointmentByIdAndTime(Long id, String date);
|
||||||
|
|
||||||
AppointmentOrderVo getAppointmentOrderByIdAndTime(Long id, String date);
|
AppointmentOrderVo getAppointmentOrderByIdAndTime(Long id, String date);
|
||||||
|
|
||||||
|
void setAppointmentOrder(AppointmentSetOrderVo appointmentSetOrderVo);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
package com.atjy.web.app.service.impl;
|
package com.atjy.web.app.service.impl;
|
||||||
|
|
||||||
import com.atjy.common.login.LoginUser;
|
|
||||||
import com.atjy.common.login.LoginUserHolder;
|
import com.atjy.common.login.LoginUserHolder;
|
||||||
import com.atjy.model.entity.*;
|
import com.atjy.model.entity.*;
|
||||||
import com.atjy.web.app.controller.appointment.Appointment;
|
|
||||||
import com.atjy.web.app.mapper.*;
|
import com.atjy.web.app.mapper.*;
|
||||||
import com.atjy.web.app.service.AppointmentInfoService;
|
import com.atjy.web.app.service.AppointmentInfoService;
|
||||||
import com.atjy.web.app.vo.appointment.AppointmentInfoVo;
|
import com.atjy.web.app.vo.appointment.AppointmentInfoVo;
|
||||||
import com.atjy.web.app.vo.appointment.AppointmentOrderVo;
|
import com.atjy.web.app.vo.appointment.AppointmentOrderVo;
|
||||||
|
import com.atjy.web.app.vo.appointment.AppointmentSetOrderVo;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -84,4 +83,9 @@ public class AppointmentInfoServiceImpl extends ServiceImpl<AppointmentInfoMappe
|
||||||
|
|
||||||
return appointmentOrderVo;
|
return appointmentOrderVo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setAppointmentOrder(AppointmentSetOrderVo appointmentSetOrderVo) {
|
||||||
|
// todo
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.atjy.web.app.vo.appointment;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "接收预约信息实体")
|
||||||
|
public class AppointmentSetOrderVo {
|
||||||
|
|
||||||
|
@Schema(description = "医生id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "预约日期")
|
||||||
|
private String appointmentDate;
|
||||||
|
|
||||||
|
@Schema(description = "就诊人姓名")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "就诊人手机号")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String memo;
|
||||||
|
}
|
Loading…
Reference in New Issue