فهرست منبع

修改患者的健康管理师提交

esb 8 سال پیش
والد
کامیت
2b672cdba8

+ 7 - 0
src/main/java/com/yihu/wlyy/service/app/account/DoctorInfoService.java

@ -682,4 +682,11 @@ public class DoctorInfoService extends BaseService {
        doctorPatientGroupInfo.setSignType("2");//家庭签约
        doctorPatientGroupInfoDao.save(doctorPatientGroupInfo);
    }
    public void updateTeamHealthDoctors(String newDoctorCode, String oldDoctorCode, String patients)throws Exception {
        String [] patiensString=patients.split(",");
        for (int i=0;i<patiensString.length;i++){
            updateTeamHealthDoctor(newDoctorCode,oldDoctorCode,patiensString[i]);
        }
    }
}

+ 4 - 4
src/main/java/com/yihu/wlyy/web/doctor/account/DoctorController.java

@ -1420,14 +1420,14 @@ public class DoctorController extends BaseController {
     * 转换团队中的健康管理师
     * @param  newDoctorCode 新的健康管理师的code
     * @param oldDoctorCode 旧的健康管理师的code
     * @param patient 患者code
     * @param patients 患者code 多个逗号分隔
     * @return
     */
    @RequestMapping(value = "/updateTeamHealthDoctor")
    @RequestMapping(value = "/updateTeamHealthDoctors")
    @ResponseBody
    public String updateTeamHealthDoctor(String newDoctorCode,String oldDoctorCode,String patient) {
    public String updateTeamHealthDoctors(String newDoctorCode,String oldDoctorCode,String patients) {
        try {
            doctorInfoService.updateTeamHealthDoctor(newDoctorCode,oldDoctorCode,patient);
            doctorInfoService.updateTeamHealthDoctors(newDoctorCode,oldDoctorCode,patients);
            return write(200, "更新成功");
        } catch (Exception e) {
            e.printStackTrace();