1.修改返回参数

main
862857010@qq.com 2 years ago
parent 1fee8b0264
commit c7fd2a9c88
  1. 3
      src/main/java/com/cjy/back/ybsjAppointment/entity/vo/AppletsAppointmentListVO.java
  2. 5
      src/main/java/com/cjy/back/ybsjAppointment/service/impl/YbsjyAppointmentSettingServiceImpl.java

@ -7,6 +7,7 @@ import com.fasterxml.jackson.annotation.JsonInclude;
* @createDate 2023/7/26
*/
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public class AppletsAppointmentListVO {
//预约时间段的id
@ -16,7 +17,7 @@ public class AppletsAppointmentListVO {
private String endTime;
//已预约数量
private int reservedQuantity;
//可预约数量
//可预约数量(设置的预约总数)
private int reservableQuantity;
public Long getAppointmentTimeInfoId() {

@ -205,10 +205,9 @@ public class YbsjyAppointmentSettingServiceImpl implements YbsjyAppointmentSetti
item.setReservedQuantity(ybsjyAppointmentSettingMapper.getAppointmentCount(item.getAppointmentTimeInfoId(),date));
});
//第二步通过通过规则id获取到时间段列表
HashMap<String, Object> resultMap = new HashMap<>();
resultMap.put("data", list);
return ServerResponse.createBySuccess(resultMap);
return ServerResponse.createBySuccess(list);
}
/**

Loading…
Cancel
Save