Browse Source

医生id改为自己生成

liaoyongfei 4 years ago
parent
commit
b712ac1f9b

+ 1 - 0
ymall/src/main/java/com/liangjian11/ymall/service/impl/DoctorServiceImpl.java

@@ -410,6 +410,7 @@ public class DoctorServiceImpl extends ServiceImpl<DoctorMapper, Doctor> impleme
       return null;
     JSONObject jsonDoctor = jsonObject.getJSONObject("data").getJSONArray("doctorList").getJSONObject(0);
     Doctor doctor = new Doctor();
+    doctor.setId(UUID.randomUUID().toString().toLowerCase());
     doctor.setCreateTime(new Date());
     doctor.setDoctorName(jsonDoctor.getString("doctorName"));
     doctor.setNickName(jsonDoctor.getString("doctorName"));