医生常用语模板维护->后端接口优化,页面开发;检查方法,部位新增编辑按钮。

This commit is contained in:
2025-12-23 10:56:38 +08:00
parent 25b3c26ec2
commit 0a4de15599
5 changed files with 120 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ import com.openhis.template.domain.DoctorPhrase;
public interface IDoctorPhraseAppService {
R<?> getDoctorPhraseList();
R<?> searchDoctorPhraseList(String phraseType);
R<?> searchDoctorPhraseList(String phraseName ,String phraseType);
R<?> addDoctorPhrase(DoctorPhrase doctorPhrase);

View File

@@ -24,14 +24,14 @@ public class DoctorPhraesAppServiceImpl implements IDoctorPhraseAppService {
}
@Override
public R<?> searchDoctorPhraseList(String phraseType) {
public R<?> searchDoctorPhraseList(String phraseName,String phraseType) {
//1.数据校验
if (phraseType == null || phraseType.equals("")) {
return R.fail("模板类型不能为空");
}
//2.查询
LambdaQueryWrapper<DoctorPhrase> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(DoctorPhrase::getPhraseType, phraseType);
wrapper.eq(DoctorPhrase::getPhraseName, phraseName).eq(DoctorPhrase::getPhraseType, phraseType);
List<DoctorPhrase> list = doctorPhraseService.list(wrapper);
return R.ok(list);
}

View File

@@ -34,9 +34,10 @@ public class DoctorPhraseController {
*/
@GetMapping("/search")
public R<?> searchDoctorPhraseList(
@RequestParam(required = false) String phraseType
@RequestParam(required = false) String phraseType,
@RequestParam(required = false) String phraseName
){
return R.ok(doctorPhraseAppService.searchDoctorPhraseList(phraseType));
return R.ok(doctorPhraseAppService.searchDoctorPhraseList(phraseName,phraseType));
}
/**