|
@ -51,6 +51,7 @@ import com.yihu.jw.util.http.HttpClientUtil;
|
|
|
import com.yihu.jw.utils.hibernate.HibenateUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@ -177,8 +178,6 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
|
|
|
}
|
|
|
}
|
|
|
//医生归属业务模块角色信息,非必填,数据可有可没有
|
|
|
String[] paramNames = {"doctorCode"};
|
|
|
Object[] paramValue = {doctorId};
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
List<BaseTeamMemberDO> baseTeamMemberDO = baseTeamMemberDao.findUseDoctorCode(doctorId);
|
|
|
List<BaseTeamDO> teamlist = new ArrayList<>();
|
|
@ -190,7 +189,8 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
|
|
|
}
|
|
|
jsonObject.put("teamInfo",teamlist);
|
|
|
}
|
|
|
List<BaseDoctorRoleDO> roleList = baseDoctorRoleService.findByFields(paramNames,paramValue);
|
|
|
String sql = "select * from base_doctor_role where doctor_code='"+doctorId+"' and del=1 ";
|
|
|
List<BaseDoctorRoleDO> roleList = jdbcTemplate.query(sql,new BeanPropertyRowMapper<>(BaseDoctorRoleDO.class));
|
|
|
jsonObject.put("doctor",doctors);
|
|
|
jsonObject.put("role",roleList);
|
|
|
List<BaseDoctorHospitalDO> baseDoctorHospitalDO = baseDoctorHospitalDao.findByDoctorCode(doctorId);
|
|
@ -621,6 +621,7 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
|
|
|
roleIdList.remove(baseDoctorRoleDO.getId());
|
|
|
}
|
|
|
baseDoctorRoleDO.setDoctorCode(baseDoctorDO.getId());
|
|
|
baseDoctorRoleDO.setDel(1);
|
|
|
baseDoctorRoleService.save(baseDoctorRoleDO);
|
|
|
}
|
|
|
} catch (IOException e) {
|