package com.iailab.module.data.point.common; import java.math.BigDecimal; /** * @author PanZhibao * @Description * @createTime 2023年12月06日 13:12:00 */ public class PointDataTypeUtils { public static Object convert(Object value, String type) { switch (type) { case "int": return Integer.parseInt(value.toString()); case "float": return new BigDecimal(value.toString()); case "boolean": return Boolean.parseBoolean(value.toString()); default: break; } return value; } }