医生常用语模板维护->后端接口优化,页面开发;检查方法,部位新增编辑按钮。
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user