数据库
board` jsonDEFAULT NULL COMMENT '信息,格式[{"name":"net","chip":"esp32","hdVer":1}]'
接收-List
Mybatis
<resultMap id="productDeviceAndBrand" type="com.charg.product.domain.vo.ProductDeviceOperationsVo">
<result property="brandId" column="brand_id"/>
<result property="brandName" column="brand_name"/>
<result property="productName" column="product_name"/>
<result property="productCode" column="product_code"/>
<result property="deviceNum" column="device_num"/>
<result property="netFirmVer" column="net_firm_ver"/>
<result property="appFirmVer" column="app_firm_ver"/>
<result property="mcbFirmVer" column="mcb_firm_ver"/>
<result property="uiFirmVer" column="ui_firm_ver"/>
<result property="board" column="board" javaType="java.util.List"
typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler"/>
<result property="status" column="status"/>
<result property="productTime" column="product_time"/>
<result property="bindTime" column="bind_time"/>
</resultMap>
实体类
@Data
@EqualsAndHashCode(callSuper = false)
public class ProductDeviceOperationsVo extends BaseEntity {
private String brandId;
private String brandName;
private List<Map<String, Object>> board;
}