java110 hace 5 años
padre
commit
7ada5d8979

+ 2 - 0
service-job/src/main/java/com/java110/job/adapt/hcIot/machine/AddMachineToIotAdapt.java

@@ -133,6 +133,8 @@ public class AddMachineToIotAdapt extends DatabusAdaptImpl {
         postParameters.put("machineTypeCd", machinePo.getMachineTypeCd());
         postParameters.put("extMachineId", machineDtos.get(0).getMachineId());
         postParameters.put("extCommunityId", machinePo.getCommunityId());
+        postParameters.put("machineIp", machinePo.getMachineIp());
+        postParameters.put("machineMac", machinePo.getMachineMac());
         postParameters.put("hmId", hmId);
         hcMachineAsynImpl.addMachine(postParameters, ownerDtos);
     }

+ 2 - 0
service-job/src/main/java/com/java110/job/adapt/hcIot/machine/ModifyMachineToIotAdapt.java

@@ -102,6 +102,8 @@ public class ModifyMachineToIotAdapt extends DatabusAdaptImpl {
         postParameters.put("machineTypeCd", machinePo.getMachineTypeCd());
         postParameters.put("extMachineId", machineDtos.get(0).getMachineId());
         postParameters.put("extCommunityId", machinePo.getCommunityId());
+        postParameters.put("machineIp", machinePo.getMachineIp());
+        postParameters.put("machineMac", machinePo.getMachineMac());
         postParameters.put("hmId", hmId);
         hcMachineAsynImpl.updateMachine(postParameters);
     }