|
|
@@ -21,7 +21,8 @@ import org.springframework.util.CollectionUtils;
|
|
|
* @author yingp
|
|
|
*
|
|
|
*/
|
|
|
-@Table(name = "purc$orders$index", indexes = { @Index(name = "purc$orders$index_keyword", columnList = "index_enuu,index_word") })
|
|
|
+@Table(name = "purc$orders$index", indexes = {
|
|
|
+ @Index(name = "purc$orders$index_keyword", columnList = "index_enuu,index_word,index_venuu") })
|
|
|
@Entity
|
|
|
public class PurchaseOrderIndex {
|
|
|
|
|
|
@@ -49,22 +50,29 @@ public class PurchaseOrderIndex {
|
|
|
@Column(name = "index_word")
|
|
|
private String keyword;
|
|
|
|
|
|
+ /**
|
|
|
+ * 客户UU
|
|
|
+ */
|
|
|
+ @Column(name = "index_venuu")
|
|
|
+ private Long venUU;
|
|
|
+
|
|
|
public PurchaseOrderIndex() {
|
|
|
}
|
|
|
|
|
|
- public PurchaseOrderIndex(long enUU, long key, String keyword) {
|
|
|
+ public PurchaseOrderIndex(long enUU, long venUU, long key, String keyword) {
|
|
|
this.enUU = enUU;
|
|
|
this.key = key;
|
|
|
this.keyword = keyword;
|
|
|
+ this.venUU = venUU;
|
|
|
}
|
|
|
|
|
|
- public static List<PurchaseOrderIndex> format(long enUU, long key, Set<String> keywords) {
|
|
|
+ public static List<PurchaseOrderIndex> format(long enUU, long key, long venUU, Set<String> keywords) {
|
|
|
List<PurchaseOrderIndex> indexes = new ArrayList<PurchaseOrderIndex>();
|
|
|
if (!CollectionUtils.isEmpty(keywords)) {
|
|
|
for (String keyword : keywords) {
|
|
|
- indexes.add(new PurchaseOrderIndex(enUU, key, keyword));
|
|
|
+ indexes.add(new PurchaseOrderIndex(enUU, key, venUU, keyword));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
return indexes;
|
|
|
}
|
|
|
@@ -101,4 +109,12 @@ public class PurchaseOrderIndex {
|
|
|
this.keyword = keyword;
|
|
|
}
|
|
|
|
|
|
+ public Long getVenUU() {
|
|
|
+ return venUU;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setVenUU(Long venUU) {
|
|
|
+ this.venUU = venUU;
|
|
|
+ }
|
|
|
+
|
|
|
}
|