1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00
dengchao@xgtl 2020-04-21 15:46:01 +08:00
parent d2279517d6
commit 45ace80228
13 changed files with 2754 additions and 2748 deletions

View File

@ -23,7 +23,7 @@ import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.Date;
@Document(indexName = "cskefu", type = "contact_notes")
@Document(indexName = "contact_notes", type = "contact_notes")
@Entity
@Table(name = "cs_contact_notes")
@org.hibernate.annotations.Proxy(lazy = false)

View File

@ -23,7 +23,7 @@ import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.Date;
@Document(indexName = "cskefu", type = "contacts")
@Document(indexName = "contacts", type = "contacts")
@Entity
@Table(name = "uk_contacts")
@org.hibernate.annotations.Proxy(lazy = false)

View File

@ -24,7 +24,7 @@ import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.Date;
@Document(indexName = "cskefu", type = "entcustomer")
@Document(indexName = "entcustomer", type = "entcustomer")
@Entity
@Table(name = "uk_entcustomer")
@org.hibernate.annotations.Proxy(lazy = false)

View File

@ -23,13 +23,12 @@ import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.Parent;
import javax.persistence.*;
import java.util.Date;
@Data
@Document(indexName = "cskefu", type = "favorites", createIndex = false)
@Document(indexName = "favorites", type = "favorites", createIndex = false)
@Entity
@Table(name = "uk_favorites")
@org.hibernate.annotations.Proxy(lazy = false)
@ -41,7 +40,7 @@ public class Favorites implements java.io.Serializable {
private String title;
private String model;
@Field(type = FieldType.Text, store = true)
@Parent(type = "uk_workorders")
// @Parent(type = "uk_workorders")
private String orderid;
private WorkOrders workOrders;
private Date createtime = new Date();

View File

@ -28,7 +28,7 @@ import java.util.Date;
/**
*
*/
@Document(indexName = "cskefu", type = "kbs_topic")
@Document(indexName = "kbs_topic", type = "kbs_topic")
@Entity
@Table(name = "uk_kbs_topic")
@org.hibernate.annotations.Proxy(lazy = false)

View File

@ -32,7 +32,7 @@ import javax.persistence.Transient;
import java.util.Date;
@Data
@Document(indexName = "cskefu", type = "kbs_topiccomment")
@Document(indexName = "kbs_topiccomment", type = "kbs_topiccomment")
public class KbsTopicComment implements UKAgg {
private static final long serialVersionUID = -4911955236794918875L;

View File

@ -28,7 +28,7 @@ import javax.persistence.*;
import java.util.Date;
@Data
@Document(indexName = "cskefu", type = "orderscomment")
@Document(indexName = "orderscomment", type = "orderscomment")
@Entity
@Table(name = "uk_orderscomment")
@org.hibernate.annotations.Proxy(lazy = false)

View File

@ -24,7 +24,7 @@ import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.Date;
@Document(indexName = "cskefu", type = "publishedreport")
@Document(indexName = "publishedreport", type = "publishedreport")
@Entity
@Table(name = "uk_publishedreport")
@org.hibernate.annotations.Proxy(lazy = false)

View File

@ -23,7 +23,7 @@ import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.Date;
@Document(indexName = "cskefu", type = "quickreply")
@Document(indexName = "quickreply", type = "quickreply")
@Entity
@Table(name = "uk_quickreply")
@org.hibernate.annotations.Proxy(lazy = false)

View File

@ -25,7 +25,7 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Document(indexName = "cskefu", type = "report")
@Document(indexName = "report", type = "report")
@Entity
@Table(name = "uk_report")
@org.hibernate.annotations.Proxy(lazy = false)
@ -70,6 +70,7 @@ public class Report extends ESBean implements java.io.Serializable{
private List<ReportModel> reportModels = new ArrayList<ReportModel>();
private List<ReportFilter> reportFilters = new ArrayList<ReportFilter>();
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")

View File

@ -29,7 +29,7 @@ import java.util.List;
/**
* uk_xiaoe_topic
*/
@Document(indexName = "cskefu", type = "xiaoe_topic")
@Document(indexName = "xiaoe_topic", type = "xiaoe_topic")
@Entity
@Table(name = "uk_xiaoe_topic")
@org.hibernate.annotations.Proxy(lazy = false)
@ -101,8 +101,6 @@ public class Topic implements java.io.Serializable{
private User user;
/**
* @return the id
*/

View File

@ -27,7 +27,7 @@ import java.util.Date;
/**
*
*/
@Document(indexName = "cskefu", type = "workorders" , createIndex = false )
@Document(indexName = "workorders", type = "workorders", createIndex = false)
@Entity
@Table(name = "uk_workorders")
@org.hibernate.annotations.Proxy(lazy = false)
@ -136,12 +136,15 @@ public class WorkOrders extends ESBean implements UKAgg{
return id;
}
public void setId(String id) {
this.id = id;
}
@Transient
public String getSessionid() {
return sessionid;
}
public void setSessionid(String sessionid) {
this.sessionid = sessionid;
}
@ -193,6 +196,7 @@ public class WorkOrders extends ESBean implements UKAgg{
public void setAnonymous(boolean anonymous) {
this.anonymous = anonymous;
}
public String getWotype() {
return wotype;
}
@ -208,6 +212,7 @@ public class WorkOrders extends ESBean implements UKAgg{
public void setPriority(String priority) {
this.priority = priority;
}
@Transient
public Contacts getContacts() {
return contacts;
@ -378,10 +383,6 @@ public class WorkOrders extends ESBean implements UKAgg{
this.skill = skill;
}
public void setId(String id) {
this.id = id;
}
public String getCate() {
return cate;
}
@ -421,6 +422,7 @@ public class WorkOrders extends ESBean implements UKAgg{
public void setFinish(boolean finish) {
this.finish = finish;
}
@Transient
public User getUser() {
return user;
@ -429,6 +431,7 @@ public class WorkOrders extends ESBean implements UKAgg{
public void setUser(User user) {
this.user = user;
}
@Transient
public int getRowcount() {
return rowcount;
@ -442,6 +445,7 @@ public class WorkOrders extends ESBean implements UKAgg{
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
@ -502,6 +506,7 @@ public class WorkOrders extends ESBean implements UKAgg{
public void setFav(Favorites fav) {
this.fav = fav;
}
@Transient
public User getCurrent() {
return current;
@ -510,6 +515,7 @@ public class WorkOrders extends ESBean implements UKAgg{
public void setCurrent(User current) {
this.current = current;
}
@Transient
public Organ getCurrentorgan() {
return currentorgan;
@ -518,6 +524,7 @@ public class WorkOrders extends ESBean implements UKAgg{
public void setCurrentorgan(Organ currentorgan) {
this.currentorgan = currentorgan;
}
@Transient
public String getTaskid() {
return taskid;
@ -526,6 +533,7 @@ public class WorkOrders extends ESBean implements UKAgg{
public void setTaskid(String taskid) {
this.taskid = taskid;
}
@Transient
public String getOrderid() {
return orderid;

View File

@ -29,7 +29,7 @@ import java.util.List;
@Entity
@Table(name = "uk_chat_message")
@Document(indexName = "cskefu", type = "chat_message")
@Document(indexName = "chat_message", type = "chat_message")
@org.hibernate.annotations.Proxy(lazy = false)
public class ChatMessage implements java.io.Serializable {
/**