2023-03-08 11:17:16 +08:00
|
|
|
package com.xkrs.straw.utilsnew;
|
2023-02-24 17:15:38 +08:00
|
|
|
|
|
|
|
import com.xkrs.straw.model.entity.FirePointOrdinaryEntity;
|
|
|
|
import com.xkrs.straw.model.entity.FirePointPreciseEntity;
|
|
|
|
import com.xkrs.straw.model.vo.AllFirePointVo;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* AllFirePointVo输出格式转化工具
|
|
|
|
*/
|
|
|
|
public class FirePointConvertUtils {
|
|
|
|
|
|
|
|
private FirePointConvertUtils() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public static AllFirePointVo convert(FirePointOrdinaryEntity entity) {
|
|
|
|
AllFirePointVo allFirePointVo = new AllFirePointVo();
|
|
|
|
allFirePointVo.setId(entity.getId());
|
|
|
|
allFirePointVo.setFireCode(entity.getFireCode());
|
|
|
|
allFirePointVo.setSatelliteTime(entity.getSatelliteTime());
|
|
|
|
allFirePointVo.setLongitude(entity.getLongitude());
|
|
|
|
allFirePointVo.setLatitude(entity.getLatitude());
|
|
|
|
allFirePointVo.setSatelliteType(entity.getSatelliteType());
|
|
|
|
allFirePointVo.setLandType(entity.getLandType());
|
|
|
|
allFirePointVo.setConfidence(entity.getConfidence());
|
|
|
|
allFirePointVo.setFireImage(entity.getFireImage());
|
|
|
|
allFirePointVo.setSatelliteImage(entity.getSatelliteImage());
|
|
|
|
allFirePointVo.setAddTime(entity.getAddTime());
|
|
|
|
allFirePointVo.setFirePointAddress(entity.getFirePointAddress());
|
|
|
|
allFirePointVo.setRemark(entity.getRemark());
|
2023-03-06 15:02:14 +08:00
|
|
|
allFirePointVo.setPlaceHolder(entity.getPlaceHolder());
|
|
|
|
allFirePointVo.setProCode(entity.getProCode());
|
|
|
|
allFirePointVo.setProName(entity.getProName());
|
|
|
|
allFirePointVo.setCityCode(entity.getCityCode());
|
|
|
|
allFirePointVo.setCityName(entity.getCityName());
|
|
|
|
allFirePointVo.setCountyCode(entity.getCountyCode());
|
|
|
|
allFirePointVo.setCountyName(entity.getCountyName());
|
|
|
|
allFirePointVo.setTownCode(entity.getTownCode());
|
|
|
|
allFirePointVo.setTownName(entity.getTownName());
|
2023-02-24 17:15:38 +08:00
|
|
|
return allFirePointVo;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static AllFirePointVo convert(FirePointPreciseEntity entity) {
|
|
|
|
AllFirePointVo allFirePointVo = new AllFirePointVo();
|
|
|
|
allFirePointVo.setId(entity.getId());
|
|
|
|
allFirePointVo.setFireCode(entity.getFireCode());
|
|
|
|
allFirePointVo.setSatelliteTime(entity.getSatelliteTime());
|
|
|
|
allFirePointVo.setLongitude(entity.getLongitude());
|
|
|
|
allFirePointVo.setLatitude(entity.getLatitude());
|
|
|
|
allFirePointVo.setSatelliteType(entity.getSatelliteType());
|
|
|
|
allFirePointVo.setLandType(entity.getLandType());
|
|
|
|
allFirePointVo.setConfidence(entity.getConfidence());
|
|
|
|
allFirePointVo.setFireImage(entity.getFireImage());
|
|
|
|
allFirePointVo.setSatelliteImage(entity.getSatelliteImage());
|
|
|
|
allFirePointVo.setAddTime(entity.getAddTime());
|
|
|
|
allFirePointVo.setFirePointAddress(entity.getFirePointAddress());
|
|
|
|
allFirePointVo.setRemark(entity.getRemark());
|
2023-03-06 15:02:14 +08:00
|
|
|
allFirePointVo.setPlaceHolder(entity.getPlaceHolder());
|
|
|
|
allFirePointVo.setProCode(entity.getProCode());
|
|
|
|
allFirePointVo.setProName(entity.getProName());
|
|
|
|
allFirePointVo.setCityCode(entity.getCityCode());
|
|
|
|
allFirePointVo.setCityName(entity.getCityName());
|
|
|
|
allFirePointVo.setCountyCode(entity.getCountyCode());
|
|
|
|
allFirePointVo.setCountyName(entity.getCountyName());
|
|
|
|
allFirePointVo.setTownCode(entity.getTownCode());
|
|
|
|
allFirePointVo.setTownName(entity.getTownName());
|
2023-02-24 17:15:38 +08:00
|
|
|
return allFirePointVo;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|