Explorar o código

医生id改为自己生成

liaoyongfei %!s(int64=4) %!d(string=hai) anos
pai
achega
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"));