admin
2020-04-13 dd5b15229cb15459fa7c31ccea77dac28cbfafbd
fanli/src/main/java/com/yeshi/fanli/entity/goods/jd/NYouHuiGoods.java
@@ -6,6 +6,9 @@
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.yeshi.utils.StringUtil;
import com.google.gson.Gson;
@Document(collection = "jdGoodsNYouHui")
public class NYouHuiGoods {
@@ -99,4 +102,19 @@
   public void setSourceUrl(String sourceUrl) {
      this.sourceUrl = sourceUrl;
   }
   /**
    *
    * @Title: toId
    * @Description: 转化唯一主键ID
    * @return
    * String 返回类型
    * @throws
    */
   public String toId() {
      String idStr = this.name;
      idStr += "#";
      idStr += new Gson().toJson(this.skuList);
      return StringUtil.Md5(idStr);
   }
}