87 门诊医生站-》增加医生常用语维护界面
医生常用语这个实体类继承了基类HisBaseEntity,使用里面的delete_flag的字段进行逻辑删除,保留了enable_flag字段,方便后续实现启用和禁用的功能
This commit is contained in:
@@ -89,4 +89,13 @@ public class DoctorScheduleController {
|
||||
return R.ok(doctorScheduleAppService.getTodayDoctorScheduleList());
|
||||
}
|
||||
|
||||
/*
|
||||
* 获取当前登录医生今日排班List
|
||||
*
|
||||
* */
|
||||
@GetMapping("/today-my-schedule")
|
||||
public R<?> getTodayMySchedule() {
|
||||
return doctorScheduleAppService.getTodayMySchedule();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user