去除变片编号生成器,修改地区选择器,修改报告卡的样式。
This commit is contained in:
@@ -127,12 +127,4 @@ public interface IDoctorStationDiagnosisAppService {
|
||||
* @return 结果
|
||||
*/
|
||||
R<?> saveInfectiousDiseaseReport(InfectiousDiseaseReportDto infectiousDiseaseReportDto);
|
||||
|
||||
/**
|
||||
* 获取下一个传染病报告卡编号
|
||||
*
|
||||
* @param orgCode 医疗机构编码
|
||||
* @return 卡片编号
|
||||
*/
|
||||
R<?> getNextCardNo(String orgCode);
|
||||
}
|
||||
|
||||
@@ -621,27 +621,4 @@ 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);
|
||||
}
|
||||
}
|
||||
@@ -217,15 +217,4 @@ 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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user