|
@ -268,11 +268,11 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
|
|
|
public Boolean updateInfo(JSONObject jsonObject)throws Exception{
|
|
|
//取出数据
|
|
|
String doctorId = jsonObject.get("doctorId").toString();
|
|
|
String introduce = jsonObject.get("introduce").toString();
|
|
|
String expertise = jsonObject.get("expertise").toString();
|
|
|
String photo = jsonObject.get("photo").toString();
|
|
|
String outpatientType = jsonObject.get("outpatientType").toString();
|
|
|
baseDoctorDao.update(doctorId,introduce,expertise,photo,outpatientType);
|
|
|
logger.info("doctor:"+doctorId+" outpatientType:"+outpatientType);
|
|
|
BaseDoctorDO doctorDO = baseDoctorDao.findOne(doctorId);
|
|
|
doctorDO.setOutpatientType(outpatientType);
|
|
|
baseDoctorDao.save(doctorDO);
|
|
|
return true;
|
|
|
}
|
|
|
|