update===>:修改排班查询。
This commit is contained in:
parent
4789e33f2a
commit
0c21bd9e3a
@ -25,7 +25,7 @@ public class AppletSchedulePlanController extends BaseController {
|
||||
@Resource
|
||||
private ISchedulePlanDetailService planDetailService;
|
||||
|
||||
@ApiOperation("通过排班计划查询明细")
|
||||
@ApiOperation("查询医生排班明细")
|
||||
@GetMapping("/getList")
|
||||
public R<List<SchedulePlanDetail>> getList(SchedulePlanDetail planDetail) {
|
||||
List<SchedulePlanDetail> list = planDetailService.getList(planDetail);
|
||||
|
||||
@ -33,7 +33,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
public class VideoConsultationController {
|
||||
|
||||
@Value("${trtc.sdkappid}")
|
||||
private String sdkappid;
|
||||
private Long sdkappid;
|
||||
@Value("${trtc.secretid}")
|
||||
private String secretid;
|
||||
@Value("${trtc.secretkey}")
|
||||
@ -44,7 +44,7 @@ public class VideoConsultationController {
|
||||
@ApiOperation("获取userSig")
|
||||
@GetMapping("getUserSig/{userId}")
|
||||
public R<String> getUserSig(@PathVariable String userId) {
|
||||
TLSSigAPIv2 sigAPIv2 = new TLSSigAPIv2(1600003294, "6b8b57a7eedb92b6646d1c81bd68681ab924e53b52069cd20b0f53c8e3801a18");
|
||||
TLSSigAPIv2 sigAPIv2 = new TLSSigAPIv2(sdkappid, secretkey);
|
||||
String userSig = sigAPIv2.genUserSig(userId, 36000);
|
||||
return R.ok(userSig);
|
||||
}
|
||||
|
||||
@ -1,16 +1,20 @@
|
||||
package com.xinelu.manage.domain.scheduleplandetail;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
import lombok.Data;
|
||||
import org.springframework.data.annotation.Transient;
|
||||
|
||||
/**
|
||||
* 医生排班计划明细表
|
||||
* @TableName schedule_plan_detail
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("医生排班计划明细表")
|
||||
public class SchedulePlanDetail implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
@ -20,46 +24,61 @@ public class SchedulePlanDetail implements Serializable {
|
||||
/**
|
||||
* 排班计划主键
|
||||
*/
|
||||
@ApiModelProperty("排班计划主键")
|
||||
private Long schedulePlanId;
|
||||
|
||||
/**
|
||||
* 医生主键
|
||||
*/
|
||||
@ApiModelProperty("医生主键")
|
||||
private Long doctorId;
|
||||
|
||||
/**
|
||||
* 医生姓名
|
||||
*/
|
||||
@ApiModelProperty("医生姓名")
|
||||
private String doctorName;
|
||||
|
||||
/**
|
||||
* 排班日期
|
||||
*/
|
||||
@ApiModelProperty("排班日期")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private LocalDate scheduleDate;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@ApiModelProperty("开始时间")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "HH:mm")
|
||||
private LocalTime scheduleStartTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@ApiModelProperty("结束时间")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "HH:mm")
|
||||
private LocalTime scheduleEndTime;
|
||||
|
||||
/**
|
||||
* 预约状态(0:未预约,1:已预约)
|
||||
*/
|
||||
@ApiModelProperty("预约状态(0:未预约,1:已预约)")
|
||||
private String applyState;
|
||||
|
||||
/**
|
||||
* 启用状态(0启用 1停用)
|
||||
*/
|
||||
@ApiModelProperty("启用状态(0:可预约 1:不可预约)")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 是否查询当前时间之后的时间
|
||||
*/
|
||||
@ApiModelProperty("是否查询当前时间之后的时间,0:否,1:是")
|
||||
@Transient
|
||||
private Integer after;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@ -136,6 +136,15 @@
|
||||
<if test="scheduleDate != null">
|
||||
and schedule_date = #{scheduleDate,jdbcType=DATE}
|
||||
</if>
|
||||
<if test="scheduleStartTime != null">
|
||||
and DATE_FORMAT(schedule_start_time, '%H%i') <= DATE_FORMAT(#{scheduleStartTime}, '%H%i')
|
||||
</if>
|
||||
<if test="scheduleEndTime != null">
|
||||
and DATE_FORMAT(schedule_end_time, '%H%i') >= DATE_FORMAT(#{scheduleEndTime}, '%H%i')
|
||||
</if>
|
||||
<if test="after != null">
|
||||
and DATE_FORMAT(schedule_end_time, '%H%i') < DATE_FORMAT(now(), '%H%i')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user