guoyong 4 lat temu
rodzic
commit
c28d02272c

+ 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);