|
@@ -29,7 +29,8 @@ public class SurgeryArrangementService {
|
|
|
private final RedisLikeService redis;
|
|
|
private final SendWxInfoService sendWxInfoService;
|
|
|
private static final String[] OP_RECORD_COLUMNS = {"room_code", "op_datetime", "remark",
|
|
|
- "arrangement_executed", "urgent_clinic_flag", "preoperative_visit", "preoperative_preparation"};
|
|
|
+ "arrangement_executed", "urgent_clinic_flag", "preoperative_visit",
|
|
|
+ "preoperative_preparation", "tw_flag", "sstc"};
|
|
|
|
|
|
public SurgeryArrangementService(SurgeryArrangementDao dao, RedisLikeService redis, SendWxInfoService sendWxInfoService) {
|
|
|
this.dao = dao;
|
|
@@ -109,6 +110,9 @@ public class SurgeryArrangementService {
|
|
|
public ResultVo<String> updateArrangement(Integer recordId, String column, String value) {
|
|
|
if (hasArrangementPermission()) {
|
|
|
String table = isOpRecordColumn(column) ? "op_record" : "op_record_join";
|
|
|
+ if (value.isEmpty()) {
|
|
|
+ value = null;
|
|
|
+ }
|
|
|
dao.updateArrangement(table, column, value, recordId);
|
|
|
return ResultVoUtil.success();
|
|
|
}
|