Pārlūkot izejas kodu

账号的删除(机构)

5 gadi atpakaļ
vecāks
revīzija
d4e9bcebb4

+ 1 - 1
bms/src/main/java/com/hssx/bms/service/impl/UserAppointmentServiceImpl.java

@@ -62,11 +62,11 @@ public class UserAppointmentServiceImpl extends ServiceImpl<UserAppointmentMappe
     public HttpRespMsg acceptAndUpdateDate(UserAppointmentVO userAppointmentVO) {
         HttpRespMsg msg = new HttpRespMsg();
         UserAppointment userAppointment = new UserAppointment();
+        BeanUtils.copyProperties(userAppointmentVO,userAppointment);
         if(null != userAppointmentVO.getTimeDate()){
             LocalDate beginDateTime = LocalDate.parse(userAppointmentVO.getTimeDate(), DateTimeFormatter.ofPattern("yyyy-MM-dd"));
             userAppointment.setAppointDate(beginDateTime);
         }
-        BeanUtils.copyProperties(userAppointmentVO,userAppointment);
         userAppointmentMapper.updateById(userAppointment);
         return msg;
     }