|
@@ -3241,9 +3241,30 @@ public class ObjectToDocumentUtils {
|
|
|
JSON.toJSONString(productUsersSimpleInfo.getProduct()), Store.YES));
|
|
JSON.toJSONString(productUsersSimpleInfo.getProduct()), Store.YES));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (null != productUsersSimpleInfo.getEnuu()) {
|
|
|
|
|
+ document.add(new StringField(
|
|
|
|
|
+ ClassAndTableNameUtils.combineField(tableName, ProductUsersSimpleInfo.ENUU_FIELD),
|
|
|
|
|
+ productUsersSimpleInfo.getEnuu().toString(), Store.YES));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (null != productUsersSimpleInfo.getUseruu()) {
|
|
|
|
|
+ document.add(new StringField(
|
|
|
|
|
+ ClassAndTableNameUtils.combineField(tableName, ProductUsersSimpleInfo.USERUU_FIELD),
|
|
|
|
|
+ productUsersSimpleInfo.getUseruu().toString(), Store.YES));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (!StringUtils.isEmpty(productUsersSimpleInfo.getDate())) {
|
|
|
|
|
+ document.add(
|
|
|
|
|
+ new LongField(ClassAndTableNameUtils.combineField(tableName, ProductUsersSimpleInfo.DATE_FIELD),
|
|
|
|
|
+ productUsersSimpleInfo.getDate().getTime(), Store.YES));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 排序字段
|
|
// 排序字段
|
|
|
document.add(new NumericDocValuesField(ClassAndTableNameUtils.combineField(tableName, ProductUsersSimpleInfo.ID_FIELD),
|
|
document.add(new NumericDocValuesField(ClassAndTableNameUtils.combineField(tableName, ProductUsersSimpleInfo.ID_FIELD),
|
|
|
productUsersSimpleInfo.getId()));
|
|
productUsersSimpleInfo.getId()));
|
|
|
|
|
+ document.add(new NumericDocValuesField(
|
|
|
|
|
+ ClassAndTableNameUtils.combineField(tableName, ProductUsersSimpleInfo.DATE_FIELD),
|
|
|
|
|
+ productUsersSimpleInfo.getDate().getTime()));
|
|
|
return document;
|
|
return document;
|
|
|
}
|
|
}
|
|
|
|
|
|