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

@ -1,494 +1,494 @@
/*
* Copyright (C) 2017 优客服-多渠道客服系统
* Modifications copyright (C) 2018-2019 Chatopera Inc, <https://www.chatopera.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.chatopera.cc.model;
import com.chatopera.cc.basic.MainUtils;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.Date;
@Document(indexName = "cskefu", type = "entcustomer")
@Entity
@Table(name = "uk_entcustomer")
@org.hibernate.annotations.Proxy(lazy = false)
public class EntCustomer extends ESBean implements java.io.Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private String id = MainUtils.getUUID();
private String name;
private String etype;
private String ekind;
private String maturity ;
private String elevel;
private String ecode;
private String nickname;
private String esource;
private String organ;
private String corporation;
private String leadername;
private String leadermobile;
private String leadermobile2;
private String leaderphone;
private String leaderemail;
private String website;
private String email;
private String emailalt;
private String phone;
private String phonealt;
private String fax;
private String faxalt;
private String country;
private String province;
private String entcusid; //客户ID
private String city;
private String sarea;
private String address;
private String postcode;
private String businessscope;
private String capital;
private String stockcode;
private String bankaccount;
private String registeredaddress;
private String esize;
private String industry;
private String validstatus;
private String weixin;
private String weibo;
private Date touchtime ;
private String dzip;
private String daddress;
private String darea;
private String dcity;
private String dprovince;
private boolean datastatus;
private String processid;
private String description;
private String creater;
private String username;
private String updateuser;
private String updateusername;
private Date updatetime = new Date();
private String orgi;
private Date createtime = new Date();
private String assignedto;
private String wfstatus;
private String shares;
private String owner;
private String datadept;
private String batid;
private String pinyin ; //拼音首字母
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "assigned")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEtype() {
return etype;
}
public void setEtype(String etype) {
this.etype = etype;
}
public String getEkind() {
return ekind;
}
public void setEkind(String ekind) {
this.ekind = ekind;
}
public String getElevel() {
return elevel;
}
public void setElevel(String elevel) {
this.elevel = elevel;
}
public String getEcode() {
return ecode;
}
public void setEcode(String ecode) {
this.ecode = ecode;
}
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public String getEsource() {
return esource;
}
public void setEsource(String esource) {
this.esource = esource;
}
public String getOrgan() {
return organ;
}
public void setOrgan(String organ) {
this.organ = organ;
}
public String getCorporation() {
return corporation;
}
public void setCorporation(String corporation) {
this.corporation = corporation;
}
public String getLeadername() {
return leadername;
}
public void setLeadername(String leadername) {
this.leadername = leadername;
}
public String getLeadermobile() {
return leadermobile;
}
public void setLeadermobile(String leadermobile) {
this.leadermobile = leadermobile;
}
public String getLeadermobile2() {
return leadermobile2;
}
public void setLeadermobile2(String leadermobile2) {
this.leadermobile2 = leadermobile2;
}
public String getLeaderphone() {
return leaderphone;
}
public void setLeaderphone(String leaderphone) {
this.leaderphone = leaderphone;
}
public String getLeaderemail() {
return leaderemail;
}
public void setLeaderemail(String leaderemail) {
this.leaderemail = leaderemail;
}
public String getWebsite() {
return website;
}
public void setWebsite(String website) {
this.website = website;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getEmailalt() {
return emailalt;
}
public void setEmailalt(String emailalt) {
this.emailalt = emailalt;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getPhonealt() {
return phonealt;
}
public void setPhonealt(String phonealt) {
this.phonealt = phonealt;
}
public String getFax() {
return fax;
}
public void setFax(String fax) {
this.fax = fax;
}
public String getFaxalt() {
return faxalt;
}
public void setFaxalt(String faxalt) {
this.faxalt = faxalt;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getSarea() {
return sarea;
}
public void setSarea(String sarea) {
this.sarea = sarea;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getPostcode() {
return postcode;
}
public void setPostcode(String postcode) {
this.postcode = postcode;
}
public String getBusinessscope() {
return businessscope;
}
public void setBusinessscope(String businessscope) {
this.businessscope = businessscope;
}
public String getCapital() {
return capital;
}
public void setCapital(String capital) {
this.capital = capital;
}
public String getStockcode() {
return stockcode;
}
public void setStockcode(String stockcode) {
this.stockcode = stockcode;
}
public String getBankaccount() {
return bankaccount;
}
public void setBankaccount(String bankaccount) {
this.bankaccount = bankaccount;
}
public String getRegisteredaddress() {
return registeredaddress;
}
public void setRegisteredaddress(String registeredaddress) {
this.registeredaddress = registeredaddress;
}
public String getEsize() {
return esize;
}
public void setEsize(String esize) {
this.esize = esize;
}
public String getIndustry() {
return industry;
}
public void setIndustry(String industry) {
this.industry = industry;
}
public String getValidstatus() {
return validstatus;
}
public void setValidstatus(String validstatus) {
this.validstatus = validstatus;
}
public String getWeixin() {
return weixin;
}
public void setWeixin(String weixin) {
this.weixin = weixin;
}
public String getWeibo() {
return weibo;
}
public void setWeibo(String weibo) {
this.weibo = weibo;
}
public Date getTouchtime() {
return touchtime;
}
public void setTouchtime(Date touchtime) {
this.touchtime = touchtime;
}
public String getDzip() {
return dzip;
}
public void setDzip(String dzip) {
this.dzip = dzip;
}
public String getDaddress() {
return daddress;
}
public void setDaddress(String daddress) {
this.daddress = daddress;
}
public String getDarea() {
return darea;
}
public void setDarea(String darea) {
this.darea = darea;
}
public String getDcity() {
return dcity;
}
public void setDcity(String dcity) {
this.dcity = dcity;
}
public String getDprovince() {
return dprovince;
}
public void setDprovince(String dprovince) {
this.dprovince = dprovince;
}
public boolean isDatastatus() {
return datastatus;
}
public void setDatastatus(boolean datastatus) {
this.datastatus = datastatus;
}
public String getProcessid() {
return processid;
}
public void setProcessid(String processid) {
this.processid = processid;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getCreater() {
return creater;
}
public void setCreater(String creater) {
this.creater = creater;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getUpdateuser() {
return updateuser;
}
public void setUpdateuser(String updateuser) {
this.updateuser = updateuser;
}
public String getUpdateusername() {
return updateusername;
}
public void setUpdateusername(String updateusername) {
this.updateusername = updateusername;
}
public Date getUpdatetime() {
return updatetime;
}
public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime;
}
public String getOrgi() {
return orgi;
}
public void setOrgi(String orgi) {
this.orgi = orgi;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public String getAssignedto() {
return assignedto;
}
public void setAssignedto(String assignedto) {
this.assignedto = assignedto;
}
public String getWfstatus() {
return wfstatus;
}
public void setWfstatus(String wfstatus) {
this.wfstatus = wfstatus;
}
public String getShares() {
return shares;
}
public void setShares(String shares) {
this.shares = shares;
}
public String getOwner() {
return owner;
}
public void setOwner(String owner) {
this.owner = owner;
}
public String getDatadept() {
return datadept;
}
public void setDatadept(String datadept) {
this.datadept = datadept;
}
public String getBatid() {
return batid;
}
public void setBatid(String batid) {
this.batid = batid;
}
public String getMaturity() {
return maturity;
}
public void setMaturity(String maturity) {
this.maturity = maturity;
}
public String getEntcusid() {
return entcusid!=null ? entcusid : id ;
}
public void setEntcusid(String entcusid) {
this.entcusid = entcusid;
}
public String getPinyin() {
return pinyin;
}
public void setPinyin(String pinyin) {
this.pinyin = pinyin;
}
}
/*
* Copyright (C) 2017 优客服-多渠道客服系统
* Modifications copyright (C) 2018-2019 Chatopera Inc, <https://www.chatopera.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.chatopera.cc.model;
import com.chatopera.cc.basic.MainUtils;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.Date;
@Document(indexName = "entcustomer", type = "entcustomer")
@Entity
@Table(name = "uk_entcustomer")
@org.hibernate.annotations.Proxy(lazy = false)
public class EntCustomer extends ESBean implements java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private String id = MainUtils.getUUID();
private String name;
private String etype;
private String ekind;
private String maturity;
private String elevel;
private String ecode;
private String nickname;
private String esource;
private String organ;
private String corporation;
private String leadername;
private String leadermobile;
private String leadermobile2;
private String leaderphone;
private String leaderemail;
private String website;
private String email;
private String emailalt;
private String phone;
private String phonealt;
private String fax;
private String faxalt;
private String country;
private String province;
private String entcusid; //客户ID
private String city;
private String sarea;
private String address;
private String postcode;
private String businessscope;
private String capital;
private String stockcode;
private String bankaccount;
private String registeredaddress;
private String esize;
private String industry;
private String validstatus;
private String weixin;
private String weibo;
private Date touchtime;
private String dzip;
private String daddress;
private String darea;
private String dcity;
private String dprovince;
private boolean datastatus;
private String processid;
private String description;
private String creater;
private String username;
private String updateuser;
private String updateusername;
private Date updatetime = new Date();
private String orgi;
private Date createtime = new Date();
private String assignedto;
private String wfstatus;
private String shares;
private String owner;
private String datadept;
private String batid;
private String pinyin; //拼音首字母
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "assigned")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEtype() {
return etype;
}
public void setEtype(String etype) {
this.etype = etype;
}
public String getEkind() {
return ekind;
}
public void setEkind(String ekind) {
this.ekind = ekind;
}
public String getElevel() {
return elevel;
}
public void setElevel(String elevel) {
this.elevel = elevel;
}
public String getEcode() {
return ecode;
}
public void setEcode(String ecode) {
this.ecode = ecode;
}
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public String getEsource() {
return esource;
}
public void setEsource(String esource) {
this.esource = esource;
}
public String getOrgan() {
return organ;
}
public void setOrgan(String organ) {
this.organ = organ;
}
public String getCorporation() {
return corporation;
}
public void setCorporation(String corporation) {
this.corporation = corporation;
}
public String getLeadername() {
return leadername;
}
public void setLeadername(String leadername) {
this.leadername = leadername;
}
public String getLeadermobile() {
return leadermobile;
}
public void setLeadermobile(String leadermobile) {
this.leadermobile = leadermobile;
}
public String getLeadermobile2() {
return leadermobile2;
}
public void setLeadermobile2(String leadermobile2) {
this.leadermobile2 = leadermobile2;
}
public String getLeaderphone() {
return leaderphone;
}
public void setLeaderphone(String leaderphone) {
this.leaderphone = leaderphone;
}
public String getLeaderemail() {
return leaderemail;
}
public void setLeaderemail(String leaderemail) {
this.leaderemail = leaderemail;
}
public String getWebsite() {
return website;
}
public void setWebsite(String website) {
this.website = website;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getEmailalt() {
return emailalt;
}
public void setEmailalt(String emailalt) {
this.emailalt = emailalt;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getPhonealt() {
return phonealt;
}
public void setPhonealt(String phonealt) {
this.phonealt = phonealt;
}
public String getFax() {
return fax;
}
public void setFax(String fax) {
this.fax = fax;
}
public String getFaxalt() {
return faxalt;
}
public void setFaxalt(String faxalt) {
this.faxalt = faxalt;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getSarea() {
return sarea;
}
public void setSarea(String sarea) {
this.sarea = sarea;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getPostcode() {
return postcode;
}
public void setPostcode(String postcode) {
this.postcode = postcode;
}
public String getBusinessscope() {
return businessscope;
}
public void setBusinessscope(String businessscope) {
this.businessscope = businessscope;
}
public String getCapital() {
return capital;
}
public void setCapital(String capital) {
this.capital = capital;
}
public String getStockcode() {
return stockcode;
}
public void setStockcode(String stockcode) {
this.stockcode = stockcode;
}
public String getBankaccount() {
return bankaccount;
}
public void setBankaccount(String bankaccount) {
this.bankaccount = bankaccount;
}
public String getRegisteredaddress() {
return registeredaddress;
}
public void setRegisteredaddress(String registeredaddress) {
this.registeredaddress = registeredaddress;
}
public String getEsize() {
return esize;
}
public void setEsize(String esize) {
this.esize = esize;
}
public String getIndustry() {
return industry;
}
public void setIndustry(String industry) {
this.industry = industry;
}
public String getValidstatus() {
return validstatus;
}
public void setValidstatus(String validstatus) {
this.validstatus = validstatus;
}
public String getWeixin() {
return weixin;
}
public void setWeixin(String weixin) {
this.weixin = weixin;
}
public String getWeibo() {
return weibo;
}
public void setWeibo(String weibo) {
this.weibo = weibo;
}
public Date getTouchtime() {
return touchtime;
}
public void setTouchtime(Date touchtime) {
this.touchtime = touchtime;
}
public String getDzip() {
return dzip;
}
public void setDzip(String dzip) {
this.dzip = dzip;
}
public String getDaddress() {
return daddress;
}
public void setDaddress(String daddress) {
this.daddress = daddress;
}
public String getDarea() {
return darea;
}
public void setDarea(String darea) {
this.darea = darea;
}
public String getDcity() {
return dcity;
}
public void setDcity(String dcity) {
this.dcity = dcity;
}
public String getDprovince() {
return dprovince;
}
public void setDprovince(String dprovince) {
this.dprovince = dprovince;
}
public boolean isDatastatus() {
return datastatus;
}
public void setDatastatus(boolean datastatus) {
this.datastatus = datastatus;
}
public String getProcessid() {
return processid;
}
public void setProcessid(String processid) {
this.processid = processid;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getCreater() {
return creater;
}
public void setCreater(String creater) {
this.creater = creater;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getUpdateuser() {
return updateuser;
}
public void setUpdateuser(String updateuser) {
this.updateuser = updateuser;
}
public String getUpdateusername() {
return updateusername;
}
public void setUpdateusername(String updateusername) {
this.updateusername = updateusername;
}
public Date getUpdatetime() {
return updatetime;
}
public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime;
}
public String getOrgi() {
return orgi;
}
public void setOrgi(String orgi) {
this.orgi = orgi;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public String getAssignedto() {
return assignedto;
}
public void setAssignedto(String assignedto) {
this.assignedto = assignedto;
}
public String getWfstatus() {
return wfstatus;
}
public void setWfstatus(String wfstatus) {
this.wfstatus = wfstatus;
}
public String getShares() {
return shares;
}
public void setShares(String shares) {
this.shares = shares;
}
public String getOwner() {
return owner;
}
public void setOwner(String owner) {
this.owner = owner;
}
public String getDatadept() {
return datadept;
}
public void setDatadept(String datadept) {
this.datadept = datadept;
}
public String getBatid() {
return batid;
}
public void setBatid(String batid) {
this.batid = batid;
}
public String getMaturity() {
return maturity;
}
public void setMaturity(String maturity) {
this.maturity = maturity;
}
public String getEntcusid() {
return entcusid!=null ? entcusid : id ;
}
public void setEntcusid(String entcusid) {
this.entcusid = entcusid;
}
public String getPinyin() {
return pinyin;
}
public void setPinyin(String pinyin) {
this.pinyin = pinyin;
}
}

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

@ -26,89 +26,89 @@ 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)
public class KbsTopic extends ESBean implements java.io.Serializable , UKAgg{
/**
*
*
*/
private static final long serialVersionUID = 1L;
/**
*
*
*/
private String id = MainUtils.getUUID();
private String sessionid ;
private String title ; //标题
private String content ; //内容
private String weixin; //微信渠道回复
private String email ; //邮件渠道回复
private String sms ; //短信回复
private String tts ; //语音播报回复
private float price ; //问题价格
private String keyword ; //关键词
private String summary ; //摘要
private String tags ; //标签
private boolean anonymous ; //是否匿名提问
private boolean datastatus ; //逻辑删除
private boolean approval ; //是否已经审批通过
private Date begintime ; //有效期开始
private Date endtime ; //有效期结束
private boolean top ; //是否置顶
private boolean essence ; //是否精华
private boolean accept ; //是否已采纳最佳答案
private boolean finish ; //结贴
private int answers ; //回答数量
@Column(name="sviews")
private int views ; //阅读数量
private int followers ; //关注数量
private int collections; //收藏数量
private int comments ; //评论数量
private boolean frommobile ; //是否移动端提问
private String status ; // 状态
private String tptype; //知识分类
private String cate ; //知识 栏目
private String attachment ; //附件
private String username ;
private String orgi ;
private boolean finish; //结贴
private int answers; //回答数量
@Column(name = "sviews")
private int views; //阅读数量
private int followers; //关注数量
private int collections; //收藏数量
private int comments; //评论数量
private boolean frommobile; //是否移动端提问
private String status; // 状态
private String tptype; //知识分类
private String cate; //知识 栏目
private String attachment; //附件
private String username;
private String orgi;
private String creater;
private Date createtime = new Date();
private Date updatetime = new Date();
private String memo;
private String organ;
private int rowcount ;
private String key ;
private User user ;
private String key;
private User user;
/**
* @return the id
*/
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "assigned")
@GenericGenerator(name = "system-uuid", strategy = "assigned")
public String getId() {
return id;
}
@ -162,7 +162,7 @@ public class KbsTopic extends ESBean implements java.io.Serializable , UKAgg{
public void setSummary(String summary) {
this.summary = summary;
}
public boolean isAnonymous() {
return anonymous;
}

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

@ -1,149 +1,149 @@
/*
* Copyright (C) 2017 优客服-多渠道客服系统
* Modifications copyright (C) 2018-2019 Chatopera Inc, <https://www.chatopera.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.chatopera.cc.model;
import com.chatopera.cc.basic.MainUtils;
import org.apache.commons.codec.binary.Base64;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.Date;
@Document(indexName = "cskefu", type = "publishedreport")
@Entity
@Table(name = "uk_publishedreport")
@org.hibernate.annotations.Proxy(lazy = false)
public class PublishedReport implements java.io.Serializable{
private static final long serialVersionUID = 1L;
private String id ;
private String name ;
private String code ;
private String reporttype ;
private String dicid ; //目录ID
private String orgi ;
private String dataid ;
private String dataflag ;
private int startindex ;
private Date startdate ;
private int dataversion;
private String creater ;
private String reportcontent;
private Date createtime;
private Report report ;
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getReporttype() {
return reporttype;
}
public void setReporttype(String reporttype) {
this.reporttype = reporttype;
}
public String getDicid() {
return dicid;
}
public void setDicid(String dicid) {
this.dicid = dicid;
}
public String getOrgi() {
return orgi;
}
public void setOrgi(String orgi) {
this.orgi = orgi;
}
public String getDataid() {
return dataid;
}
public void setDataid(String dataid) {
this.dataid = dataid;
}
public String getDataflag() {
return dataflag;
}
public void setDataflag(String dataflag) {
this.dataflag = dataflag;
}
public int getStartindex() {
return startindex;
}
public void setStartindex(int startindex) {
this.startindex = startindex;
}
public Date getStartdate() {
return startdate;
}
public void setStartdate(Date startdate) {
this.startdate = startdate;
}
public int getDataversion() {
return dataversion;
}
public void setDataversion(int dataversion) {
this.dataversion = dataversion;
}
public String getCreater() {
return creater;
}
public void setCreater(String creater) {
this.creater = creater;
}
public String getReportcontent() {
return reportcontent;
}
public void setReportcontent(String reportcontent) {
this.reportcontent = reportcontent;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
@Transient
public Report getReport() {
Base64 base64 = new Base64();
try {
return report!=null ? report : (report = (this.reportcontent==null?null:(Report) MainUtils.toObject(base64.decode(this.reportcontent))));
} catch (Exception e) {
e.printStackTrace();
}
return report;
}
}
/*
* Copyright (C) 2017 优客服-多渠道客服系统
* Modifications copyright (C) 2018-2019 Chatopera Inc, <https://www.chatopera.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.chatopera.cc.model;
import com.chatopera.cc.basic.MainUtils;
import org.apache.commons.codec.binary.Base64;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.Date;
@Document(indexName = "publishedreport", type = "publishedreport")
@Entity
@Table(name = "uk_publishedreport")
@org.hibernate.annotations.Proxy(lazy = false)
public class PublishedReport implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private String id;
private String name;
private String code;
private String reporttype;
private String dicid; //目录ID
private String orgi;
private String dataid;
private String dataflag;
private int startindex;
private Date startdate;
private int dataversion;
private String creater;
private String reportcontent;
private Date createtime;
private Report report ;
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getReporttype() {
return reporttype;
}
public void setReporttype(String reporttype) {
this.reporttype = reporttype;
}
public String getDicid() {
return dicid;
}
public void setDicid(String dicid) {
this.dicid = dicid;
}
public String getOrgi() {
return orgi;
}
public void setOrgi(String orgi) {
this.orgi = orgi;
}
public String getDataid() {
return dataid;
}
public void setDataid(String dataid) {
this.dataid = dataid;
}
public String getDataflag() {
return dataflag;
}
public void setDataflag(String dataflag) {
this.dataflag = dataflag;
}
public int getStartindex() {
return startindex;
}
public void setStartindex(int startindex) {
this.startindex = startindex;
}
public Date getStartdate() {
return startdate;
}
public void setStartdate(Date startdate) {
this.startdate = startdate;
}
public int getDataversion() {
return dataversion;
}
public void setDataversion(int dataversion) {
this.dataversion = dataversion;
}
public String getCreater() {
return creater;
}
public void setCreater(String creater) {
this.creater = creater;
}
public String getReportcontent() {
return reportcontent;
}
public void setReportcontent(String reportcontent) {
this.reportcontent = reportcontent;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
@Transient
public Report getReport() {
Base64 base64 = new Base64();
try {
return report!=null ? report : (report = (this.reportcontent==null?null:(Report) MainUtils.toObject(base64.decode(this.reportcontent))));
} catch (Exception e) {
e.printStackTrace();
}
return report;
}
}

View File

@ -1,113 +1,113 @@
/*
* Copyright (C) 2017 优客服-多渠道客服系统
* Modifications copyright (C) 2018-2019 Chatopera Inc, <https://www.chatopera.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.chatopera.cc.model;
import com.chatopera.cc.basic.MainUtils;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.Date;
@Document(indexName = "cskefu", type = "quickreply")
@Entity
@Table(name = "uk_quickreply")
@org.hibernate.annotations.Proxy(lazy = false)
public class QuickReply {
private String id = MainUtils.getUUID();
private String title ; //标题
private String content ; //内容
private String type ; //公用 /私有
private String creater; //创建人
private Date createtime = new Date(); //创建时间
private String orgi ; //
private String cate ; //所属分类
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "assigned")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getCreater() {
return creater;
}
public void setCreater(String creater) {
this.creater = creater;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public String getCate() {
return cate;
}
public void setCate(String cate) {
this.cate = cate;
}
public String getOrgi() {
return orgi;
}
public void setOrgi(String orgi) {
this.orgi = orgi;
}
}
/*
* Copyright (C) 2017 优客服-多渠道客服系统
* Modifications copyright (C) 2018-2019 Chatopera Inc, <https://www.chatopera.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.chatopera.cc.model;
import com.chatopera.cc.basic.MainUtils;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.Date;
@Document(indexName = "quickreply", type = "quickreply")
@Entity
@Table(name = "uk_quickreply")
@org.hibernate.annotations.Proxy(lazy = false)
public class QuickReply {
private String id = MainUtils.getUUID();
private String title ; //标题
private String content ; //内容
private String type ; //公用 /私有
private String creater; //创建人
private Date createtime = new Date(); //创建时间
private String orgi ; //
private String cate ; //所属分类
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "assigned")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getCreater() {
return creater;
}
public void setCreater(String creater) {
this.creater = creater;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public String getCate() {
return cate;
}
public void setCate(String cate) {
this.cate = cate;
}
public String getOrgi() {
return orgi;
}
public void setOrgi(String orgi) {
this.orgi = orgi;
}
}

View File

@ -1,272 +1,273 @@
/*
* Copyright (C) 2017 优客服-多渠道客服系统
* Modifications copyright (C) 2018-2019 Chatopera Inc, <https://www.chatopera.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.chatopera.cc.model;
import com.chatopera.cc.basic.MainUtils;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Document(indexName = "cskefu", type = "report")
@Entity
@Table(name = "uk_report")
@org.hibernate.annotations.Proxy(lazy = false)
public class Report extends ESBean implements java.io.Serializable{
/**
*
*/
private static final long serialVersionUID = -5781401948807231526L;
private String id = MainUtils.getUUID();
private String name ;
private String reporttype ; //0 代表动态报表 1 代表自助查询报表
private String viewtype;
private String code ; //变更用处修改为 报表code
private String orgi ;
private int objectcount ; //用来标记报表默认打开是否加载数据
private String dicid ; //目录ID
private String description ;
private Date createtime = new Date();
private String html ; //改变用处用于存储 是否允许里面访问移动端报表
private String status;
private String rolename ; //变更用处标记为 动态报表 默认为 null 或者 0 都是 自助查询1表示自定义报表
private String userid ; //变更用处标记为 仪表盘的 属主ID
private String blacklist ; //变更用处用于区分是否是 仪表盘
private String reportpackage ; //报表路径
private String useacl ; //启用权限控制 , 变更用处 用于控制是否覆盖上级目录的权限
private String reportmodel ; //自助查询的是 保存 Model 的ID
private Date updatetime; //修改时间
private boolean datastatus ;
private String creater;
private int reportversion ;
private String publishedtype ;
private String tabtype ;
private String username ;
private String useremail ;
private boolean cache;//1启用缓存0不启用
private String extparam; //默认使用 player 打开
private String targetreport;//reporttype=shortcuts 的时候的目标报表
private String source ; //报表来源如果是在 事件设计器里创建的 报表则此字段不为空无法保存
private List<ReportModel> reportModels = new ArrayList<ReportModel>();
private List<ReportFilter> reportFilters = new ArrayList<ReportFilter>();
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "assigned")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getReporttype() {
return reporttype;
}
public void setReporttype(String reporttype) {
this.reporttype = reporttype;
}
public String getViewtype() {
return viewtype;
}
public void setViewtype(String viewtype) {
this.viewtype = viewtype;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getOrgi() {
return orgi;
}
public void setOrgi(String orgi) {
this.orgi = orgi;
}
public int getObjectcount() {
return objectcount;
}
public void setObjectcount(int objectcount) {
this.objectcount = objectcount;
}
public String getDicid() {
return dicid;
}
public void setDicid(String dicid) {
this.dicid = dicid;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public String getHtml() {
return html;
}
public void setHtml(String html) {
this.html = html;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getRolename() {
return rolename;
}
public void setRolename(String rolename) {
this.rolename = rolename;
}
public String getUserid() {
return userid;
}
public void setUserid(String userid) {
this.userid = userid;
}
public String getBlacklist() {
return blacklist;
}
public void setBlacklist(String blacklist) {
this.blacklist = blacklist;
}
public String getReportpackage() {
return reportpackage;
}
public void setReportpackage(String reportpackage) {
this.reportpackage = reportpackage;
}
public String getUseacl() {
return useacl;
}
public void setUseacl(String useacl) {
this.useacl = useacl;
}
public String getReportmodel() {
return reportmodel;
}
public void setReportmodel(String reportmodel) {
this.reportmodel = reportmodel;
}
public Date getUpdatetime() {
return updatetime;
}
public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime;
}
public boolean isDatastatus() {
return datastatus;
}
public void setDatastatus(boolean datastatus) {
this.datastatus = datastatus;
}
public String getCreater() {
return creater;
}
public void setCreater(String creater) {
this.creater = creater;
}
public int getReportversion() {
return reportversion;
}
public void setReportversion(int reportversion) {
this.reportversion = reportversion;
}
public String getPublishedtype() {
return publishedtype;
}
public void setPublishedtype(String publishedtype) {
this.publishedtype = publishedtype;
}
public String getTabtype() {
return tabtype;
}
public void setTabtype(String tabtype) {
this.tabtype = tabtype;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getUseremail() {
return useremail;
}
public void setUseremail(String useremail) {
this.useremail = useremail;
}
public boolean isCache() {
return cache;
}
public void setCache(boolean cache) {
this.cache = cache;
}
public String getExtparam() {
return extparam;
}
public void setExtparam(String extparam) {
this.extparam = extparam;
}
public String getTargetreport() {
return targetreport;
}
public void setTargetreport(String targetreport) {
this.targetreport = targetreport;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
@Transient
public List<ReportModel> getReportModels() {
return reportModels;
}
public void setReportModels(List<ReportModel> reportModels) {
this.reportModels = reportModels;
}
@Transient
public List<ReportFilter> getReportFilters() {
return reportFilters;
}
public void setReportFilters(List<ReportFilter> reportFilters) {
this.reportFilters = reportFilters;
}
}
/*
* Copyright (C) 2017 优客服-多渠道客服系统
* Modifications copyright (C) 2018-2019 Chatopera Inc, <https://www.chatopera.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.chatopera.cc.model;
import com.chatopera.cc.basic.MainUtils;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Document(indexName = "report", type = "report")
@Entity
@Table(name = "uk_report")
@org.hibernate.annotations.Proxy(lazy = false)
public class Report extends ESBean implements java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = -5781401948807231526L;
private String id = MainUtils.getUUID();
private String name;
private String reporttype; //0 代表动态报表 1 代表自助查询报表
private String viewtype;
private String code; //变更用处修改为 报表code
private String orgi;
private int objectcount; //用来标记报表默认打开是否加载数据
private String dicid; //目录ID
private String description;
private Date createtime = new Date();
private String html; //改变用处用于存储 是否允许里面访问移动端报表
private String status;
private String rolename; //变更用处标记为 动态报表 默认为 null 或者 0 都是 自助查询1表示自定义报表
private String userid; //变更用处标记为 仪表盘的 属主ID
private String blacklist; //变更用处用于区分是否是 仪表盘
private String reportpackage; //报表路径
private String useacl; //启用权限控制 , 变更用处 用于控制是否覆盖上级目录的权限
private String reportmodel; //自助查询的是 保存 Model 的ID
private Date updatetime; //修改时间
private boolean datastatus;
private String creater;
private int reportversion;
private String publishedtype;
private String tabtype;
private String username;
private String useremail;
private boolean cache;//1启用缓存0不启用
private String extparam; //默认使用 player 打开
private String targetreport;//reporttype=shortcuts 的时候的目标报表
private String source ; //报表来源如果是在 事件设计器里创建的 报表则此字段不为空无法保存
private List<ReportModel> reportModels = new ArrayList<ReportModel>();
private List<ReportFilter> reportFilters = new ArrayList<ReportFilter>();
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "assigned")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getReporttype() {
return reporttype;
}
public void setReporttype(String reporttype) {
this.reporttype = reporttype;
}
public String getViewtype() {
return viewtype;
}
public void setViewtype(String viewtype) {
this.viewtype = viewtype;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getOrgi() {
return orgi;
}
public void setOrgi(String orgi) {
this.orgi = orgi;
}
public int getObjectcount() {
return objectcount;
}
public void setObjectcount(int objectcount) {
this.objectcount = objectcount;
}
public String getDicid() {
return dicid;
}
public void setDicid(String dicid) {
this.dicid = dicid;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public String getHtml() {
return html;
}
public void setHtml(String html) {
this.html = html;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getRolename() {
return rolename;
}
public void setRolename(String rolename) {
this.rolename = rolename;
}
public String getUserid() {
return userid;
}
public void setUserid(String userid) {
this.userid = userid;
}
public String getBlacklist() {
return blacklist;
}
public void setBlacklist(String blacklist) {
this.blacklist = blacklist;
}
public String getReportpackage() {
return reportpackage;
}
public void setReportpackage(String reportpackage) {
this.reportpackage = reportpackage;
}
public String getUseacl() {
return useacl;
}
public void setUseacl(String useacl) {
this.useacl = useacl;
}
public String getReportmodel() {
return reportmodel;
}
public void setReportmodel(String reportmodel) {
this.reportmodel = reportmodel;
}
public Date getUpdatetime() {
return updatetime;
}
public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime;
}
public boolean isDatastatus() {
return datastatus;
}
public void setDatastatus(boolean datastatus) {
this.datastatus = datastatus;
}
public String getCreater() {
return creater;
}
public void setCreater(String creater) {
this.creater = creater;
}
public int getReportversion() {
return reportversion;
}
public void setReportversion(int reportversion) {
this.reportversion = reportversion;
}
public String getPublishedtype() {
return publishedtype;
}
public void setPublishedtype(String publishedtype) {
this.publishedtype = publishedtype;
}
public String getTabtype() {
return tabtype;
}
public void setTabtype(String tabtype) {
this.tabtype = tabtype;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getUseremail() {
return useremail;
}
public void setUseremail(String useremail) {
this.useremail = useremail;
}
public boolean isCache() {
return cache;
}
public void setCache(boolean cache) {
this.cache = cache;
}
public String getExtparam() {
return extparam;
}
public void setExtparam(String extparam) {
this.extparam = extparam;
}
public String getTargetreport() {
return targetreport;
}
public void setTargetreport(String targetreport) {
this.targetreport = targetreport;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
@Transient
public List<ReportModel> getReportModels() {
return reportModels;
}
public void setReportModels(List<ReportModel> reportModels) {
this.reportModels = reportModels;
}
@Transient
public List<ReportFilter> getReportFilters() {
return reportFilters;
}
public void setReportFilters(List<ReportFilter> reportFilters) {
this.reportFilters = reportFilters;
}
}

View File

@ -29,87 +29,85 @@ 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)
public class Topic implements java.io.Serializable{
/**
*
*
*/
private static final long serialVersionUID = 1L;
/**
*
*
*/
private String id = MainUtils.getUUID();
private String sessionid ;
private String title ; //标题
private String content ; //内容
private String weixin; //微信渠道回复
private String email ; //邮件渠道回复
private String sms ; //短信回复
private String tts ; //语音播报回复
private float price ; //问题价格
private String keyword ; //关键词
private String summary ; //摘要
private boolean anonymous ; //是否匿名提问
private Date begintime ; //有效期开始
private Date endtime ; //有效期结束
private boolean top ; //是否置顶
private boolean essence ; //是否精华
private boolean accept ; //是否已采纳最佳答案
private boolean finish ; //结贴
@Transient
private List<String> silimar = new ArrayList<String>();
private int answers ; //回答数量
private int views ; //阅读数量
private int followers ; //关注数量
private int collections; //收藏数量
private int comments ; //评论数量
private boolean mobile ; //是否移动端提问
private String status ; // 状态
private String tptype; //主题类型 问答:分享:讨论
private String cate ; //主题 栏目
private String username ;
private String orgi ;
private int answers; //回答数量
private int views; //阅读数量
private int followers; //关注数量
private int collections; //收藏数量
private int comments; //评论数量
private boolean mobile; //是否移动端提问
private String status; // 状态
private String tptype; //主题类型 问答:分享:讨论
private String cate; //主题 栏目
private String username;
private String orgi;
private String creater;
private Date createtime = new Date();
private Date updatetime = new Date();
private String memo;
private String organ;
private String aiid ; //机器人ID
private User user ;
private String aiid ; //机器人ID
private User user;
/**
* @return the id
*/
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "assigned")
@GenericGenerator(name = "system-uuid", strategy = "assigned")
public String getId() {
return id;
}
@ -163,7 +161,7 @@ public class Topic implements java.io.Serializable{
public void setSummary(String summary) {
this.summary = summary;
}
public boolean isAnonymous() {
return anonymous;
}
@ -409,5 +407,5 @@ public class Topic implements java.io.Serializable{
public void setAiid(String aiid) {
this.aiid = aiid;
}
}