fix(#726): guanyu (文件合入)

This commit is contained in:
2026-06-15 06:06:05 +08:00
committed by 华佗
parent 575e4d6c12
commit 60c84b5a8c
2 changed files with 7 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
# HealthLink-HIS 代码模块索引
> 供 LLM 快速定位代码。每个模块列出 Controller → Service → Mapper 关键文件。
> 最后更新: 2026-06-15 00:00 (298 个 Controller)
> 最后更新: 2026-06-15 06:00 (298 个 Controller)
## 关键词 → 模块速查

View File

@@ -72,6 +72,12 @@ public class PathologyController {
@PostMapping("/order/add")
@Transactional(rollbackFor = Exception.class)
public R<?> addOrder(@RequestBody PathologyOrder order) {
if (order.getPatientId() == null) {
return R.fail("患者ID不能为空");
}
if (!StringUtils.hasText(order.getPatientName())) {
return R.fail("患者姓名不能为空");
}
if (!StringUtils.hasText(order.getOrderStatus())) {
order.setOrderStatus("PENDING");
}