fix(doctorstation): 解决医嘱管理中的状态控制和数据处理问题

- 修复了已收费医嘱仍可被勾选的问题,添加了选择条件限制
- 实现了过滤已作废会诊医嘱的功能,防止无效数据展示
- 完善了医嘱删除逻辑,支持草稿、待签发和已作废状态的医嘱删除
- 修复了医嘱撤回功能中的大整数精度丢失问题
- 优化了签退医嘱的服务端处理逻辑,统一处理各种类型的医嘱作废
- 添加了详细的操作日志记录便于问题排查
- 修复了前端医嘱列表加载和操作过程中的数据类型转换问题
This commit is contained in:
2026-03-24 18:27:30 +08:00
parent 8fa0a239b5
commit c542b057b5
5 changed files with 125 additions and 44 deletions

View File

@@ -102,6 +102,13 @@ public interface IServiceRequestService extends IService<ServiceRequest> {
*/
void updateDraftStatusBatch(List<Long> serReqIdList);
/**
* 🔧 BugFix#219: 更新服务状态:已作废
*
* @param serReqIdList 请求id列表
*/
void updateCancelledStatusBatch(List<Long> serReqIdList);
/**
* 更新服务申请里的打印次数字段
*

View File

@@ -191,6 +191,18 @@ public class ServiceRequestServiceImpl extends ServiceImpl<ServiceRequestMapper,
.in(ServiceRequest::getId, serReqIdList));
}
/**
* 🔧 BugFix#219: 更新服务状态:已作废
*
* @param serReqIdList 请求id列表
*/
@Override
public void updateCancelledStatusBatch(List<Long> serReqIdList) {
baseMapper.update(null,
new LambdaUpdateWrapper<ServiceRequest>().set(ServiceRequest::getStatusEnum, RequestStatus.CANCELLED.getValue())
.in(ServiceRequest::getId, serReqIdList));
}
/**
* 更新服务申请里的打印次数字段
*