| | |
| | | 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 {
|
| | |
| | | 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);
|
| | | }
|
| | | }
|