| | |
| | | package com.hbbh.adapter.covert; |
| | | import com.google.common.collect.Lists; |
| | | |
| | | import com.hbbh.adapter.dto.SMSDto; |
| | | import com.hbbh.adapter.pojo.Point; |
| | | import com.hbbh.adapter.pojo.golden.*; |
| | | import com.hbbh.adapter.utils.DateUtil; |
| | |
| | | import java.util.List; |
| | | |
| | | public class PointConvert { |
| | | |
| | | public static SMSDto targetToSMSDto(MinPoint minPoint){ |
| | | SMSDto sMSDto = new SMSDto(); |
| | | sMSDto.setId(minPoint.getId()); |
| | | sMSDto.setTagName(minPoint.getTagName()); |
| | | sMSDto.setDesc(minPoint.getDesc()); |
| | | sMSDto.setValueType(minPoint.getValueType()); |
| | | sMSDto.setTagType(minPoint.getTagType()); |
| | | //sMSDto.setTimestamp(); |
| | | return sMSDto; |
| | | } |
| | | |
| | | |
| | | public static List<Point> fullpointsToPointEntity(List<FullPoint> fullPoints) { |