revert 去除变片编号生成器,修改地区选择器,修改报告卡的样式。
This commit is contained in:
2026-03-16 15:48:17 +08:00
parent b43688e483
commit 28f85ceb05
5 changed files with 181 additions and 402 deletions

View File

@@ -127,4 +127,12 @@ public interface IDoctorStationDiagnosisAppService {
* @return 结果
*/
R<?> saveInfectiousDiseaseReport(InfectiousDiseaseReportDto infectiousDiseaseReportDto);
/**
* 获取下一个传染病报告卡编号
*
* @param orgCode 医疗机构编码
* @return 卡片编号
*/
R<?> getNextCardNo(String orgCode);
}

View File

@@ -621,4 +621,27 @@ public class DoctorStationDiagnosisAppServiceImpl implements IDoctorStationDiagn
return R.fail(MessageUtils.createMessage(PromptMsgConstant.Common.M00004, new Object[] {"传染病报告卡"}));
}
}
/**
* 获取下一个传染病报告卡编号
* 编号规则:医疗机构编码 + 年月日 + 4位流水号
* 示例123456202603060001
*
* @param orgCode 医疗机构编码
* @return 卡片编号
*/
@Override
public R<?> getNextCardNo(String orgCode) {
// 参数校验
if (orgCode == null || orgCode.trim().isEmpty()) {
orgCode = "0000";
}
// 使用 AssignSeqUtil 生成每日递增的流水号
// 前缀为医疗机构编码每天从0001开始
String cardNo = assignSeqUtil.getSeqByDay(orgCode, 4);
log.debug("生成传染病报告卡编号: {}", cardNo);
return R.ok(cardNo);
}
}

View File

@@ -217,4 +217,15 @@ public class DoctorStationDiagnosisController {
return iDoctorStationDiagnosisAppService.saveInfectiousDiseaseReport(infectiousDiseaseReportDto);
}
/**
* 获取下一个传染病报告卡编号
*
* @param orgCode 医疗机构编码
* @return 卡片编号
*/
@GetMapping("/next-card-no")
public R<?> getNextCardNo(@RequestParam(value = "orgCode", required = false) String orgCode) {
return iDoctorStationDiagnosisAppService.getNextCardNo(orgCode);
}
}