|
|
package com.yoho.search.consumer.service.logicService;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.squareup.moshi.Json;
|
|
|
import com.yoho.search.consumer.service.bo.BigdataBrandVectorBO;
|
|
|
import com.yoho.search.consumer.service.bo.BigdataSortBrandVectorBO;
|
|
|
import com.yoho.search.dal.model.BigdataBrandVector;
|
...
|
...
|
@@ -49,7 +51,7 @@ public class BrandVectorBOLogicService { |
|
|
BigdataBrandVectorBO vectorBO = new BigdataBrandVectorBO();
|
|
|
vectorBO.setId(vector.getBrandId().longValue());
|
|
|
vectorBO.setBrandId(vector.getBrandId());
|
|
|
vectorBO.setVector(this.getDoubleList(vector.getVector()));
|
|
|
vectorBO.setVector(JSON.toJSONString(this.getDoubleList(vector.getVector())));
|
|
|
vectorBO.setUpdateTime(vector.getUpdateTime());
|
|
|
return vectorBO;
|
|
|
} catch (Exception e) {
|
...
|
...
|
@@ -64,7 +66,7 @@ public class BrandVectorBOLogicService { |
|
|
vectorBO.setId(vector.getBrandId() + "_" + vector.getMiddleSortId());
|
|
|
vectorBO.setBrandId(vector.getBrandId());
|
|
|
vectorBO.setMiddleSortId(vector.getMiddleSortId());
|
|
|
vectorBO.setVector(this.getDoubleList(vector.getVector()));
|
|
|
vectorBO.setVector(JSON.toJSONString(this.getDoubleList(vector.getVector())));
|
|
|
vectorBO.setUpdateTime(vector.getUpdateTime());
|
|
|
return vectorBO;
|
|
|
} catch (Exception e) {
|
...
|
...
|
|