|
|
@@ -6,7 +6,9 @@ import java.util.List;
|
|
|
import com.fs.common.utils.DateUtils;
|
|
|
import com.fs.common.utils.SecurityUtils;
|
|
|
import com.fs.common.utils.sign.Md5Utils;
|
|
|
+import com.fs.his.domain.FsDoctorPatient;
|
|
|
import com.fs.his.param.*;
|
|
|
+import com.fs.his.service.IFsDoctorPatientService;
|
|
|
import com.fs.his.utils.RedisCacheUtil;
|
|
|
import com.fs.his.vo.FsDoctorListVO;
|
|
|
import com.fs.his.vo.FsDoctorVO;
|
|
|
@@ -36,8 +38,12 @@ public class FsDoctorController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
|
private IFsDoctorService fsDoctorService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private RedisCacheUtil redisCacheUtil;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IFsDoctorPatientService fsDoctorPatientService;
|
|
|
/**
|
|
|
* 查询医生管理列表
|
|
|
*/
|
|
|
@@ -276,4 +282,34 @@ public class FsDoctorController extends BaseController
|
|
|
return getDataTable(optionsVOS);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取医生患者信息列表
|
|
|
+ */
|
|
|
+ @GetMapping("/patients/{doctorId}")
|
|
|
+ public AjaxResult getDoctorPatients(@PathVariable("doctorId") Long doctorId) {
|
|
|
+ List<FsDoctorPatient> list = fsDoctorPatientService.selectFsDoctorPatientByDoctorId(doctorId);
|
|
|
+ return AjaxResult.success(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 执行患者信息转交
|
|
|
+ */
|
|
|
+ @Log(title = "患者转交", businessType = BusinessType.UPDATE)
|
|
|
+ @PostMapping("/transferPatient")
|
|
|
+ public AjaxResult transferPatient(@RequestBody TransferPatientParam param) {
|
|
|
+ int rows = fsDoctorPatientService.transferPatient(param);
|
|
|
+ return toAjax(rows);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取医生信息列表
|
|
|
+ * */
|
|
|
+ @GetMapping("/getDoctorList")
|
|
|
+ public AjaxResult getDoctorList() {
|
|
|
+ //获取状态正常的医生信息列表
|
|
|
+ List<FsDoctor> list = fsDoctorService.getActiveDoctorsList();
|
|
|
+ return AjaxResult.success(list);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|