Commit c5493c42 by levphon

车辆管理-返回给前端加密设备号

1 parent e1e2d2e9
......@@ -12,9 +12,15 @@ import lombok.Data;
public class VehicleLocationDTO extends DeviceLocationDTO {
/**
* 加密的设备号
*/
private String encryptSn;
/**
* 车架号
*/
private String vin;
/**
* 车主姓名
*/
......@@ -30,5 +36,4 @@ public class VehicleLocationDTO extends DeviceLocationDTO {
*/
private String licensePlate;
}
......@@ -15,6 +15,7 @@ import cn.com.glsx.usercenter.api.dto.tree.OrgTreeModel;
import cn.hutool.json.JSONUtil;
import com.glsx.plat.common.model.TreeModel;
import com.glsx.plat.common.utils.TreeModelUtil;
import com.glsx.plat.common.utils.encryption.EncryptUtils;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
......@@ -306,7 +307,10 @@ public class VehicleMonitorService {
}
VehicleLocationDTO vehicleBo = new VehicleLocationDTO();
BeanUtils.copyProperties(deviceBo, vehicleBo);
String sn = deviceBo.getSn();
vehicleBo.setEncryptSn(EncryptUtils.PBEEncrypt(sn));
List<Vehicle> vehicleList = vehicleMapper.findVehicleInfoBySn(sn);
if (CollectionUtils.isNotEmpty(vehicleList)) {
Vehicle vehicle = vehicleList.get(0);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!