This commit is contained in:
liuhongrui
2025-03-17 15:39:30 +08:00
parent 245a4424bb
commit 73c506b4bf
3 changed files with 6 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package com.openhis.web.patientmanage.appservice;
import java.util.List;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.core.common.core.domain.R;
import com.openhis.web.patientmanage.dto.OutpatientRecordDto;
import com.openhis.web.patientmanage.dto.OutpatientRecordSearchParam;
@@ -30,5 +31,5 @@ public interface IOutpatientRecordService {
*
* @return 医生名字列表
*/
List<String> getDoctorNames();
R<?> getDoctorNames();
}

View File

@@ -4,6 +4,7 @@ import java.util.List;
import javax.annotation.Resource;
import com.core.common.core.domain.R;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@@ -63,8 +64,8 @@ public class OutpatientRecordServiceImpl implements IOutpatientRecordService {
*
* @return 医生名字列表
*/
public List<String> getDoctorNames() {
return patientManageMapper.getDoctorNames();
public R<?> getDoctorNames() {
return R.ok(patientManageMapper.getDoctorNames());
}
}

View File

@@ -36,7 +36,7 @@ public class OutpatientRecordController {
@GetMapping("/init")
public R<?> getDoctorNames() {
// 获取医生名字列表
return R.ok(outpatientRecordService.getDoctorNames());
return outpatientRecordService.getDoctorNames();
}
/**