guoyong 4 년 전
부모
커밋
c28d02272c
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/main/java/com/aoyang/tms/controller/WorkerController.java

+ 5 - 1
src/main/java/com/aoyang/tms/controller/WorkerController.java

@@ -180,7 +180,11 @@ public class WorkerController {
 
         WorkCycle workCycle = workCycleService.getById(restInfo.getCycleId());
         if (workCycle != null) {
-            BeanUtils.copyProperties(workCycle, restInfo);
+            restInfo.setCarNumber(workCycle.getCarNumber());
+            restInfo.setOrgId(workCycle.getOrgId());
+            restInfo.setOrgName(workCycle.getOrgName());
+            restInfo.setTruckId(workCycle.getTruckId());
+            restInfo.setCycleId(workCycle.getId());
             restInfo.setCycleId(workCycle.getId());
         }
         restInfo.setCreater(userId);