288 门诊医生站-》诊断TAB页面:新增诊断点【保存诊断】报错“保存诊断失败,请稍后重试”
289 手术管理-》门诊手术安排:新增手术安排点击【保存】报错提示“新增手术安排失败,请检查表单信息” 298 检查项目设置-》套餐设置:新增个人套餐【保存】报错。
This commit is contained in:
@@ -128,7 +128,10 @@ public class CheckPackageAppServiceImpl implements ICheckPackageAppService {
|
||||
// 保存套餐明细
|
||||
if (checkPackageDto.getItems() != null && !checkPackageDto.getItems().isEmpty()) {
|
||||
List<CheckPackageDetail> details = convertToDetails(checkPackageDto.getItems(), checkPackage.getId(), 1);
|
||||
checkPackageDetailService.saveBatch(details);
|
||||
boolean detailSaveResult = checkPackageDetailService.saveBatch(details);
|
||||
if (!detailSaveResult) {
|
||||
throw new RuntimeException("保存套餐明细失败");
|
||||
}
|
||||
}
|
||||
|
||||
return R.ok(checkPackage.getId(), "保存成功");
|
||||
|
||||
@@ -413,10 +413,10 @@ public class SurgicalScheduleAppServiceImpl implements ISurgicalScheduleAppServi
|
||||
/**
|
||||
* 格式化安排时间
|
||||
*/
|
||||
private String formatScheduleDate(LocalDate scheduleDate) {
|
||||
private String formatScheduleDate(LocalDateTime scheduleDate) {
|
||||
if (scheduleDate == null) return "";
|
||||
|
||||
// 格式化为 yyyy-MM-dd
|
||||
return scheduleDate.format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd"));
|
||||
// 格式化为 yyyy-MM-dd HH:mm:ss
|
||||
return scheduleDate.format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,9 +45,10 @@ public class OpCreateScheduleDto {
|
||||
private String postoperativeDiagnosis;
|
||||
|
||||
/**
|
||||
* 手术安排日期
|
||||
* 手术安排日期时间
|
||||
*/
|
||||
private LocalDate scheduleDate;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime scheduleDate;
|
||||
|
||||
/**
|
||||
* 手术台次序号
|
||||
@@ -82,11 +83,13 @@ public class OpCreateScheduleDto {
|
||||
/**
|
||||
* 入院时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime admissionTime;
|
||||
|
||||
/**
|
||||
* 入手术室时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime entryTime;
|
||||
|
||||
/**
|
||||
@@ -167,21 +170,25 @@ public class OpCreateScheduleDto {
|
||||
/**
|
||||
* 手术开始时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime startTime;
|
||||
|
||||
/**
|
||||
* 手术结束时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime endTime;
|
||||
|
||||
/**
|
||||
* 麻醉开始时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime anesStart;
|
||||
|
||||
/**
|
||||
* 麻醉结束时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime anesEnd;
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,6 +42,7 @@ public class CheckPackageDetail {
|
||||
private String dose;
|
||||
|
||||
/** 途径 */
|
||||
@TableField("\"method\"")
|
||||
private String method;
|
||||
|
||||
/** 频次 */
|
||||
@@ -54,6 +55,7 @@ public class CheckPackageDetail {
|
||||
private Integer quantity;
|
||||
|
||||
/** 单位 */
|
||||
@TableField("\"unit\"")
|
||||
private String unit;
|
||||
|
||||
/** 单价 */
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.openhis.surgicalschedule.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
@@ -52,9 +51,10 @@ public class OpSchedule extends HisBaseEntity {
|
||||
@TableField(value = "postoperative_diagnosis", insertStrategy = FieldStrategy.IGNORED)
|
||||
private String postoperativeDiagnosis;
|
||||
|
||||
/** 手术安排日期 */
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate scheduleDate;
|
||||
/** 手术安排日期时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime scheduleDate;
|
||||
|
||||
/** 手术台次序号 */
|
||||
private Integer sequenceNo;
|
||||
|
||||
Reference in New Issue
Block a user