87 门诊医生站-》增加医生常用语维护界面

医生常用语这个实体类继承了基类HisBaseEntity,使用里面的delete_flag的字段进行逻辑删除,保留了enable_flag字段,方便后续实现启用和禁用的功能
This commit is contained in:
HuangXinQuan
2026-02-11 14:56:13 +08:00
parent 517dc41f01
commit 50ceb98e83
4 changed files with 22 additions and 13 deletions

View File

@@ -89,4 +89,13 @@ public class DoctorScheduleController {
return R.ok(doctorScheduleAppService.getTodayDoctorScheduleList());
}
/*
* 获取当前登录医生今日排班List
*
* */
@GetMapping("/today-my-schedule")
public R<?> getTodayMySchedule() {
return doctorScheduleAppService.getTodayMySchedule();
}
}

View File

@@ -27,6 +27,8 @@ public List<DoctorPhrase> getDoctorPhraseList() {
log.debug("orgId: {}", orgId);
}
LambdaQueryWrapper<DoctorPhrase> wrapper = new LambdaQueryWrapper<>();
// 添加启用状态过滤,只查询未被逻辑删除的记录
wrapper.eq(DoctorPhrase::getEnableFlag, 1);
// 1. 获取当前登录用户信息
Long userId = SecurityUtils.getUserId();
@@ -68,6 +70,8 @@ public List<DoctorPhrase> getDoctorPhraseList() {
}
String finalDeptCode = deptCode;
LambdaQueryWrapper<DoctorPhrase> wrapper = new LambdaQueryWrapper<>();
// 添加启用状态过滤,只查询未被逻辑删除的记录
wrapper.eq(DoctorPhrase::getEnableFlag, 1);
if (phraseName !=null && ObjectUtil.isNotEmpty(phraseName)) {
wrapper.like(DoctorPhrase::getPhraseName, phraseName);
}
@@ -202,6 +206,8 @@ public List<DoctorPhrase> getDoctorPhraseList() {
throw new SecurityException("无权操作:您只能删除自己创建的常用语");
}
}
// 使用MyBatis-Plus的内置逻辑删除功能
return doctorPhraseService.removeById(doctorPhraseId);
}