fire_point/src/main/java/com/xkrs/straw/utils/FirePointConvertUtils.java

70 lines
3.3 KiB
Java
Raw Normal View History

package com.xkrs.straw.utils;
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());
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());
return allFirePointVo;
}
}