Commit 08278c8d by 黄小葱

修改bug

1 parent fec45ac0
...@@ -113,13 +113,22 @@ public class VehicleDeviceService { ...@@ -113,13 +113,22 @@ public class VehicleDeviceService {
} }
/** /**
* 根据VehicleDevice解绑 * 解绑设备
* @param vehicleDevice * @param vehicleDevice
*/ */
public void unBindSnByVehicleDevice(VehicleDevice vehicleDevice) { public void unBindSnByVehicleDevice(VehicleDevice vehicleDevice, Long userId) {
vehicleDevice.setBindStatus(ConstantsDevice.UN_BIND_VEHICLE_STATUS); vehicleDevice.setBindStatus(ConstantsDevice.UN_BIND_VEHICLE_STATUS);
vehicleDevice.setUpdatedBy(ShieldContextHolder.getUserId()); vehicleDevice.setUpdatedBy(userId);
vehicleDevice.setUpdatedDate(new Date()); vehicleDevice.setUpdatedDate(new Date());
vehicleDeviceMapper.updateByPrimaryKey(vehicleDevice); vehicleDeviceMapper.updateByPrimaryKey(vehicleDevice);
} }
/**
* 登录系统人员解绑设备
* @param vehicleDevice
*/
public void unBindSnByVehicleDevice(VehicleDevice vehicleDevice) {
Long userId = ShieldContextHolder.getUserId();
unBindSnByVehicleDevice(vehicleDevice, userId);
}
} }
...@@ -399,7 +399,7 @@ public class VehicleService { ...@@ -399,7 +399,7 @@ public class VehicleService {
return; return;
} }
log.info("从vehicleId:" + existvehicleId + "解绑设备sn:" + sn); log.info("从vehicleId:" + existvehicleId + "解绑设备sn:" + sn);
vehicleDeviceService.unBindSnByVehicleDevice(vehicleDevice); vehicleDeviceService.unBindSnByVehicleDevice(vehicleDevice, createId);
} }
//绑定 //绑定
log.info("绑定将设备sn:" + sn + "绑定至vehicleId:" + vehicleId); log.info("绑定将设备sn:" + sn + "绑定至vehicleId:" + vehicleId);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!