Commit 993fa235 authored by jay's avatar jay

实体类添加注释

parent 856e4726
...@@ -3,8 +3,9 @@ package com.house365.beans.entity; ...@@ -3,8 +3,9 @@ package com.house365.beans.entity;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
/** /**
* @author * app列表url实体表
* Created by Administrator on 2018/9/13. *
* @author Created by Administrator on 2018/9/13.
*/ */
public class AppUrl extends DomainObject { public class AppUrl extends DomainObject {
......
...@@ -5,6 +5,8 @@ import com.house365.beans.system.DomainObject; ...@@ -5,6 +5,8 @@ import com.house365.beans.system.DomainObject;
import java.util.Date; import java.util.Date;
/** /**
* 城市呼叫配置表
*
* @author Created by Administrator on 2019/5/6. * @author Created by Administrator on 2019/5/6.
*/ */
public class CityCallConfig extends DomainObject { public class CityCallConfig extends DomainObject {
......
...@@ -27,6 +27,7 @@ import java.util.Date; ...@@ -27,6 +27,7 @@ import java.util.Date;
/** /**
* CustomerCallbackLog数据库实体/领域对象<br> * CustomerCallbackLog数据库实体/领域对象<br>
* 客户回访记录实体类
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2017-12-29 * @version 1.0, 2017-12-29
...@@ -129,6 +130,7 @@ public class CustomerCallbackLogEntity extends DomainObject { ...@@ -129,6 +130,7 @@ public class CustomerCallbackLogEntity extends DomainObject {
/** /**
* 获取客户ID * 获取客户ID
*
* @return 客户ID * @return 客户ID
*/ */
public Integer getCustomerId() { public Integer getCustomerId() {
...@@ -146,6 +148,7 @@ public class CustomerCallbackLogEntity extends DomainObject { ...@@ -146,6 +148,7 @@ public class CustomerCallbackLogEntity extends DomainObject {
/** /**
* 获取客户经理ID * 获取客户经理ID
*
* @return 客户经理ID * @return 客户经理ID
*/ */
public Integer getManagerId() { public Integer getManagerId() {
...@@ -154,6 +157,7 @@ public class CustomerCallbackLogEntity extends DomainObject { ...@@ -154,6 +157,7 @@ public class CustomerCallbackLogEntity extends DomainObject {
/** /**
* 设置客户经理ID * 设置客户经理ID
*
* @param managerId 客户经理ID * @param managerId 客户经理ID
*/ */
public void setManagerId(Integer managerId) { public void setManagerId(Integer managerId) {
...@@ -162,6 +166,7 @@ public class CustomerCallbackLogEntity extends DomainObject { ...@@ -162,6 +166,7 @@ public class CustomerCallbackLogEntity extends DomainObject {
/** /**
* 获取客户经理姓名 * 获取客户经理姓名
*
* @return 客户经理姓名 * @return 客户经理姓名
*/ */
public String getManagerName() { public String getManagerName() {
...@@ -188,6 +193,7 @@ public class CustomerCallbackLogEntity extends DomainObject { ...@@ -188,6 +193,7 @@ public class CustomerCallbackLogEntity extends DomainObject {
/** /**
* 设置回访内容 * 设置回访内容
*
* @param content 回访内容 * @param content 回访内容
*/ */
public void setContent(String content) { public void setContent(String content) {
...@@ -220,6 +226,7 @@ public class CustomerCallbackLogEntity extends DomainObject { ...@@ -220,6 +226,7 @@ public class CustomerCallbackLogEntity extends DomainObject {
/** /**
* 设置createTime * 设置createTime
*
* @param createTime createTime * @param createTime createTime
*/ */
public void setCreateTime(java.util.Date createTime) { public void setCreateTime(java.util.Date createTime) {
...@@ -371,6 +378,7 @@ public class CustomerCallbackLogEntity extends DomainObject { ...@@ -371,6 +378,7 @@ public class CustomerCallbackLogEntity extends DomainObject {
/** /**
* 对象比较 * 对象比较
*
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
......
...@@ -10,6 +10,8 @@ import javax.validation.constraints.NotNull; ...@@ -10,6 +10,8 @@ import javax.validation.constraints.NotNull;
/** /**
* 客户回访内容模板实体类 * 客户回访内容模板实体类
*
* @author jay
*/ */
public class CustomerCallbackTemplateEntity extends DomainObject { public class CustomerCallbackTemplateEntity extends DomainObject {
......
...@@ -31,6 +31,7 @@ import java.util.List; ...@@ -31,6 +31,7 @@ import java.util.List;
/** /**
* 客户信息数据库实体/领域对象<br> * 客户信息数据库实体/领域对象<br>
* 私客列表去customer_merge,customer表存放所有客户数据
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2016-09-15 * @version 1.0, 2016-09-15
......
...@@ -5,8 +5,9 @@ import com.house365.beans.system.DomainObject; ...@@ -5,8 +5,9 @@ import com.house365.beans.system.DomainObject;
import java.util.Date; import java.util.Date;
/** /**
* @author * 客户操作日志表
* Created by Administrator on 2019/8/14. *
* @author Created by Administrator on 2019/8/14.
*/ */
public class CustomerLogEntity extends DomainObject { public class CustomerLogEntity extends DomainObject {
......
...@@ -6,8 +6,9 @@ import com.house365.beans.system.DomainObject; ...@@ -6,8 +6,9 @@ import com.house365.beans.system.DomainObject;
import java.util.Date; import java.util.Date;
/** /**
* @author * 客户提醒表
* Created by Administrator on 2019/5/24. *
* @author Created by Administrator on 2019/5/24.
*/ */
public class CustomerRemindEntity extends DomainObject { public class CustomerRemindEntity extends DomainObject {
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: DeptSourceStatistics数据库实体/领域对象 * Description: DeptSourceStatistics数据库实体/领域对象
* Copyright: Copyright (c)2016 * Copyright: Copyright (c)2016
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
* @author: 江苏三六五网络股份有限公司 *
* @version: 1.0 * @author: 江苏三六五网络股份有限公司
* @version: 1.0
* Create at: 2016-10-25 上午 09:42:11 * Create at: 2016-10-25 上午 09:42:11
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -13,342 +14,358 @@ ...@@ -13,342 +14,358 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;
/** /**
* DeptSourceStatistics数据库实体/领域对象<br> * DeptSourceStatistics数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2016-10-25 * @version 1.0, 2016-10-25
* @see
* @since 1.0 * @since 1.0
*/ */
public class DeptSourceStatisticsEntity extends StatisticObject{ public class DeptSourceStatisticsEntity extends StatisticObject {
/** /**
* *
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START //columns START
/** /**
* 统计对象ID * 统计对象ID
*/ */
private Integer projectId; private Integer projectId;
/** /**
* 统计对象名称 * 统计对象名称
*/ */
@Length(max=1000, message="长度需要大于0且小于1000") @Length(max = 1000, message = "长度需要大于0且小于1000")
private String projectName; private String projectName;
/** /**
* 统计对象类型 1 部门 2 职员 3 项目 * 统计对象类型 1 部门 2 职员 3 项目
*/ */
@Length(max=45, message="长度需要大于0且小于45") @Length(max = 45, message = "长度需要大于0且小于45")
private String objectType; private String objectType;
/** /**
* 客户状态 * 客户状态
*/ */
private Integer customerStatus; private Integer customerStatus;
/** /**
* 客户数量 * 客户数量
*/ */
private Integer customerNum; private Integer customerNum;
/** /**
* 来源ID * 来源ID
*/ */
private Integer sourceId; private Integer sourceId;
/** /**
* 来源名称 * 来源名称
*/ */
@Length(max=1000, message="长度需要大于0且小于1000") @Length(max = 1000, message = "长度需要大于0且小于1000")
private String sourceName; private String sourceName;
/** /**
* 城市编码 * 城市编码
*/ */
@Length(max=20, message="长度需要大于0且小于20") @Length(max = 20, message = "长度需要大于0且小于20")
private String city; private String city;
/** /**
* 城市名称 * 城市名称
*/ */
@Length(max=20, message="长度需要大于0且小于20") @Length(max = 20, message = "长度需要大于0且小于20")
private String cityName; private String cityName;
/** /**
* 环比 * 环比
*/ */
private java.math.BigDecimal dayBaseRatio;
private java.math.BigDecimal dayBaseRatio;
/**
/** * 创建时间
* 创建时间 */
*/ private java.util.Date createTime;
private java.util.Date createTime;
/**
//columns END * 设置统计对象ID
/* *
public DeptSourceStatistics(){ * @param projectId 统计对象ID
} */
public void setProjectId(Integer projectId) {
public DeptSourceStatistics( this.projectId = projectId;
Integer id }
){
this.id = id; /**
} * 获取统计对象ID
*
*/ * @return 统计对象ID
*/
/** public Integer getProjectId() {
* 设置统计对象ID return this.projectId;
* @param projectId 统计对象ID }
*/
public void setProjectId(Integer projectId) { /**
this.projectId = projectId; * 设置统计对象名称
} *
* @param projectName 统计对象名称
/** */
* 获取统计对象ID public void setProjectName(String projectName) {
* @return 统计对象ID this.projectName = projectName;
*/ }
public Integer getProjectId() {
return this.projectId; /**
} * 获取统计对象名称
*
/** * @return 统计对象名称
* 设置统计对象名称 */
* @param projectName 统计对象名称 public String getProjectName() {
*/ return this.projectName;
public void setProjectName(String projectName) { }
this.projectName = projectName;
} /**
* 设置统计对象类型 1 部门 2 职员 3 项目
/** *
* 获取统计对象名称 * @param objectType 统计对象类型 1 部门 2 职员 3 项目
* @return 统计对象名称 */
*/ public void setObjectType(String objectType) {
public String getProjectName() { this.objectType = objectType;
return this.projectName; }
}
/**
/** * 获取统计对象类型 1 部门 2 职员 3 项目
* 设置统计对象类型 1 部门 2 职员 3 项目 *
* @param objectType 统计对象类型 1 部门 2 职员 3 项目 * @return 统计对象类型 1 部门 2 职员 3 项目
*/ */
public void setObjectType(String objectType) { public String getObjectType() {
this.objectType = objectType; return this.objectType;
} }
/** /**
* 获取统计对象类型 1 部门 2 职员 3 项目 * 设置客户状态
* @return 统计对象类型 1 部门 2 职员 3 项目 *
*/ * @param customerStatus 客户状态
public String getObjectType() { */
return this.objectType; public void setCustomerStatus(Integer customerStatus) {
} this.customerStatus = customerStatus;
}
/**
* 设置客户状态 /**
* @param customerStatus 客户状态 * 获取客户状态
*/ *
public void setCustomerStatus(Integer customerStatus) { * @return 客户状态
this.customerStatus = customerStatus; */
} public Integer getCustomerStatus() {
return this.customerStatus;
/** }
* 获取客户状态
* @return 客户状态 /**
*/ * 设置客户数量
public Integer getCustomerStatus() { *
return this.customerStatus; * @param customerNum 客户数量
} */
public void setCustomerNum(Integer customerNum) {
/** this.customerNum = customerNum;
* 设置客户数量 }
* @param customerNum 客户数量
*/ /**
public void setCustomerNum(Integer customerNum) { * 获取客户数量
this.customerNum = customerNum; *
} * @return 客户数量
*/
/** public Integer getCustomerNum() {
* 获取客户数量 return this.customerNum;
* @return 客户数量 }
*/
public Integer getCustomerNum() { /**
return this.customerNum; * 设置来源ID
} *
* @param sourceId 来源ID
/** */
* 设置来源ID public void setSourceId(Integer sourceId) {
* @param sourceId 来源ID this.sourceId = sourceId;
*/ }
public void setSourceId(Integer sourceId) {
this.sourceId = sourceId; /**
} * 获取来源ID
*
/** * @return 来源ID
* 获取来源ID */
* @return 来源ID public Integer getSourceId() {
*/ return this.sourceId;
public Integer getSourceId() { }
return this.sourceId;
} /**
* 设置来源名称
/** *
* 设置来源名称 * @param sourceName 来源名称
* @param sourceName 来源名称 */
*/ public void setSourceName(String sourceName) {
public void setSourceName(String sourceName) { this.sourceName = sourceName;
this.sourceName = sourceName; }
}
/**
/** * 获取来源名称
* 获取来源名称 *
* @return 来源名称 * @return 来源名称
*/ */
public String getSourceName() { public String getSourceName() {
return this.sourceName; return this.sourceName;
} }
/** /**
* 设置城市编码 * 设置城市编码
* @param city 城市编码 *
*/ * @param city 城市编码
public void setCity(String city) { */
this.city = city; public void setCity(String city) {
} this.city = city;
}
/**
* 获取城市编码 /**
* @return 城市编码 * 获取城市编码
*/ *
public String getCity() { * @return 城市编码
return this.city; */
} public String getCity() {
return this.city;
/** }
* 设置城市名称
* @param cityName 城市名称 /**
*/ * 设置城市名称
public void setCityName(String cityName) { *
this.cityName = cityName; * @param cityName 城市名称
} */
public void setCityName(String cityName) {
/** this.cityName = cityName;
* 获取城市名称 }
* @return 城市名称
*/ /**
public String getCityName() { * 获取城市名称
return this.cityName; *
} * @return 城市名称
*/
/** public String getCityName() {
* 设置环比 return this.cityName;
* @param dayBaseRatio 环比 }
*/
public void setDayBaseRatio(java.math.BigDecimal dayBaseRatio) { /**
this.dayBaseRatio = dayBaseRatio; * 设置环比
} *
* @param dayBaseRatio 环比
/** */
* 获取环比 public void setDayBaseRatio(java.math.BigDecimal dayBaseRatio) {
* @return 环比 this.dayBaseRatio = dayBaseRatio;
*/ }
public java.math.BigDecimal getDayBaseRatio() {
return this.dayBaseRatio; /**
} * 获取环比
*
/** * @return 环比
* 设置创建时间 */
* @param createTime 创建时间 public java.math.BigDecimal getDayBaseRatio() {
*/ return this.dayBaseRatio;
public void setCreateTime(java.util.Date createTime) { }
this.createTime = createTime;
} /**
* 设置创建时间
/** *
* 设置创建时间字符串格式 * @param createTime 创建时间
* @param createTime 创建时间 */
*/ public void setCreateTime(java.util.Date createTime) {
public void setCreateTimeStr(String createTime) { this.createTime = createTime;
if (!com.house365.web.util.StringUtils.isBlank(createTime)) { }
try {
this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime); /**
} catch (java.text.ParseException ex) { * 设置创建时间字符串格式
ex.printStackTrace(); *
} * @param createTime 创建时间
} */
} public void setCreateTimeStr(String createTime) {
if (!com.house365.web.util.StringUtils.isBlank(createTime)) {
/** try {
* 获取创建时间 this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime);
* @return 创建时间 } catch (java.text.ParseException ex) {
*/ ex.printStackTrace();
public java.util.Date getCreateTime() { }
return this.createTime; }
} }
/**
* 获取创建时间
*
* @return 创建时间
*/
public java.util.Date getCreateTime() {
return this.createTime;
}
/** /**
* 实体的toString方法 * 实体的toString方法
*
* @return 实体字符串 * @return 实体字符串
*/ */
public String toString() { @Override
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) public String toString() {
.append("Id",getId()) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("ProjectId",getProjectId()) .append("Id", getId())
.append("ProjectName",getProjectName()) .append("ProjectId", getProjectId())
.append("ObjectType",getObjectType()) .append("ProjectName", getProjectName())
.append("CustomerStatus",getCustomerStatus()) .append("ObjectType", getObjectType())
.append("CustomerNum",getCustomerNum()) .append("CustomerStatus", getCustomerStatus())
.append("SourceId",getSourceId()) .append("CustomerNum", getCustomerNum())
.append("SourceName",getSourceName()) .append("SourceId", getSourceId())
.append("City",getCity()) .append("SourceName", getSourceName())
.append("CityName",getCityName()) .append("City", getCity())
.append("DayBaseRatio",getDayBaseRatio()) .append("CityName", getCityName())
.append("CreateTime",getCreateTime()) .append("DayBaseRatio", getDayBaseRatio())
.toString(); .append("CreateTime", getCreateTime())
} .toString();
}
/**
* 获取hash码 /**
* @return HASH码 * 获取hash码
*/ *
public int hashCode() { * @return HASH码
return new HashCodeBuilder() */
.append(getId()) @Override
.toHashCode(); public int hashCode() {
} return new HashCodeBuilder()
.append(getId())
/** .toHashCode();
* 对象比较 }
* @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 /**
*/ * 对象比较
public boolean equals(Object obj) { *
if(obj instanceof DeptSourceStatisticsEntity == false) return false; * @param obj 待比较对象
if(this == obj) return true; * @return 是否相同<li>true--相同<li>false--不相同
DeptSourceStatisticsEntity other = (DeptSourceStatisticsEntity)obj; */
return new EqualsBuilder() @Override
.append(getId(),other.getId()) public boolean equals(Object obj) {
.isEquals(); if (obj instanceof DeptSourceStatisticsEntity == false) {
} return false;
}
if (this == obj) {
return true;
}
DeptSourceStatisticsEntity other = (DeptSourceStatisticsEntity) obj;
return new EqualsBuilder()
.append(getId(), other.getId())
.isEquals();
}
} }
...@@ -5,6 +5,12 @@ import com.house365.beans.system.DomainObject; ...@@ -5,6 +5,12 @@ import com.house365.beans.system.DomainObject;
import java.util.Date; import java.util.Date;
/**
* 值班人员实体类
*
* @author whh
*/
public class DutyStaffEntity extends DomainObject { public class DutyStaffEntity extends DomainObject {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: EvaluateUserCustomerLog数据库实体/领域对象 * Description: EvaluateUserCustomerLog数据库实体/领域对象
* Copyright: Copyright (c)2018 * Copyright: Copyright (c)2018
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
*
* @author: 江苏三六五网络股份有限公司 * @author: 江苏三六五网络股份有限公司
* @version: 1.0 * @version: 1.0
* Create at: 2018-02-02 上午 11:21:10 * Create at: 2018-02-02 上午 11:21:10
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -22,16 +23,14 @@ import org.hibernate.validator.constraints.Length; ...@@ -22,16 +23,14 @@ import org.hibernate.validator.constraints.Length;
/** /**
* EvaluateUserCustomerLog数据库实体/领域对象<br>评估用户客户日志 * EvaluateUserCustomerLog数据库实体/领域对象<br>评估用户客户日志
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2018-02-02 * @version 1.0, 2018-02-02
* @see * @see
* @since 1.0 * @since 1.0
*/ */
public class EvaluateUserCustomerLogEntity extends DomainObject { public class EvaluateUserCustomerLogEntity extends DomainObject {
/**
*
*/
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
...@@ -39,7 +38,6 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -39,7 +38,6 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 直销人员id * 直销人员id
*/ */
private Integer userId; private Integer userId;
/** /**
...@@ -51,7 +49,6 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -51,7 +49,6 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 楼盘id * 楼盘id
*/ */
private Integer projectId; private Integer projectId;
/** /**
...@@ -69,7 +66,6 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -69,7 +66,6 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 评分 * 评分
*/ */
private Integer score; private Integer score;
/** /**
...@@ -78,7 +74,6 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -78,7 +74,6 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
@Length(max = 255, message = "长度需要大于0且小于255") @Length(max = 255, message = "长度需要大于0且小于255")
private String content; private String content;
private String contentTags; private String contentTags;
public String getContentTags() { public String getContentTags() {
...@@ -92,49 +87,41 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -92,49 +87,41 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 删除标记 0:未删除;1:已删除; * 删除标记 0:未删除;1:已删除;
*/ */
private Integer isDeleted; private Integer isDeleted;
/** /**
* 是否已评价 0:未评价;1:已评价; * 是否已评价 0:未评价;1:已评价;
*/ */
private Integer isEvaluated; private Integer isEvaluated;
/** /**
* 审核状态 0:待审核;1:审核通过;2:审核不通过; * 审核状态 0:待审核;1:审核通过;2:审核不通过;
*/ */
private Integer checkStatus; private Integer checkStatus;
/** /**
* 带看创建时间 * 带看创建时间
*/ */
private java.util.Date createTime; private java.util.Date createTime;
/** /**
* 客户评价时间 * 客户评价时间
*/ */
private java.util.Date evaluateTime; private java.util.Date evaluateTime;
/** /**
* 带看创建时间 * 带看创建时间
*/ */
private String createDateStr; private String createDateStr;
/** /**
* 客户评价时间 * 客户评价时间
*/ */
private String evaluateDateStr; private String evaluateDateStr;
/** /**
* 审核时间 * 审核时间
*/ */
private java.util.Date checkTime; private java.util.Date checkTime;
/** /**
...@@ -149,25 +136,8 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -149,25 +136,8 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
@Length(max = 100, message = "长度需要大于0且小于100") @Length(max = 100, message = "长度需要大于0且小于100")
private String city; private String city;
/**
* channel
*/
private Integer channel; private Integer channel;
//columns END
/*
public EvaluateUserCustomerLog(){
}
public EvaluateUserCustomerLog(
Integer id
){
this.id = id;
}
*/
public String getCreateDateStr() { public String getCreateDateStr() {
return createDateStr; return createDateStr;
} }
...@@ -186,6 +156,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -186,6 +156,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 获取直销人员id * 获取直销人员id
*
* @return 直销人员id * @return 直销人员id
*/ */
public Integer getUserId() { public Integer getUserId() {
...@@ -194,6 +165,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -194,6 +165,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 设置直销人员id * 设置直销人员id
*
* @param userId 直销人员id * @param userId 直销人员id
*/ */
public void setUserId(Integer userId) { public void setUserId(Integer userId) {
...@@ -202,6 +174,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -202,6 +174,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 获取直销人员姓名 * 获取直销人员姓名
*
* @return 直销人员姓名 * @return 直销人员姓名
*/ */
public String getUserName() { public String getUserName() {
...@@ -210,6 +183,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -210,6 +183,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 设置直销人员姓名 * 设置直销人员姓名
*
* @param userName 直销人员姓名 * @param userName 直销人员姓名
*/ */
public void setUserName(String userName) { public void setUserName(String userName) {
...@@ -218,6 +192,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -218,6 +192,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 获取楼盘id * 获取楼盘id
*
* @return 楼盘id * @return 楼盘id
*/ */
public Integer getProjectId() { public Integer getProjectId() {
...@@ -226,6 +201,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -226,6 +201,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 设置楼盘id * 设置楼盘id
*
* @param projectId 楼盘id * @param projectId 楼盘id
*/ */
public void setProjectId(Integer projectId) { public void setProjectId(Integer projectId) {
...@@ -234,6 +210,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -234,6 +210,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 获取楼盘名称 * 获取楼盘名称
*
* @return 楼盘名称 * @return 楼盘名称
*/ */
public String getProjectName() { public String getProjectName() {
...@@ -242,6 +219,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -242,6 +219,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 设置楼盘名称 * 设置楼盘名称
*
* @param projectName 楼盘名称 * @param projectName 楼盘名称
*/ */
public void setProjectName(String projectName) { public void setProjectName(String projectName) {
...@@ -250,6 +228,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -250,6 +228,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 获取客户姓名 * 获取客户姓名
*
* @return 客户姓名 * @return 客户姓名
*/ */
public String getCustomerName() { public String getCustomerName() {
...@@ -258,6 +237,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -258,6 +237,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 设置客户姓名 * 设置客户姓名
*
* @param customerName 客户姓名 * @param customerName 客户姓名
*/ */
public void setCustomerName(String customerName) { public void setCustomerName(String customerName) {
...@@ -473,8 +453,9 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -473,8 +453,9 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 获取城市 * 获取城市
*
* @return 城市 * @return 城市
*/ */
public String getCity() { public String getCity() {
return this.city; return this.city;
} }
...@@ -511,6 +492,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -511,6 +492,7 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
* *
* @return 实体字符串 * @return 实体字符串
*/ */
@Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("Id", getId()) .append("Id", getId())
...@@ -535,26 +517,34 @@ public class EvaluateUserCustomerLogEntity extends DomainObject { ...@@ -535,26 +517,34 @@ public class EvaluateUserCustomerLogEntity extends DomainObject {
/** /**
* 获取hash码 * 获取hash码
*
* @return HASH码 * @return HASH码
*/ */
public int hashCode() { @Override
return new HashCodeBuilder() public int hashCode() {
.append(getId()) return new HashCodeBuilder()
.toHashCode(); .append(getId())
} .toHashCode();
}
/** /**
* 对象比较 * 对象比较
* @param obj 待比较对象 *
* @return 是否相同<li>true--相同<li>false--不相同 * @param obj 待比较对象
*/ * @return 是否相同<li>true--相同<li>false--不相同
public boolean equals(Object obj) { */
if(obj instanceof EvaluateUserCustomerLogEntity == false) return false; @Override
if(this == obj) return true; public boolean equals(Object obj) {
EvaluateUserCustomerLogEntity other = (EvaluateUserCustomerLogEntity)obj; if (obj instanceof EvaluateUserCustomerLogEntity == false) {
return new EqualsBuilder() return false;
.append(getId(),other.getId()) }
.isEquals(); if (this == obj) {
} return true;
}
EvaluateUserCustomerLogEntity other = (EvaluateUserCustomerLogEntity) obj;
return new EqualsBuilder()
.append(getId(), other.getId())
.isEquals();
}
} }
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: HouseInfo数据库实体/领域对象 * Description: HouseInfo数据库实体/领域对象
* Copyright: Copyright (c)2017 * Copyright: Copyright (c)2017
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
* @author: 江苏三六五网络股份有限公司 *
* @version: 1.0 * @author: 江苏三六五网络股份有限公司
* @version: 1.0
* Create at: 2017-12-18 下午 15:44:53 * Create at: 2017-12-18 下午 15:44:53
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -13,259 +14,270 @@ ...@@ -13,259 +14,270 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;
/** /**
* HouseInfo数据库实体/领域对象<br> * HouseInfo数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2017-12-18 * @version 1.0, 2017-12-18
* @see * @see
* @since 1.0 * @since 1.0
*/ */
public class HouseInfoEntity extends DomainObject{ public class HouseInfoEntity extends DomainObject {
/** /**
* *
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START //columns START
/** /**
* 楼盘编号 * 楼盘编号
*/ */
private Integer houseId; private Integer houseId;
/** /**
* 楼盘名称 * 楼盘名称
*/ */
@Length(max=20, message="长度需要大于0且小于20") @Length(max = 20, message = "长度需要大于0且小于20")
private String houseName; private String houseName;
/** /**
* 楼盘联系电话 * 楼盘联系电话
*/ */
@Length(max=200, message="长度需要大于0且小于200") @Length(max = 200, message = "长度需要大于0且小于200")
private String housePhone; private String housePhone;
/** /**
* 城市编号 * 城市编号
*/ */
private Integer cityId;
private Integer cityId;
/**
/** * 城市名称
* 城市名称 */
*/ @Length(max = 20, message = "长度需要大于0且小于20")
@Length(max=20, message="长度需要大于0且小于20") private String cityName;
private String cityName;
/**
/** * 是否删除 0:未删除 1:已删除
* 是否删除 0:未删除 1:已删除 */
*/
private Integer isDeleted;
private Integer isDeleted;
/**
/** * 物业类型 1住宅2写字楼3别墅4商业5公寓
* 物业类型 1住宅2写字楼3别墅4商业5公寓 */
*/ private Integer channel;
private Integer channel; /**
* cityKey
/** */
* cityKey @Length(max = 20, message = "长度需要大于0且小于20")
*/ private String cityKey;
@Length(max=20, message="长度需要大于0且小于20")
private String cityKey;
/**
//columns END * 设置楼盘编号
/* *
public HouseInfo(){ * @param houseId 楼盘编号
} */
public void setHouseId(Integer houseId) {
public HouseInfo( this.houseId = houseId;
Integer id }
){
this.id = id; /**
} * 获取楼盘编号
*
*/ * @return 楼盘编号
*/
/** public Integer getHouseId() {
* 设置楼盘编号 return this.houseId;
* @param houseId 楼盘编号 }
*/
public void setHouseId(Integer houseId) { /**
this.houseId = houseId; * 设置楼盘名称
} *
* @param houseName 楼盘名称
/** */
* 获取楼盘编号 public void setHouseName(String houseName) {
* @return 楼盘编号 this.houseName = houseName;
*/ }
public Integer getHouseId() {
return this.houseId; /**
} * 获取楼盘名称
*
/** * @return 楼盘名称
* 设置楼盘名称 */
* @param houseName 楼盘名称 public String getHouseName() {
*/ return this.houseName;
public void setHouseName(String houseName) { }
this.houseName = houseName;
} /**
* 设置楼盘联系电话
/** *
* 获取楼盘名称 * @param housePhone 楼盘联系电话
* @return 楼盘名称 */
*/ public void setHousePhone(String housePhone) {
public String getHouseName() { this.housePhone = housePhone;
return this.houseName; }
}
/**
/** * 获取楼盘联系电话
* 设置楼盘联系电话 *
* @param housePhone 楼盘联系电话 * @return 楼盘联系电话
*/ */
public void setHousePhone(String housePhone) { public String getHousePhone() {
this.housePhone = housePhone; return this.housePhone;
} }
/** /**
* 获取楼盘联系电话 * 设置城市编号
* @return 楼盘联系电话 *
*/ * @param cityId 城市编号
public String getHousePhone() { */
return this.housePhone; public void setCityId(Integer cityId) {
} this.cityId = cityId;
}
/**
* 设置城市编号 /**
* @param cityId 城市编号 * 获取城市编号
*/ *
public void setCityId(Integer cityId) { * @return 城市编号
this.cityId = cityId; */
} public Integer getCityId() {
return this.cityId;
/** }
* 获取城市编号
* @return 城市编号 /**
*/ * 设置城市名称
public Integer getCityId() { *
return this.cityId; * @param cityName 城市名称
} */
public void setCityName(String cityName) {
/** this.cityName = cityName;
* 设置城市名称 }
* @param cityName 城市名称
*/ /**
public void setCityName(String cityName) { * 获取城市名称
this.cityName = cityName; *
} * @return 城市名称
*/
/** public String getCityName() {
* 获取城市名称 return this.cityName;
* @return 城市名称 }
*/
public String getCityName() { /**
return this.cityName; * 设置是否删除 0:未删除 1:已删除
} *
* @param isDeleted 是否删除 0:未删除 1:已删除
/** */
* 设置是否删除 0:未删除 1:已删除 public void setIsDeleted(Integer isDeleted) {
* @param isDeleted 是否删除 0:未删除 1:已删除 this.isDeleted = isDeleted;
*/ }
public void setIsDeleted(Integer isDeleted) {
this.isDeleted = isDeleted; /**
} * 获取是否删除 0:未删除 1:已删除
*
/** * @return 是否删除 0:未删除 1:已删除
* 获取是否删除 0:未删除 1:已删除 */
* @return 是否删除 0:未删除 1:已删除 public Integer getIsDeleted() {
*/ return this.isDeleted;
public Integer getIsDeleted() { }
return this.isDeleted;
} /**
* 设置物业类型 1住宅2写字楼3别墅4商业5公寓
/** *
* 设置物业类型 1住宅2写字楼3别墅4商业5公寓 * @param channel 物业类型 1住宅2写字楼3别墅4商业5公寓
* @param channel 物业类型 1住宅2写字楼3别墅4商业5公寓 */
*/ public void setChannel(Integer channel) {
public void setChannel(Integer channel) { this.channel = channel;
this.channel = channel; }
}
/**
/** * 获取物业类型 1住宅2写字楼3别墅4商业5公寓
* 获取物业类型 1住宅2写字楼3别墅4商业5公寓 *
* @return 物业类型 1住宅2写字楼3别墅4商业5公寓 * @return 物业类型 1住宅2写字楼3别墅4商业5公寓
*/ */
public Integer getChannel() { public Integer getChannel() {
return this.channel; return this.channel;
} }
/** /**
* 设置cityKey * 设置cityKey
* @param cityKey cityKey *
*/ * @param cityKey cityKey
public void setCityKey(String cityKey) { */
this.cityKey = cityKey; public void setCityKey(String cityKey) {
} this.cityKey = cityKey;
}
/**
* 获取cityKey /**
* @return cityKey * 获取cityKey
*/ *
public String getCityKey() { * @return cityKey
return this.cityKey; */
} public String getCityKey() {
return this.cityKey;
}
/** /**
* 实体的toString方法 * 实体的toString方法
*
* @return 实体字符串 * @return 实体字符串
*/ */
public String toString() { @Override
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) public String toString() {
.append("Id",getId()) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("HouseId",getHouseId()) .append("Id", getId())
.append("HouseName",getHouseName()) .append("HouseId", getHouseId())
.append("HousePhone",getHousePhone()) .append("HouseName", getHouseName())
.append("CityId",getCityId()) .append("HousePhone", getHousePhone())
.append("CityName",getCityName()) .append("CityId", getCityId())
.append("IsDeleted",getIsDeleted()) .append("CityName", getCityName())
.append("Channel",getChannel()) .append("IsDeleted", getIsDeleted())
.append("CityKey",getCityKey()) .append("Channel", getChannel())
.toString(); .append("CityKey", getCityKey())
} .toString();
}
/**
* 获取hash码 /**
* @return HASH码 * 获取hash码
*/ *
public int hashCode() { * @return HASH码
return new HashCodeBuilder() */
.append(getId()) @Override
.toHashCode(); public int hashCode() {
} return new HashCodeBuilder()
.append(getId())
/** .toHashCode();
* 对象比较 }
* @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 /**
*/ * 对象比较
public boolean equals(Object obj) { *
if(obj instanceof HouseInfoEntity == false) return false; * @param obj 待比较对象
if(this == obj) return true; * @return 是否相同<li>true--相同<li>false--不相同
HouseInfoEntity other = (HouseInfoEntity)obj; */
return new EqualsBuilder() @Override
.append(getId(),other.getId()) public boolean equals(Object obj) {
.isEquals(); if (obj instanceof HouseInfoEntity == false) {
} return false;
}
if (this == obj) {
return true;
}
HouseInfoEntity other = (HouseInfoEntity) obj;
return new EqualsBuilder()
.append(getId(), other.getId())
.isEquals();
}
} }
...@@ -2,6 +2,11 @@ package com.house365.beans.entity; ...@@ -2,6 +2,11 @@ package com.house365.beans.entity;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
/**
* 客服实体类
*
* @author whh
*/
public class KefuEntity extends DomainObject { public class KefuEntity extends DomainObject {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -3,8 +3,12 @@ package com.house365.beans.entity; ...@@ -3,8 +3,12 @@ package com.house365.beans.entity;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
import java.util.Date; import java.util.Date;
import java.util.List;
/**
* 客户标签实体类
*
* @author whh
*/
public class LabelEntity extends DomainObject { public class LabelEntity extends DomainObject {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private String labelId; private String labelId;
......
...@@ -71,25 +71,21 @@ public class LocalReportEntity extends DomainObject { ...@@ -71,25 +71,21 @@ public class LocalReportEntity extends DomainObject {
/** /**
* 报备 * 报备
*/ */
private Integer record; private Integer record;
/** /**
* 到访 * 到访
*/ */
private Integer visit; private Integer visit;
/** /**
* 认购 * 认购
*/ */
private Integer buy; private Integer buy;
/** /**
* 业绩 * 业绩
*/ */
private Integer score; private Integer score;
/** /**
...@@ -126,7 +122,6 @@ public class LocalReportEntity extends DomainObject { ...@@ -126,7 +122,6 @@ public class LocalReportEntity extends DomainObject {
/** /**
* updateTime * updateTime
*/ */
private java.util.Date updateTime; private java.util.Date updateTime;
/** /**
...@@ -479,16 +474,17 @@ public class LocalReportEntity extends DomainObject { ...@@ -479,16 +474,17 @@ public class LocalReportEntity extends DomainObject {
* *
* @return 实体字符串 * @return 实体字符串
*/ */
@Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("ChannelId", return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("ChannelId",
getChannelId()).append( getChannelId()).append(
"DepartId", getDepartId()).append("Name", getName()).append("Record", getRecord()).append("Visit", "DepartId", getDepartId()).append("Name", getName()).append("Record", getRecord()).append("Visit",
getVisit()).append( getVisit()).append(
"Buy", getBuy()).append("Score", getScore()).append("City", getCity()).append("Status", getStatus()).append( "Buy", getBuy()).append("Score", getScore()).append("City", getCity()).append("Status", getStatus()).append(
"Creater", getCreater()).append("CreateTime", getCreateTime()).append("LastModifier", "Creater", getCreater()).append("CreateTime", getCreateTime()).append("LastModifier",
getLastModifier()).append( getLastModifier()).append(
"UpdateTime", getUpdateTime()).append("ReportDate", getReportDate()).append("Buyorder", "UpdateTime", getUpdateTime()).append("ReportDate", getReportDate()).append("Buyorder",
getBuyorder()).toString(); getBuyorder()).toString();
} }
/** /**
...@@ -496,6 +492,7 @@ public class LocalReportEntity extends DomainObject { ...@@ -496,6 +492,7 @@ public class LocalReportEntity extends DomainObject {
* *
* @return HASH码 * @return HASH码
*/ */
@Override
public int hashCode() { public int hashCode() {
return new HashCodeBuilder().append(getId()).toHashCode(); return new HashCodeBuilder().append(getId()).toHashCode();
} }
...@@ -506,11 +503,14 @@ public class LocalReportEntity extends DomainObject { ...@@ -506,11 +503,14 @@ public class LocalReportEntity extends DomainObject {
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof LocalReportEntity == false) if (obj instanceof LocalReportEntity == false) {
return false; return false;
if (this == obj) }
if (this == obj) {
return true; return true;
}
LocalReportEntity other = (LocalReportEntity) obj; LocalReportEntity other = (LocalReportEntity) obj;
return new EqualsBuilder().append(getId(), other.getId()).isEquals(); return new EqualsBuilder().append(getId(), other.getId()).isEquals();
} }
......
...@@ -3,8 +3,9 @@ package com.house365.beans.entity; ...@@ -3,8 +3,9 @@ package com.house365.beans.entity;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
/** /**
* @author * 日志反射解析表实体类
* Created by Administrator on 2019/8/19. *
* @author Created by Administrator on 2019/8/19.
*/ */
public class LogFieldEntity extends DomainObject { public class LogFieldEntity extends DomainObject {
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: MarketBuildingRel数据库实体/领域对象 * Description: MarketBuildingRel数据库实体/领域对象
* Copyright: Copyright (c)2017 * Copyright: Copyright (c)2017
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
* @author: 江苏三六五网络股份有限公司 *
* @version: 1.0 * @author: 江苏三六五网络股份有限公司
* @version: 1.0
* Create at: 2017-12-05 下午 19:20:56 * Create at: 2017-12-05 下午 19:20:56
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -13,9 +14,7 @@ ...@@ -13,9 +14,7 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
...@@ -23,110 +22,111 @@ import org.apache.commons.lang3.builder.ToStringStyle; ...@@ -23,110 +22,111 @@ import org.apache.commons.lang3.builder.ToStringStyle;
/** /**
* MarketBuildingRel数据库实体/领域对象<br> * MarketBuildingRel数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2017-12-05 * @version 1.0, 2017-12-05
* @see * @see
* @since 1.0 * @since 1.0
*/ */
public class MarketBuildingRelEntity extends DomainObject{ public class MarketBuildingRelEntity extends DomainObject {
/** /**
* *
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START
/**
* 楼盘ID
*/
private Integer buildingId;
/**
* activeId
*/
private Integer activeId;
//columns END
/*
public MarketBuildingRel(){
}
public MarketBuildingRel( //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
Integer id //columns START
){ /**
this.id = id; * 楼盘ID
} */
*/ private Integer buildingId;
/** /**
* 设置楼盘ID * activeId
* @param buildingId 楼盘ID */
*/ private Integer activeId;
public void setBuildingId(Integer buildingId) {
this.buildingId = buildingId;
}
/** /**
* 获取楼盘ID * 设置楼盘ID
* @return 楼盘ID *
*/ * @param buildingId 楼盘ID
public Integer getBuildingId() { */
return this.buildingId; public void setBuildingId(Integer buildingId) {
} this.buildingId = buildingId;
}
/** /**
* 设置activeId * 获取楼盘ID
* @param activeId activeId *
*/ * @return 楼盘ID
public void setActiveId(Integer activeId) { */
this.activeId = activeId; public Integer getBuildingId() {
} return this.buildingId;
}
/** /**
* 获取activeId * 设置activeId
* @return activeId *
*/ * @param activeId activeId
public Integer getActiveId() { */
return this.activeId; public void setActiveId(Integer activeId) {
} this.activeId = activeId;
}
/**
* 获取activeId
*
* @return activeId
*/
public Integer getActiveId() {
return this.activeId;
}
/** /**
* 实体的toString方法 * 实体的toString方法
*
* @return 实体字符串 * @return 实体字符串
*/ */
public String toString() { @Override
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) public String toString() {
.append("Id",getId()) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("BuildingId",getBuildingId()) .append("Id", getId())
.append("ActiveId",getActiveId()) .append("BuildingId", getBuildingId())
.toString(); .append("ActiveId", getActiveId())
} .toString();
}
/** /**
* 获取hash码 * 获取hash码
* @return HASH码 *
*/ * @return HASH码
public int hashCode() { */
return new HashCodeBuilder() @Override
.append(getId()) public int hashCode() {
.toHashCode(); return new HashCodeBuilder()
} .append(getId())
.toHashCode();
}
/** /**
* 对象比较 * 对象比较
* @param obj 待比较对象 *
* @return 是否相同<li>true--相同<li>false--不相同 * @param obj 待比较对象
*/ * @return 是否相同<li>true--相同<li>false--不相同
public boolean equals(Object obj) { */
if(obj instanceof MarketBuildingRelEntity == false) return false; @Override
if(this == obj) return true; public boolean equals(Object obj) {
MarketBuildingRelEntity other = (MarketBuildingRelEntity)obj; if (obj instanceof MarketBuildingRelEntity == false) {
return new EqualsBuilder() return false;
.append(getId(),other.getId()) }
.isEquals(); if (this == obj) {
} return true;
}
MarketBuildingRelEntity other = (MarketBuildingRelEntity) obj;
return new EqualsBuilder()
.append(getId(), other.getId())
.isEquals();
}
} }
...@@ -4,6 +4,11 @@ import com.house365.beans.system.DomainObject; ...@@ -4,6 +4,11 @@ import com.house365.beans.system.DomainObject;
import java.util.Date; import java.util.Date;
/**
* 信息实体类
*
* @author whh
*/
public class MessageEntity extends DomainObject { public class MessageEntity extends DomainObject {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -5,8 +5,9 @@ import com.house365.beans.system.DomainObject; ...@@ -5,8 +5,9 @@ import com.house365.beans.system.DomainObject;
import java.util.Date; import java.util.Date;
/** /**
* @author * 信息日志表
* Created by Administrator on 2018/12/11. *
* @author Created by Administrator on 2018/12/11.
*/ */
public class MessageLogEntity extends DomainObject { public class MessageLogEntity extends DomainObject {
......
...@@ -3,9 +3,10 @@ package com.house365.beans.entity; ...@@ -3,9 +3,10 @@ package com.house365.beans.entity;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
/** /**
* 新房城市配置 * 新房城市配置实体类
*
* @author jay * @author jay
* Created by Administrator on 2020/6/11. * Created by Administrator on 2020/6/11.
*/ */
public class NewHouseCityEntity extends DomainObject { public class NewHouseCityEntity extends DomainObject {
......
...@@ -14,14 +14,14 @@ ...@@ -14,14 +14,14 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
/** /**
* 公告数据库实体/领域对象<br> * 公告数据库实体/领域对象<br>
...@@ -32,9 +32,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; ...@@ -32,9 +32,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
* @since 1.0 * @since 1.0
*/ */
public class NoticeEntity extends DomainObject { public class NoticeEntity extends DomainObject {
/**
*
*/
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
...@@ -89,7 +87,6 @@ public class NoticeEntity extends DomainObject { ...@@ -89,7 +87,6 @@ public class NoticeEntity extends DomainObject {
/** /**
* 最后一次修改人用户ID * 最后一次修改人用户ID
*/ */
private Integer updateUserid; private Integer updateUserid;
/** /**
...@@ -101,7 +98,6 @@ public class NoticeEntity extends DomainObject { ...@@ -101,7 +98,6 @@ public class NoticeEntity extends DomainObject {
/** /**
* 最后一次修改时间 * 最后一次修改时间
*/ */
private java.util.Date updateTime; private java.util.Date updateTime;
/** /**
...@@ -396,16 +392,17 @@ public class NoticeEntity extends DomainObject { ...@@ -396,16 +392,17 @@ public class NoticeEntity extends DomainObject {
* *
* @return 实体字符串 * @return 实体字符串
*/ */
@Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("Title", return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("Title",
getTitle()).append( getTitle()).append(
"Content", getContent()).append("Top", getTop()).append("Red", getRed()).append("CreateUserid", "Content", getContent()).append("Top", getTop()).append("Red", getRed()).append("CreateUserid",
getCreateUserid()).append( getCreateUserid()).append(
"CreateUsername", getCreateUsername()).append("CreateTime", getCreateTime()).append("CreateIp", "CreateUsername", getCreateUsername()).append("CreateTime", getCreateTime()).append("CreateIp",
getCreateIp()).append( getCreateIp()).append(
"UpdateUserid", getUpdateUserid()).append("UpdateUsername", getUpdateUsername()).append("UpdateTime", "UpdateUserid", getUpdateUserid()).append("UpdateUsername", getUpdateUsername()).append("UpdateTime",
getUpdateTime()).append( getUpdateTime()).append(
"UpdateIp", getUpdateIp()).toString(); "UpdateIp", getUpdateIp()).toString();
} }
/** /**
...@@ -413,6 +410,7 @@ public class NoticeEntity extends DomainObject { ...@@ -413,6 +410,7 @@ public class NoticeEntity extends DomainObject {
* *
* @return HASH码 * @return HASH码
*/ */
@Override
public int hashCode() { public int hashCode() {
return new HashCodeBuilder().append(getId()).toHashCode(); return new HashCodeBuilder().append(getId()).toHashCode();
} }
...@@ -423,11 +421,14 @@ public class NoticeEntity extends DomainObject { ...@@ -423,11 +421,14 @@ public class NoticeEntity extends DomainObject {
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof NoticeEntity == false) if (obj instanceof NoticeEntity == false) {
return false; return false;
if (this == obj) }
if (this == obj) {
return true; return true;
}
NoticeEntity other = (NoticeEntity) obj; NoticeEntity other = (NoticeEntity) obj;
return new EqualsBuilder().append(getId(), other.getId()).isEquals(); return new EqualsBuilder().append(getId(), other.getId()).isEquals();
} }
......
...@@ -52,13 +52,11 @@ public class PermissionEntity extends DomainObject { ...@@ -52,13 +52,11 @@ public class PermissionEntity extends DomainObject {
/** /**
* 父菜单ID * 父菜单ID
*/ */
protected Integer parentId; protected Integer parentId;
/** /**
* 排序 * 排序
*/ */
protected Integer orderNum; protected Integer orderNum;
/** /**
...@@ -70,7 +68,6 @@ public class PermissionEntity extends DomainObject { ...@@ -70,7 +68,6 @@ public class PermissionEntity extends DomainObject {
/** /**
* 1 菜单 2 页面 3 操作 * 1 菜单 2 页面 3 操作
*/ */
protected java.lang.Integer type; protected java.lang.Integer type;
/** /**
...@@ -113,7 +110,6 @@ public class PermissionEntity extends DomainObject { ...@@ -113,7 +110,6 @@ public class PermissionEntity extends DomainObject {
/** /**
* 最后一次修改人用户ID * 最后一次修改人用户ID
*/ */
protected Integer updateUserid; protected Integer updateUserid;
/** /**
...@@ -125,7 +121,6 @@ public class PermissionEntity extends DomainObject { ...@@ -125,7 +121,6 @@ public class PermissionEntity extends DomainObject {
/** /**
* 最后一次修改时间 * 最后一次修改时间
*/ */
protected java.util.Date updateTime; protected java.util.Date updateTime;
/** /**
...@@ -463,17 +458,18 @@ public class PermissionEntity extends DomainObject { ...@@ -463,17 +458,18 @@ public class PermissionEntity extends DomainObject {
* *
* @return 实体字符串 * @return 实体字符串
*/ */
@Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("Code", return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("Code",
getCode()).append( getCode()).append(
"Name", getName()).append("ParentId", getParentId()).append("OrderNum", getOrderNum()).append("Resource", "Name", getName()).append("ParentId", getParentId()).append("OrderNum", getOrderNum()).append("Resource",
getResource()).append( getResource()).append(
"Type", getType()).append("CreateUserid", getCreateUserid()).append("CreateUsername", "Type", getType()).append("CreateUserid", getCreateUserid()).append("CreateUsername",
getCreateUsername()).append( getCreateUsername()).append(
"CreateTime", getCreateTime()).append("CreateIp", getCreateIp()).append("UpdateUserid", "CreateTime", getCreateTime()).append("CreateIp", getCreateIp()).append("UpdateUserid",
getUpdateUserid()).append( getUpdateUserid()).append(
"UpdateUsername", getUpdateUsername()).append("UpdateTime", getUpdateTime()).append("UpdateIp", "UpdateUsername", getUpdateUsername()).append("UpdateTime", getUpdateTime()).append("UpdateIp",
getUpdateIp()).toString(); getUpdateIp()).toString();
} }
/** /**
...@@ -481,6 +477,7 @@ public class PermissionEntity extends DomainObject { ...@@ -481,6 +477,7 @@ public class PermissionEntity extends DomainObject {
* *
* @return HASH码 * @return HASH码
*/ */
@Override
public int hashCode() { public int hashCode() {
return new HashCodeBuilder().append(getId()).toHashCode(); return new HashCodeBuilder().append(getId()).toHashCode();
} }
...@@ -491,11 +488,14 @@ public class PermissionEntity extends DomainObject { ...@@ -491,11 +488,14 @@ public class PermissionEntity extends DomainObject {
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof PermissionEntity == false) if (obj instanceof PermissionEntity == false) {
return false; return false;
if (this == obj) }
if (this == obj) {
return true; return true;
}
PermissionEntity other = (PermissionEntity) obj; PermissionEntity other = (PermissionEntity) obj;
return new EqualsBuilder().append(getId(), other.getId()).isEquals(); return new EqualsBuilder().append(getId(), other.getId()).isEquals();
} }
......
...@@ -16,7 +16,6 @@ public class ProjectDynamicEntity extends DomainObject { ...@@ -16,7 +16,6 @@ public class ProjectDynamicEntity extends DomainObject {
private List picList; private List picList;
// private Integer id;
private Integer projectId; private Integer projectId;
private String projectName; private String projectName;
private Integer createUserid; private Integer createUserid;
...@@ -71,16 +70,6 @@ public class ProjectDynamicEntity extends DomainObject { ...@@ -71,16 +70,6 @@ public class ProjectDynamicEntity extends DomainObject {
this.picList = picList; this.picList = picList;
} }
// @Override
// public Integer getId() {
// return id;
// }
//
// @Override
// public void setId(Integer id) {
// this.id = id;
// }
public Integer getProjectId() { public Integer getProjectId() {
return projectId; return projectId;
} }
......
...@@ -5,6 +5,8 @@ import com.house365.beans.system.DomainObject; ...@@ -5,6 +5,8 @@ import com.house365.beans.system.DomainObject;
import java.util.Date; import java.util.Date;
/** /**
* 项目操作日志信息表
*
* @author Created by Administrator on 2019/8/12. * @author Created by Administrator on 2019/8/12.
*/ */
public class ProjectLogEntity extends DomainObject { public class ProjectLogEntity extends DomainObject {
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: ProjectSaler数据库实体/领域对象 * Description: ProjectSaler数据库实体/领域对象
* Copyright: Copyright (c)2018 * Copyright: Copyright (c)2018
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
*
* @author: 江苏三六五网络股份有限公司 * @author: 江苏三六五网络股份有限公司
* @version: 1.0 * @version: 1.0
* Create at: 2018-02-01 上午 09:10:32 * Create at: 2018-02-01 上午 09:10:32
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -22,7 +23,7 @@ import org.hibernate.validator.constraints.Length; ...@@ -22,7 +23,7 @@ import org.hibernate.validator.constraints.Length;
/** /**
* ProjectSaler数据库实体/领域对象<br> * ProjectSaler数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2018-02-01 * @version 1.0, 2018-02-01
* @see * @see
...@@ -39,7 +40,6 @@ public class ProjectSalerEntity extends DomainObject { ...@@ -39,7 +40,6 @@ public class ProjectSalerEntity extends DomainObject {
/** /**
* 项目ID * 项目ID
*/ */
private Integer projectId; private Integer projectId;
/** /**
...@@ -57,7 +57,6 @@ public class ProjectSalerEntity extends DomainObject { ...@@ -57,7 +57,6 @@ public class ProjectSalerEntity extends DomainObject {
/** /**
* 直销人员ID * 直销人员ID
*/ */
private Integer userId; private Integer userId;
/** /**
...@@ -69,7 +68,6 @@ public class ProjectSalerEntity extends DomainObject { ...@@ -69,7 +68,6 @@ public class ProjectSalerEntity extends DomainObject {
/** /**
* 创建人用户ID * 创建人用户ID
*/ */
private Integer createUserid; private Integer createUserid;
/** /**
...@@ -81,7 +79,6 @@ public class ProjectSalerEntity extends DomainObject { ...@@ -81,7 +79,6 @@ public class ProjectSalerEntity extends DomainObject {
/** /**
* 创建时间 * 创建时间
*/ */
private java.util.Date createTime; private java.util.Date createTime;
/** /**
...@@ -93,7 +90,6 @@ public class ProjectSalerEntity extends DomainObject { ...@@ -93,7 +90,6 @@ public class ProjectSalerEntity extends DomainObject {
/** /**
* 最后一次修改人用户ID * 最后一次修改人用户ID
*/ */
private Integer updateUserid; private Integer updateUserid;
/** /**
...@@ -105,7 +101,6 @@ public class ProjectSalerEntity extends DomainObject { ...@@ -105,7 +101,6 @@ public class ProjectSalerEntity extends DomainObject {
/** /**
* 最后一次修改时间 * 最后一次修改时间
*/ */
private java.util.Date updateTime; private java.util.Date updateTime;
/** /**
...@@ -126,18 +121,6 @@ public class ProjectSalerEntity extends DomainObject { ...@@ -126,18 +121,6 @@ public class ProjectSalerEntity extends DomainObject {
@Length(max = 100, message = "长度需要大于0且小于100") @Length(max = 100, message = "长度需要大于0且小于100")
private String city; private String city;
//columns END
/*
public ProjectSaler(){
}
public ProjectSaler(
Integer id
){
this.id = id;
}
*/
/** /**
* 获取项目ID * 获取项目ID
...@@ -428,6 +411,7 @@ public class ProjectSalerEntity extends DomainObject { ...@@ -428,6 +411,7 @@ public class ProjectSalerEntity extends DomainObject {
* *
* @return 实体字符串 * @return 实体字符串
*/ */
@Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("Id", getId()) .append("Id", getId())
...@@ -454,24 +438,30 @@ public class ProjectSalerEntity extends DomainObject { ...@@ -454,24 +438,30 @@ public class ProjectSalerEntity extends DomainObject {
* *
* @return HASH码 * @return HASH码
*/ */
@Override
public int hashCode() { public int hashCode() {
return new HashCodeBuilder() return new HashCodeBuilder()
.append(getId()) .append(getId())
.toHashCode(); .toHashCode();
} }
/** /**
* 对象比较 * 对象比较
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
public boolean equals(Object obj) { @Override
if(obj instanceof ProjectSalerEntity == false) return false; public boolean equals(Object obj) {
if(this == obj) return true; if (obj instanceof ProjectSalerEntity == false) {
ProjectSalerEntity other = (ProjectSalerEntity)obj; return false;
return new EqualsBuilder() }
.append(getId(),other.getId()) if (this == obj) {
.isEquals(); return true;
} }
ProjectSalerEntity other = (ProjectSalerEntity) obj;
return new EqualsBuilder()
.append(getId(), other.getId())
.isEquals();
}
} }
...@@ -14,14 +14,13 @@ ...@@ -14,14 +14,13 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
/** /**
* ProjectSourceStatistics数据库实体/领域对象<br> * ProjectSourceStatistics数据库实体/领域对象<br>
...@@ -32,9 +31,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; ...@@ -32,9 +31,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
* @since 1.0 * @since 1.0
*/ */
public class ProjectSourceStatisticsEntity extends StatisticObject { public class ProjectSourceStatisticsEntity extends StatisticObject {
/**
*
*/
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
...@@ -42,7 +39,6 @@ public class ProjectSourceStatisticsEntity extends StatisticObject { ...@@ -42,7 +39,6 @@ public class ProjectSourceStatisticsEntity extends StatisticObject {
/** /**
* 项目ID * 项目ID
*/ */
private Integer projectId; private Integer projectId;
/** /**
...@@ -60,13 +56,11 @@ public class ProjectSourceStatisticsEntity extends StatisticObject { ...@@ -60,13 +56,11 @@ public class ProjectSourceStatisticsEntity extends StatisticObject {
/** /**
* 客户数量 * 客户数量
*/ */
private Integer customerNum; private Integer customerNum;
/** /**
* 来源ID * 来源ID
*/ */
private Integer sourceId; private Integer sourceId;
/** /**
...@@ -98,20 +92,9 @@ public class ProjectSourceStatisticsEntity extends StatisticObject { ...@@ -98,20 +92,9 @@ public class ProjectSourceStatisticsEntity extends StatisticObject {
/** /**
* 创建时间 * 创建时间
*/ */
private java.util.Date createTime; private Date createTime;
//columns END //columns END
/*
public ProjectSourceStatistics(){
}
public ProjectSourceStatistics(
Integer id
){
this.id = id;
}
*/
public String getObjectType() { public String getObjectType() {
return objectType; return objectType;
...@@ -288,7 +271,7 @@ public class ProjectSourceStatisticsEntity extends StatisticObject { ...@@ -288,7 +271,7 @@ public class ProjectSourceStatisticsEntity extends StatisticObject {
* *
* @param createTime 创建时间 * @param createTime 创建时间
*/ */
public void setCreateTime(java.util.Date createTime) { public void setCreateTime(Date createTime) {
this.createTime = createTime; this.createTime = createTime;
} }
...@@ -312,7 +295,7 @@ public class ProjectSourceStatisticsEntity extends StatisticObject { ...@@ -312,7 +295,7 @@ public class ProjectSourceStatisticsEntity extends StatisticObject {
* *
* @return 创建时间 * @return 创建时间
*/ */
public java.util.Date getCreateTime() { public Date getCreateTime() {
return this.createTime; return this.createTime;
} }
...@@ -321,14 +304,15 @@ public class ProjectSourceStatisticsEntity extends StatisticObject { ...@@ -321,14 +304,15 @@ public class ProjectSourceStatisticsEntity extends StatisticObject {
* *
* @return 实体字符串 * @return 实体字符串
*/ */
@Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("ProjectId", return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("ProjectId",
getProjectId()).append( getProjectId()).append(
"ProjectName", getProjectName()).append("CustomerStatus", getCustomerStatus()).append("CustomerNum", "ProjectName", getProjectName()).append("CustomerStatus", getCustomerStatus()).append("CustomerNum",
getCustomerNum()).append( getCustomerNum()).append(
"SourceId", getSourceId()).append("SourceName", getSourceName()).append("City", getCity()).append( "SourceId", getSourceId()).append("SourceName", getSourceName()).append("City", getCity()).append(
"CityName", getCityName()).append("DayBaseRatio", getDayBaseRatio()).append("CreateTime", "CityName", getCityName()).append("DayBaseRatio", getDayBaseRatio()).append("CreateTime",
getCreateTime()).toString(); getCreateTime()).toString();
} }
/** /**
...@@ -336,6 +320,7 @@ public class ProjectSourceStatisticsEntity extends StatisticObject { ...@@ -336,6 +320,7 @@ public class ProjectSourceStatisticsEntity extends StatisticObject {
* *
* @return HASH码 * @return HASH码
*/ */
@Override
public int hashCode() { public int hashCode() {
return new HashCodeBuilder().append(getId()).toHashCode(); return new HashCodeBuilder().append(getId()).toHashCode();
} }
...@@ -346,11 +331,14 @@ public class ProjectSourceStatisticsEntity extends StatisticObject { ...@@ -346,11 +331,14 @@ public class ProjectSourceStatisticsEntity extends StatisticObject {
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof ProjectSourceStatisticsEntity == false) if (obj instanceof ProjectSourceStatisticsEntity == false) {
return false; return false;
if (this == obj) }
if (this == obj) {
return true; return true;
}
ProjectSourceStatisticsEntity other = (ProjectSourceStatisticsEntity) obj; ProjectSourceStatisticsEntity other = (ProjectSourceStatisticsEntity) obj;
return new EqualsBuilder().append(getId(), other.getId()).isEquals(); return new EqualsBuilder().append(getId(), other.getId()).isEquals();
} }
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: ProjectUser数据库实体/领域对象 * Description: ProjectUser数据库实体/领域对象
* Copyright: Copyright (c)2016 * Copyright: Copyright (c)2016
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
* @author: 江苏三六五网络股份有限公司 *
* @version: 1.0 * @author: 江苏三六五网络股份有限公司
* @version: 1.0
* Create at: 2016-09-18 上午 10:05:26 * Create at: 2016-09-18 上午 10:05:26
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -13,392 +14,411 @@ ...@@ -13,392 +14,411 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;
/** /**
* 驻场用户实体类
* ProjectUser数据库实体/领域对象<br> * ProjectUser数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2016-09-18 * @version 1.0, 2016-09-18
* @see * @see
* @since 1.0 * @since 1.0
*/ */
public class ProjectUserEntity extends DomainObject{ public class ProjectUserEntity extends DomainObject {
/**
* private static final long serialVersionUID = 1L;
*/
private static final long serialVersionUID = 1L; //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 /**
//columns START * 项目ID
/** */
* 项目ID private Integer projectId;
*/
private Integer projectId; /**
* 项目编号
/** */
* 项目编号 @Length(max = 50, message = "长度需要大于0且小于50")
*/ private String projectCode;
@Length(max=50, message="长度需要大于0且小于50")
private String projectCode; /**
* 项目名称
/** */
* 项目名称 @Length(max = 50, message = "长度需要大于0且小于50")
*/ private String projectName;
@Length(max=50, message="长度需要大于0且小于50")
private String projectName; /**
* 驻场ID
/** */
* 驻场ID private Integer userId;
*/
/**
private Integer userId; * 驻场名称
*/
/** @Length(max = 50, message = "长度需要大于0且小于50")
* 驻场名称 private String userName;
*/
@Length(max=50, message="长度需要大于0且小于50") /**
private String userName; * 创建人用户ID
*/
/** private Integer createUserid;
* 创建人用户ID
*/ /**
* 创建人用户名
private Integer createUserid; */
@Length(max = 100, message = "长度需要大于0且小于100")
/** private String createUsername;
* 创建人用户名
*/ /**
@Length(max=100, message="长度需要大于0且小于100") * 创建时间
private String createUsername; */
private java.util.Date createTime;
/**
* 创建时间 /**
*/ * 创建人电脑IP
*/
private java.util.Date createTime; @Length(max = 30, message = "长度需要大于0且小于30")
private String createIp;
/**
* 创建人电脑IP /**
*/ * 最后一次修改人用户ID
@Length(max=30, message="长度需要大于0且小于30") */
private String createIp; private Integer updateUserid;
/** /**
* 最后一次修改人用户ID * 最后一次修改人用户名
*/ */
@Length(max = 100, message = "长度需要大于0且小于100")
private Integer updateUserid; private String updateUsername;
/** /**
* 最后一次修改人用户名 * 最后一次修改时间
*/ */
@Length(max=100, message="长度需要大于0且小于100") private java.util.Date updateTime;
private String updateUsername;
/**
/** * 最后一次修改人电脑IP
* 最后一次修改时间 */
*/ @Length(max = 30, message = "长度需要大于0且小于30")
private String updateIp;
private java.util.Date updateTime;
//columns END
/**
* 最后一次修改人电脑IP /**
*/ * 设置项目编号
@Length(max=30, message="长度需要大于0且小于30") *
private String updateIp; * @param projectCode 项目编号
*/
//columns END public void setProjectCode(String projectCode) {
/* this.projectCode = projectCode;
public ProjectUser(){ }
}
public Integer getProjectId() {
public ProjectUser( return projectId;
Integer id }
){
this.id = id; public void setProjectId(Integer projectId) {
} this.projectId = projectId;
}
*/
/** /**
* 设置项目编号 * 获取项目编号
* @param projectCode 项目编号 *
*/ * @return 项目编号
public void setProjectCode(String projectCode) { */
this.projectCode = projectCode; public String getProjectCode() {
} return this.projectCode;
}
public Integer getProjectId() {
return projectId; /**
} * 设置项目名称
*
public void setProjectId(Integer projectId) { * @param projectName 项目名称
this.projectId = projectId; */
} public void setProjectName(String projectName) {
this.projectName = projectName;
/** }
* 获取项目编号
* @return 项目编号 /**
*/ * 获取项目名称
public String getProjectCode() { *
return this.projectCode; * @return 项目名称
} */
public String getProjectName() {
/** return this.projectName;
* 设置项目名称 }
* @param projectName 项目名称
*/ /**
public void setProjectName(String projectName) { * 设置驻场ID
this.projectName = projectName; *
} * @param userId 驻场ID
*/
/** public void setUserId(Integer userId) {
* 获取项目名称 this.userId = userId;
* @return 项目名称 }
*/
public String getProjectName() { /**
return this.projectName; * 获取驻场ID
} *
* @return 驻场ID
/** */
* 设置驻场ID public Integer getUserId() {
* @param userId 驻场ID return this.userId;
*/ }
public void setUserId(Integer userId) {
this.userId = userId; /**
} * 设置驻场名称
*
/** * @param userName 驻场名称
* 获取驻场ID */
* @return 驻场ID public void setUserName(String userName) {
*/ this.userName = userName;
public Integer getUserId() { }
return this.userId;
} /**
* 获取驻场名称
/** *
* 设置驻场名称 * @return 驻场名称
* @param userName 驻场名称 */
*/ public String getUserName() {
public void setUserName(String userName) { return this.userName;
this.userName = userName; }
}
/**
/** * 设置创建人用户ID
* 获取驻场名称 *
* @return 驻场名称 * @param createUserid 创建人用户ID
*/ */
public String getUserName() { public void setCreateUserid(Integer createUserid) {
return this.userName; this.createUserid = createUserid;
} }
/** /**
* 设置创建人用户ID * 获取创建人用户ID
* @param createUserid 创建人用户ID *
*/ * @return 创建人用户ID
public void setCreateUserid(Integer createUserid) { */
this.createUserid = createUserid; public Integer getCreateUserid() {
} return this.createUserid;
}
/**
* 获取创建人用户ID /**
* @return 创建人用户ID * 设置创建人用户名
*/ *
public Integer getCreateUserid() { * @param createUsername 创建人用户名
return this.createUserid; */
} public void setCreateUsername(String createUsername) {
this.createUsername = createUsername;
/** }
* 设置创建人用户名
* @param createUsername 创建人用户名 /**
*/ * 获取创建人用户名
public void setCreateUsername(String createUsername) { *
this.createUsername = createUsername; * @return 创建人用户名
} */
public String getCreateUsername() {
/** return this.createUsername;
* 获取创建人用户名 }
* @return 创建人用户名
*/ /**
public String getCreateUsername() { * 设置创建时间
return this.createUsername; *
} * @param createTime 创建时间
*/
/** public void setCreateTime(java.util.Date createTime) {
* 设置创建时间 this.createTime = createTime;
* @param createTime 创建时间 }
*/
public void setCreateTime(java.util.Date createTime) { /**
this.createTime = createTime; * 设置创建时间字符串格式
} *
* @param createTime 创建时间
/** */
* 设置创建时间字符串格式 public void setCreateTimeStr(String createTime) {
* @param createTime 创建时间 if (!com.house365.web.util.StringUtils.isBlank(createTime)) {
*/ try {
public void setCreateTimeStr(String createTime) { this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime);
if (!com.house365.web.util.StringUtils.isBlank(createTime)) { } catch (java.text.ParseException ex) {
try { ex.printStackTrace();
this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime); }
} catch (java.text.ParseException ex) { }
ex.printStackTrace(); }
}
} /**
} * 获取创建时间
*
/** * @return 创建时间
* 获取创建时间 */
* @return 创建时间 public java.util.Date getCreateTime() {
*/ return this.createTime;
public java.util.Date getCreateTime() { }
return this.createTime;
} /**
* 设置创建人电脑IP
/** *
* 设置创建人电脑IP * @param createIp 创建人电脑IP
* @param createIp 创建人电脑IP */
*/ public void setCreateIp(String createIp) {
public void setCreateIp(String createIp) { this.createIp = createIp;
this.createIp = createIp; }
}
/**
/** * 获取创建人电脑IP
* 获取创建人电脑IP *
* @return 创建人电脑IP * @return 创建人电脑IP
*/ */
public String getCreateIp() { public String getCreateIp() {
return this.createIp; return this.createIp;
} }
/** /**
* 设置最后一次修改人用户ID * 设置最后一次修改人用户ID
* @param updateUserid 最后一次修改人用户ID *
*/ * @param updateUserid 最后一次修改人用户ID
public void setUpdateUserid(Integer updateUserid) { */
this.updateUserid = updateUserid; public void setUpdateUserid(Integer updateUserid) {
} this.updateUserid = updateUserid;
}
/**
* 获取最后一次修改人用户ID /**
* @return 最后一次修改人用户ID * 获取最后一次修改人用户ID
*/ *
public Integer getUpdateUserid() { * @return 最后一次修改人用户ID
return this.updateUserid; */
} public Integer getUpdateUserid() {
return this.updateUserid;
/** }
* 设置最后一次修改人用户名
* @param updateUsername 最后一次修改人用户名 /**
*/ * 设置最后一次修改人用户名
public void setUpdateUsername(String updateUsername) { *
this.updateUsername = updateUsername; * @param updateUsername 最后一次修改人用户名
} */
public void setUpdateUsername(String updateUsername) {
/** this.updateUsername = updateUsername;
* 获取最后一次修改人用户名 }
* @return 最后一次修改人用户名
*/ /**
public String getUpdateUsername() { * 获取最后一次修改人用户名
return this.updateUsername; *
} * @return 最后一次修改人用户名
*/
/** public String getUpdateUsername() {
* 设置最后一次修改时间 return this.updateUsername;
* @param updateTime 最后一次修改时间 }
*/
public void setUpdateTime(java.util.Date updateTime) { /**
this.updateTime = updateTime; * 设置最后一次修改时间
} *
* @param updateTime 最后一次修改时间
/** */
* 设置最后一次修改时间字符串格式 public void setUpdateTime(java.util.Date updateTime) {
* @param updateTime 最后一次修改时间 this.updateTime = updateTime;
*/ }
public void setUpdateTimeStr(String updateTime) {
if (!com.house365.web.util.StringUtils.isBlank(updateTime)) { /**
try { * 设置最后一次修改时间字符串格式
this.updateTime = java.text.DateFormat.getDateTimeInstance().parse(updateTime); *
} catch (java.text.ParseException ex) { * @param updateTime 最后一次修改时间
ex.printStackTrace(); */
} public void setUpdateTimeStr(String updateTime) {
} if (!com.house365.web.util.StringUtils.isBlank(updateTime)) {
} try {
this.updateTime = java.text.DateFormat.getDateTimeInstance().parse(updateTime);
/** } catch (java.text.ParseException ex) {
* 获取最后一次修改时间 ex.printStackTrace();
* @return 最后一次修改时间 }
*/ }
public java.util.Date getUpdateTime() { }
return this.updateTime;
} /**
* 获取最后一次修改时间
/** *
* 设置最后一次修改人电脑IP * @return 最后一次修改时间
* @param updateIp 最后一次修改人电脑IP */
*/ public java.util.Date getUpdateTime() {
public void setUpdateIp(String updateIp) { return this.updateTime;
this.updateIp = updateIp; }
}
/**
/** * 设置最后一次修改人电脑IP
* 获取最后一次修改人电脑IP *
* @return 最后一次修改人电脑IP * @param updateIp 最后一次修改人电脑IP
*/ */
public String getUpdateIp() { public void setUpdateIp(String updateIp) {
return this.updateIp; this.updateIp = updateIp;
} }
/**
* 获取最后一次修改人电脑IP
*
* @return 最后一次修改人电脑IP
*/
public String getUpdateIp() {
return this.updateIp;
}
/** /**
* 实体的toString方法 * 实体的toString方法
*
* @return 实体字符串 * @return 实体字符串
*/ */
public String toString() { @Override
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) public String toString() {
.append("Id",getId()) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("ProjectId",getProjectId()) .append("Id", getId())
.append("ProjectCode",getProjectCode()) .append("ProjectId", getProjectId())
.append("ProjectName",getProjectName()) .append("ProjectCode", getProjectCode())
.append("UserId",getUserId()) .append("ProjectName", getProjectName())
.append("UserName",getUserName()) .append("UserId", getUserId())
.append("CreateUserid",getCreateUserid()) .append("UserName", getUserName())
.append("CreateUsername",getCreateUsername()) .append("CreateUserid", getCreateUserid())
.append("CreateTime",getCreateTime()) .append("CreateUsername", getCreateUsername())
.append("CreateIp",getCreateIp()) .append("CreateTime", getCreateTime())
.append("UpdateUserid",getUpdateUserid()) .append("CreateIp", getCreateIp())
.append("UpdateUsername",getUpdateUsername()) .append("UpdateUserid", getUpdateUserid())
.append("UpdateTime",getUpdateTime()) .append("UpdateUsername", getUpdateUsername())
.append("UpdateIp",getUpdateIp()) .append("UpdateTime", getUpdateTime())
.toString(); .append("UpdateIp", getUpdateIp())
} .toString();
}
/**
* 获取hash码 /**
* @return HASH码 * 获取hash码
*/ *
public int hashCode() { * @return HASH码
return new HashCodeBuilder() */
.append(getId()) @Override
.toHashCode(); public int hashCode() {
} return new HashCodeBuilder()
.append(getId())
/** .toHashCode();
* 对象比较 }
* @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 /**
*/ * 对象比较
public boolean equals(Object obj) { *
if(obj instanceof ProjectUserEntity == false) return false; * @param obj 待比较对象
if(this == obj) return true; * @return 是否相同<li>true--相同<li>false--不相同
ProjectUserEntity other = (ProjectUserEntity)obj; */
return new EqualsBuilder() @Override
.append(getId(),other.getId()) public boolean equals(Object obj) {
.isEquals(); if (obj instanceof ProjectUserEntity == false) {
} return false;
}
if (this == obj) {
return true;
}
ProjectUserEntity other = (ProjectUserEntity) obj;
return new EqualsBuilder()
.append(getId(), other.getId())
.isEquals();
}
} }
...@@ -21,6 +21,8 @@ import org.apache.commons.lang3.builder.ToStringBuilder; ...@@ -21,6 +21,8 @@ import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.Length;
import java.util.Date;
/** /**
* 回访录音记录数据库实体/领域对象<br> * 回访录音记录数据库实体/领域对象<br>
* *
...@@ -30,9 +32,7 @@ import org.hibernate.validator.constraints.Length; ...@@ -30,9 +32,7 @@ import org.hibernate.validator.constraints.Length;
* @since 1.0 * @since 1.0
*/ */
public class ReceiveCallRecordEntity extends DomainObject { public class ReceiveCallRecordEntity extends DomainObject {
/**
*
*/
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
...@@ -46,25 +46,21 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -46,25 +46,21 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 业务 * 业务
*/ */
private Integer pid; private Integer pid;
/** /**
* 通话开始时间 * 通话开始时间
*/ */
private java.util.Date startTime; private java.util.Date startTime;
/** /**
* 通话结束时间 * 通话结束时间
*/ */
private java.util.Date endTime; private java.util.Date endTime;
/** /**
* 通话时长(秒) * 通话时长(秒)
*/ */
private Integer duration; private Integer duration;
/** /**
...@@ -80,17 +76,6 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -80,17 +76,6 @@ public class ReceiveCallRecordEntity extends DomainObject {
private Integer status; private Integer status;
//columns END //columns END
/*
public ReciveCallRecord(){
}
public ReciveCallRecord(
Integer id
){
this.id = id;
}
*/
public String getCaller() { public String getCaller() {
return caller; return caller;
...@@ -102,6 +87,7 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -102,6 +87,7 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 获取业务 * 获取业务
*
* @return 业务 * @return 业务
*/ */
public Integer getPid() { public Integer getPid() {
...@@ -110,6 +96,7 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -110,6 +96,7 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 设置业务 * 设置业务
*
* @param pid 业务 * @param pid 业务
*/ */
public void setPid(Integer pid) { public void setPid(Integer pid) {
...@@ -118,6 +105,7 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -118,6 +105,7 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 设置通话开始时间字符串格式 * 设置通话开始时间字符串格式
*
* @param startTime 通话开始时间 * @param startTime 通话开始时间
*/ */
public void setStartTimeStr(String startTime) { public void setStartTimeStr(String startTime) {
...@@ -132,22 +120,25 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -132,22 +120,25 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 获取通话开始时间 * 获取通话开始时间
*
* @return 通话开始时间 * @return 通话开始时间
*/ */
public java.util.Date getStartTime() { public Date getStartTime() {
return this.startTime; return this.startTime;
} }
/** /**
* 设置通话开始时间 * 设置通话开始时间
*
* @param startTime 通话开始时间 * @param startTime 通话开始时间
*/ */
public void setStartTime(java.util.Date startTime) { public void setStartTime(Date startTime) {
this.startTime = startTime; this.startTime = startTime;
} }
/** /**
* 设置通话结束时间字符串格式 * 设置通话结束时间字符串格式
*
* @param endTime 通话结束时间 * @param endTime 通话结束时间
*/ */
public void setEndTimeStr(String endTime) { public void setEndTimeStr(String endTime) {
...@@ -162,22 +153,25 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -162,22 +153,25 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 获取通话结束时间 * 获取通话结束时间
*
* @return 通话结束时间 * @return 通话结束时间
*/ */
public java.util.Date getEndTime() { public Date getEndTime() {
return this.endTime; return this.endTime;
} }
/** /**
* 设置通话结束时间 * 设置通话结束时间
*
* @param endTime 通话结束时间 * @param endTime 通话结束时间
*/ */
public void setEndTime(java.util.Date endTime) { public void setEndTime(Date endTime) {
this.endTime = endTime; this.endTime = endTime;
} }
/** /**
* 获取通话时长(秒) * 获取通话时长(秒)
*
* @return 通话时长(秒) * @return 通话时长(秒)
*/ */
public Integer getDuration() { public Integer getDuration() {
...@@ -186,6 +180,7 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -186,6 +180,7 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 设置通话时长(秒) * 设置通话时长(秒)
*
* @param duration 通话时长(秒) * @param duration 通话时长(秒)
*/ */
public void setDuration(Integer duration) { public void setDuration(Integer duration) {
...@@ -194,6 +189,7 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -194,6 +189,7 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 获取录音文件名 * 获取录音文件名
*
* @return 录音文件名 * @return 录音文件名
*/ */
public String getRecord() { public String getRecord() {
...@@ -202,6 +198,7 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -202,6 +198,7 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 设置录音文件名 * 设置录音文件名
*
* @param record 录音文件名 * @param record 录音文件名
*/ */
public void setRecord(String record) { public void setRecord(String record) {
...@@ -210,6 +207,7 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -210,6 +207,7 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 获取接通状态 1接通 0未接通 * 获取接通状态 1接通 0未接通
*
* @return 接通状态 1接通 0未接通 * @return 接通状态 1接通 0未接通
*/ */
public Integer getStatus() { public Integer getStatus() {
...@@ -218,6 +216,7 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -218,6 +216,7 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 设置接通状态 1接通 0未接通 * 设置接通状态 1接通 0未接通
*
* @param status 接通状态 1接通 0未接通 * @param status 接通状态 1接通 0未接通
*/ */
public void setStatus(Integer status) { public void setStatus(Integer status) {
...@@ -226,8 +225,10 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -226,8 +225,10 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 实体的toString方法 * 实体的toString方法
*
* @return 实体字符串 * @return 实体字符串
*/ */
@Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("Id", getId()) .append("Id", getId())
...@@ -243,8 +244,10 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -243,8 +244,10 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 获取hash码 * 获取hash码
*
* @return HASH码 * @return HASH码
*/ */
@Override
public int hashCode() { public int hashCode() {
return new HashCodeBuilder() return new HashCodeBuilder()
.append(getId()) .append(getId())
...@@ -253,12 +256,18 @@ public class ReceiveCallRecordEntity extends DomainObject { ...@@ -253,12 +256,18 @@ public class ReceiveCallRecordEntity extends DomainObject {
/** /**
* 对象比较 * 对象比较
*
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof ReceiveCallRecordEntity == false) return false; if (obj instanceof ReceiveCallRecordEntity == false) {
if (this == obj) return true; return false;
}
if (this == obj) {
return true;
}
ReceiveCallRecordEntity other = (ReceiveCallRecordEntity) obj; ReceiveCallRecordEntity other = (ReceiveCallRecordEntity) obj;
return new EqualsBuilder() return new EqualsBuilder()
.append(getId(), other.getId()) .append(getId(), other.getId())
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: ReportChannelDepartRel数据库实体/领域对象 * Description: ReportChannelDepartRel数据库实体/领域对象
* Copyright: Copyright (c)2017 * Copyright: Copyright (c)2017
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
* @author: 江苏三六五网络股份有限公司 *
* @version: 1.0 * @author: 江苏三六五网络股份有限公司
* @version: 1.0
* Create at: 2017-07-17 上午 10:14:20 * Create at: 2017-07-17 上午 10:14:20
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -13,121 +14,116 @@ ...@@ -13,121 +14,116 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.constraints.NotNull;
/** /**
* ReportChannelDepartRel数据库实体/领域对象<br> * ReportChannelDepartRel数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2017-07-17 * @version 1.0, 2017-07-17
* @see * @see
* @since 1.0 * @since 1.0
*/ */
public class ReportChannelDepartRelEntity extends DomainObject{ public class ReportChannelDepartRelEntity extends DomainObject {
/**
* private static final long serialVersionUID = 1L;
*/
private static final long serialVersionUID = 1L; //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 /**
//columns START * channelId
/** */
* channelId @NotNull
*/ private Integer channelId;
@NotNull
private Integer channelId; /**
* departId
/** */
* departId @NotNull
*/ private Integer departId;
@NotNull
private Integer departId; //columns END
//columns END
/* /**
public ReportChannelDepartRel(){ * 设置channelId
} * @param channelId channelId
*/
public ReportChannelDepartRel( public void setChannelId(Integer channelId) {
Integer id this.channelId = channelId;
){ }
this.id = id;
} /**
* 获取channelId
*/ * @return channelId
*/
/** public Integer getChannelId() {
* 设置channelId return this.channelId;
* @param channelId channelId }
*/
public void setChannelId(Integer channelId) { /**
this.channelId = channelId; * 设置departId
} * @param departId departId
*/
/** public void setDepartId(Integer departId) {
* 获取channelId this.departId = departId;
* @return channelId }
*/
public Integer getChannelId() { /**
return this.channelId; * 获取departId
} * @return departId
*/
/** public Integer getDepartId() {
* 设置departId return this.departId;
* @param departId departId }
*/
public void setDepartId(Integer departId) {
this.departId = departId;
}
/**
* 获取departId
* @return departId
*/
public Integer getDepartId() {
return this.departId;
}
/** /**
* 实体的toString方法 * 实体的toString方法
* @return 实体字符串 * @return 实体字符串
*/ */
public String toString() { @Override
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) public String toString() {
.append("Id",getId()) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("ChannelId",getChannelId()) .append("Id", getId())
.append("DepartId",getDepartId()) .append("ChannelId", getChannelId())
.toString(); .append("DepartId", getDepartId())
} .toString();
}
/**
* 获取hash码 /**
* @return HASH码 * 获取hash码
*/ * @return HASH码
public int hashCode() { */
return new HashCodeBuilder() @Override
.append(getId()) public int hashCode() {
.toHashCode(); return new HashCodeBuilder()
} .append(getId())
.toHashCode();
/** }
* 对象比较
* @param obj 待比较对象 /**
* @return 是否相同<li>true--相同<li>false--不相同 * 对象比较
*/ * @param obj 待比较对象
public boolean equals(Object obj) { * @return 是否相同<li>true--相同<li>false--不相同
if(obj instanceof ReportChannelDepartRelEntity == false) return false; */
if(this == obj) return true; @Override
ReportChannelDepartRelEntity other = (ReportChannelDepartRelEntity)obj; public boolean equals(Object obj) {
return new EqualsBuilder() if (obj instanceof ReportChannelDepartRelEntity == false) {
.append(getId(),other.getId()) return false;
.isEquals(); }
} if (this == obj) {
return true;
}
ReportChannelDepartRelEntity other = (ReportChannelDepartRelEntity) obj;
return new EqualsBuilder()
.append(getId(), other.getId())
.isEquals();
}
} }
...@@ -31,9 +31,7 @@ import org.hibernate.validator.constraints.NotBlank; ...@@ -31,9 +31,7 @@ import org.hibernate.validator.constraints.NotBlank;
* @since 1.0 * @since 1.0
*/ */
public class ReportChannelEntity extends DomainObject { public class ReportChannelEntity extends DomainObject {
/**
*
*/
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
...@@ -85,17 +83,6 @@ public class ReportChannelEntity extends DomainObject { ...@@ -85,17 +83,6 @@ public class ReportChannelEntity extends DomainObject {
private Integer status; private Integer status;
//columns END //columns END
/*
public ReportChannel(){
}
public ReportChannel(
Integer id
){
this.id = id;
}
*/
/** /**
* 设置名称 * 设置名称
...@@ -276,13 +263,14 @@ public class ReportChannelEntity extends DomainObject { ...@@ -276,13 +263,14 @@ public class ReportChannelEntity extends DomainObject {
* *
* @return 实体字符串 * @return 实体字符串
*/ */
@Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("Name", return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("Name",
getName()).append( getName()).append(
"ChannelType", getChannelType()).append("Creater", getCreater()).append("CreateTime", "ChannelType", getChannelType()).append("Creater", getCreater()).append("CreateTime",
getCreateTime()).append( getCreateTime()).append(
"LastModifier", getLastModifier()).append("UpateTime", getUpateTime()).append("City", getCity()).append( "LastModifier", getLastModifier()).append("UpateTime", getUpateTime()).append("City", getCity()).append(
"Status", getStatus()).toString(); "Status", getStatus()).toString();
} }
/** /**
...@@ -290,6 +278,7 @@ public class ReportChannelEntity extends DomainObject { ...@@ -290,6 +278,7 @@ public class ReportChannelEntity extends DomainObject {
* *
* @return HASH码 * @return HASH码
*/ */
@Override
public int hashCode() { public int hashCode() {
return new HashCodeBuilder().append(getId()).toHashCode(); return new HashCodeBuilder().append(getId()).toHashCode();
} }
...@@ -300,11 +289,14 @@ public class ReportChannelEntity extends DomainObject { ...@@ -300,11 +289,14 @@ public class ReportChannelEntity extends DomainObject {
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof ReportChannelEntity == false) if (obj instanceof ReportChannelEntity == false) {
return false; return false;
if (this == obj) }
if (this == obj) {
return true; return true;
}
ReportChannelEntity other = (ReportChannelEntity) obj; ReportChannelEntity other = (ReportChannelEntity) obj;
return new EqualsBuilder().append(getId(), other.getId()).isEquals(); return new EqualsBuilder().append(getId(), other.getId()).isEquals();
} }
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: 营销日报数据库实体/领域对象 * Description: 营销日报数据库实体/领域对象
* Copyright: Copyright (c)2017 * Copyright: Copyright (c)2017
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
*
* @author: 江苏三六五网络股份有限公司 * @author: 江苏三六五网络股份有限公司
* @version: 1.0 * @version: 1.0
* Create at: 2017-08-08 下午 17:15:44 * Create at: 2017-08-08 下午 17:15:44
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -22,16 +23,14 @@ import org.hibernate.validator.constraints.Length; ...@@ -22,16 +23,14 @@ import org.hibernate.validator.constraints.Length;
/** /**
* 营销日报数据库实体/领域对象<br> * 营销日报数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2017-08-08 * @version 1.0, 2017-08-08
* @see * @see
* @since 1.0 * @since 1.0
*/ */
public class ReportMarketingEntity extends DomainObject { public class ReportMarketingEntity extends DomainObject {
/**
*
*/
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
...@@ -39,19 +38,16 @@ public class ReportMarketingEntity extends DomainObject { ...@@ -39,19 +38,16 @@ public class ReportMarketingEntity extends DomainObject {
/** /**
* 电话接触量 * 电话接触量
*/ */
private Integer callCount; private Integer callCount;
/** /**
* 电话接通量 * 电话接通量
*/ */
private Integer connectCount; private Integer connectCount;
/** /**
* 意向沉淀量 * 意向沉淀量
*/ */
private Integer intentBuyCount; private Integer intentBuyCount;
private Integer twiceVisitedCount; private Integer twiceVisitedCount;
...@@ -87,13 +83,11 @@ public class ReportMarketingEntity extends DomainObject { ...@@ -87,13 +83,11 @@ public class ReportMarketingEntity extends DomainObject {
/** /**
* 到访量 * 到访量
*/ */
private Integer visitedCount; private Integer visitedCount;
/** /**
* 认筹量 * 认筹量
*/ */
private Integer identificationChipsCount; private Integer identificationChipsCount;
/** /**
...@@ -105,7 +99,6 @@ public class ReportMarketingEntity extends DomainObject { ...@@ -105,7 +99,6 @@ public class ReportMarketingEntity extends DomainObject {
/** /**
* 认购量 * 认购量
*/ */
private Integer subscriptionCount; private Integer subscriptionCount;
/** /**
...@@ -117,19 +110,16 @@ public class ReportMarketingEntity extends DomainObject { ...@@ -117,19 +110,16 @@ public class ReportMarketingEntity extends DomainObject {
/** /**
* 业绩 * 业绩
*/ */
private Integer source; private Integer source;
/** /**
* 创建时间 * 创建时间
*/ */
private java.util.Date createTime; private java.util.Date createTime;
/** /**
* 部门id * 部门id
*/ */
private Integer departmentId; private Integer departmentId;
/** /**
...@@ -141,7 +131,6 @@ public class ReportMarketingEntity extends DomainObject { ...@@ -141,7 +131,6 @@ public class ReportMarketingEntity extends DomainObject {
/** /**
* 职员id * 职员id
*/ */
private Integer userId; private Integer userId;
/** /**
...@@ -153,7 +142,6 @@ public class ReportMarketingEntity extends DomainObject { ...@@ -153,7 +142,6 @@ public class ReportMarketingEntity extends DomainObject {
/** /**
* 报告时间 * 报告时间
*/ */
private java.util.Date reportTime; private java.util.Date reportTime;
/** /**
...@@ -161,17 +149,7 @@ public class ReportMarketingEntity extends DomainObject { ...@@ -161,17 +149,7 @@ public class ReportMarketingEntity extends DomainObject {
*/ */
private String city; private String city;
//columns END //columns END
/*
public ReportMarketing(){
}
public ReportMarketing(
Integer id
){
this.id = id;
}
*/
/** /**
* 获取电话接触量 * 获取电话接触量
...@@ -475,6 +453,7 @@ public class ReportMarketingEntity extends DomainObject { ...@@ -475,6 +453,7 @@ public class ReportMarketingEntity extends DomainObject {
* *
* @return 实体字符串 * @return 实体字符串
*/ */
@Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("Id", getId()) .append("Id", getId())
...@@ -496,28 +475,34 @@ public class ReportMarketingEntity extends DomainObject { ...@@ -496,28 +475,34 @@ public class ReportMarketingEntity extends DomainObject {
.toString(); .toString();
} }
/** /**
* 获取hash码 * 获取hash码
* @return HASH码 * @return HASH码
*/ */
public int hashCode() { @Override
return new HashCodeBuilder() public int hashCode() {
.append(getId()) return new HashCodeBuilder()
.toHashCode(); .append(getId())
} .toHashCode();
}
/**
/**
* 对象比较 * 对象比较
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
public boolean equals(Object obj) { @Override
if(obj instanceof ReportMarketingEntity == false) return false; public boolean equals(Object obj) {
if(this == obj) return true; if (obj instanceof ReportMarketingEntity == false) {
ReportMarketingEntity other = (ReportMarketingEntity)obj; return false;
return new EqualsBuilder() }
.append(getId(),other.getId()) if (this == obj) {
.isEquals(); return true;
} }
ReportMarketingEntity other = (ReportMarketingEntity) obj;
return new EqualsBuilder()
.append(getId(), other.getId())
.isEquals();
}
} }
...@@ -30,9 +30,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; ...@@ -30,9 +30,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
* @since 1.0 * @since 1.0
*/ */
public class RoleEntity extends DomainObject{ public class RoleEntity extends DomainObject{
/**
*
*/
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
...@@ -68,7 +66,6 @@ public class RoleEntity extends DomainObject{ ...@@ -68,7 +66,6 @@ public class RoleEntity extends DomainObject{
/** /**
* 创建人用户ID * 创建人用户ID
*/ */
private Integer createUserid; private Integer createUserid;
/** /**
...@@ -80,7 +77,6 @@ public class RoleEntity extends DomainObject{ ...@@ -80,7 +77,6 @@ public class RoleEntity extends DomainObject{
/** /**
* 创建时间 * 创建时间
*/ */
private java.util.Date createTime; private java.util.Date createTime;
/** /**
...@@ -92,7 +88,6 @@ public class RoleEntity extends DomainObject{ ...@@ -92,7 +88,6 @@ public class RoleEntity extends DomainObject{
/** /**
* 最后一次修改人用户ID * 最后一次修改人用户ID
*/ */
private Integer updateUserid; private Integer updateUserid;
/** /**
...@@ -104,7 +99,6 @@ public class RoleEntity extends DomainObject{ ...@@ -104,7 +99,6 @@ public class RoleEntity extends DomainObject{
/** /**
* 最后一次修改时间 * 最后一次修改时间
*/ */
private java.util.Date updateTime; private java.util.Date updateTime;
/** /**
...@@ -114,17 +108,6 @@ public class RoleEntity extends DomainObject{ ...@@ -114,17 +108,6 @@ public class RoleEntity extends DomainObject{
private String updateIp; private String updateIp;
//columns END //columns END
/*
public Role(){
}
public Role(
Integer id
){
this.id = id;
}
*/
/** /**
* 设置编码 * 设置编码
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: 角色权限关联数据库实体/领域对象 * Description: 角色权限关联数据库实体/领域对象
* Copyright: Copyright (c)2016 * Copyright: Copyright (c)2016
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
* @author: 江苏三六五网络股份有限公司 *
* @version: 1.0 * @author: 江苏三六五网络股份有限公司
* @version: 1.0
* Create at: 2016-09-22 上午 11:32:19 * Create at: 2016-09-22 上午 11:32:19
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -13,209 +14,204 @@ ...@@ -13,209 +14,204 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.constraints.NotNull;
/** /**
* 角色权限关联数据库实体/领域对象<br> * 角色权限关联数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2016-09-22 * @version 1.0, 2016-09-22
* @see * @see
* @since 1.0 * @since 1.0
*/ */
public class RolePermissionEntity extends DomainObject{ public class RolePermissionEntity extends DomainObject {
/**
* private static final long serialVersionUID = 1L;
*/
private static final long serialVersionUID = 1L; //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 /**
//columns START * roleId
/** */
* roleId @NotNull
*/ private Integer roleId;
@NotNull
private Integer roleId; /**
* permissionId
/** */
* permissionId @NotNull
*/ private Integer permissionId;
@NotNull
private Integer permissionId; private String permissionName;
private String permissionCode;
private String permissionName; private Integer hierarchy;
private String permissionCode;
private Integer hierarchy; /**
* 创建时间
/** */
* 创建时间
*/ private java.util.Date createTime;
private java.util.Date createTime; /**
* 创建人用户ID
/** */
* 创建人用户ID
*/ private Integer createUserid;
private Integer createUserid; //columns END
//columns END
/* /**
public RolePermission(){ * 设置roleId
} * @param roleId roleId
*/
public RolePermission( public void setRoleId(Integer roleId) {
Integer id this.roleId = roleId;
){ }
this.id = id;
} public Integer getHierarchy() {
return hierarchy;
*/ }
/** public void setHierarchy(Integer hierarchy) {
* 设置roleId this.hierarchy = hierarchy;
* @param roleId roleId }
*/
public void setRoleId(Integer roleId) { public String getPermissionName() {
this.roleId = roleId; return permissionName;
} }
public Integer getHierarchy() { public void setPermissionName(String permissionName) {
return hierarchy; this.permissionName = permissionName;
} }
public void setHierarchy(Integer hierarchy) { public String getPermissionCode() {
this.hierarchy = hierarchy; return permissionCode;
} }
public String getPermissionName() { public void setPermissionCode(String permissionCode) {
return permissionName; this.permissionCode = permissionCode;
} }
public void setPermissionName(String permissionName) { /**
this.permissionName = permissionName; * 获取roleId
} * @return roleId
*/
public String getPermissionCode() { public Integer getRoleId() {
return permissionCode; return this.roleId;
} }
public void setPermissionCode(String permissionCode) { /**
this.permissionCode = permissionCode; * 设置permissionId
} * @param permissionId permissionId
*/
/** public void setPermissionId(Integer permissionId) {
* 获取roleId this.permissionId = permissionId;
* @return roleId }
*/
public Integer getRoleId() { /**
return this.roleId; * 获取permissionId
} * @return permissionId
*/
/** public Integer getPermissionId() {
* 设置permissionId return this.permissionId;
* @param permissionId permissionId }
*/
public void setPermissionId(Integer permissionId) { /**
this.permissionId = permissionId; * 设置创建时间
} * @param createTime 创建时间
*/
/** public void setCreateTime(java.util.Date createTime) {
* 获取permissionId this.createTime = createTime;
* @return permissionId }
*/
public Integer getPermissionId() { /**
return this.permissionId; * 设置创建时间字符串格式
} * @param createTime 创建时间
*/
/** public void setCreateTimeStr(String createTime) {
* 设置创建时间 if (!com.house365.web.util.StringUtils.isBlank(createTime)) {
* @param createTime 创建时间 try {
*/ this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime);
public void setCreateTime(java.util.Date createTime) { } catch (java.text.ParseException ex) {
this.createTime = createTime; ex.printStackTrace();
} }
}
/** }
* 设置创建时间字符串格式
* @param createTime 创建时间 /**
*/ * 获取创建时间
public void setCreateTimeStr(String createTime) { * @return 创建时间
if (!com.house365.web.util.StringUtils.isBlank(createTime)) { */
try { public java.util.Date getCreateTime() {
this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime); return this.createTime;
} catch (java.text.ParseException ex) { }
ex.printStackTrace();
} /**
} * 设置创建人用户ID
} * @param createUserid 创建人用户ID
*/
/** public void setCreateUserid(Integer createUserid) {
* 获取创建时间 this.createUserid = createUserid;
* @return 创建时间 }
*/
public java.util.Date getCreateTime() { /**
return this.createTime; * 获取创建人用户ID
} * @return 创建人用户ID
*/
/** public Integer getCreateUserid() {
* 设置创建人用户ID return this.createUserid;
* @param createUserid 创建人用户ID }
*/
public void setCreateUserid(Integer createUserid) {
this.createUserid = createUserid;
}
/**
* 获取创建人用户ID
* @return 创建人用户ID
*/
public Integer getCreateUserid() {
return this.createUserid;
}
/** /**
* 实体的toString方法 * 实体的toString方法
* @return 实体字符串 * @return 实体字符串
*/ */
public String toString() { @Override
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) public String toString() {
.append("Id",getId()) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("RoleId",getRoleId()) .append("Id", getId())
.append("PermissionId",getPermissionId()) .append("RoleId", getRoleId())
.append("CreateTime",getCreateTime()) .append("PermissionId", getPermissionId())
.append("CreateUserid",getCreateUserid()) .append("CreateTime", getCreateTime())
.toString(); .append("CreateUserid", getCreateUserid())
} .toString();
}
/**
* 获取hash码 /**
* @return HASH码 * 获取hash码
*/ * @return HASH码
public int hashCode() { */
return new HashCodeBuilder() @Override
.append(getId()) public int hashCode() {
.toHashCode(); return new HashCodeBuilder()
} .append(getId())
.toHashCode();
/** }
* 对象比较
* @param obj 待比较对象 /**
* @return 是否相同<li>true--相同<li>false--不相同 * 对象比较
*/ * @param obj 待比较对象
public boolean equals(Object obj) { * @return 是否相同<li>true--相同<li>false--不相同
if(obj instanceof RolePermissionEntity == false) return false; */
if(this == obj) return true; @Override
RolePermissionEntity other = (RolePermissionEntity)obj; public boolean equals(Object obj) {
return new EqualsBuilder() if (obj instanceof RolePermissionEntity == false) {
.append(getId(),other.getId()) return false;
.isEquals(); }
} if (this == obj) {
return true;
}
RolePermissionEntity other = (RolePermissionEntity) obj;
return new EqualsBuilder()
.append(getId(), other.getId())
.isEquals();
}
} }
...@@ -5,9 +5,9 @@ import com.house365.beans.system.DomainObject; ...@@ -5,9 +5,9 @@ import com.house365.beans.system.DomainObject;
import java.util.Date; import java.util.Date;
/** /**
* @author
* Created by Administrator on 2019/11/6.
* crm报名轨迹实体类 * crm报名轨迹实体类
*
* @author Created by Administrator on 2019/11/6.
*/ */
public class SignUpTrackEntity extends DomainObject { public class SignUpTrackEntity extends DomainObject {
......
...@@ -14,14 +14,15 @@ ...@@ -14,14 +14,15 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/** /**
* 统计信息数据库实体/领域对象<br> * 统计信息数据库实体/领域对象<br>
...@@ -32,9 +33,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; ...@@ -32,9 +33,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
* @since 1.0 * @since 1.0
*/ */
public class StatisticEntity extends DomainObject { public class StatisticEntity extends DomainObject {
/**
*
*/
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
...@@ -284,13 +283,14 @@ public class StatisticEntity extends DomainObject { ...@@ -284,13 +283,14 @@ public class StatisticEntity extends DomainObject {
* *
* @return 实体字符串 * @return 实体字符串
*/ */
@Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("Sort", return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId()).append("Sort",
getSort()).append( getSort()).append(
"Name", getName()).append("Group", getGroup()).append("Performance", getPerformance()).append("BuyNum", "Name", getName()).append("Group", getGroup()).append("Performance", getPerformance()).append("BuyNum",
getBuyNum()).append( getBuyNum()).append(
"CreateTime", getCreateTime()).append("Creater", getCreater()).append("ReportName", "CreateTime", getCreateTime()).append("Creater", getCreater()).append("ReportName",
getReportName()).toString(); getReportName()).toString();
} }
/** /**
...@@ -298,6 +298,7 @@ public class StatisticEntity extends DomainObject { ...@@ -298,6 +298,7 @@ public class StatisticEntity extends DomainObject {
* *
* @return HASH码 * @return HASH码
*/ */
@Override
public int hashCode() { public int hashCode() {
return new HashCodeBuilder().append(getId()).toHashCode(); return new HashCodeBuilder().append(getId()).toHashCode();
} }
...@@ -308,11 +309,14 @@ public class StatisticEntity extends DomainObject { ...@@ -308,11 +309,14 @@ public class StatisticEntity extends DomainObject {
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof StatisticEntity == false) if (obj instanceof StatisticEntity == false) {
return false; return false;
if (this == obj) }
if (this == obj) {
return true; return true;
}
StatisticEntity other = (StatisticEntity) obj; StatisticEntity other = (StatisticEntity) obj;
return new EqualsBuilder().append(getId(), other.getId()).isEquals(); return new EqualsBuilder().append(getId(), other.getId()).isEquals();
} }
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: StatusSourceStatistics数据库实体/领域对象 * Description: StatusSourceStatistics数据库实体/领域对象
* Copyright: Copyright (c)2016 * Copyright: Copyright (c)2016
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
* @author: 江苏三六五网络股份有限公司 *
* @version: 1.0 * @author: 江苏三六五网络股份有限公司
* @version: 1.0
* Create at: 2016-11-02 下午 17:54:57 * Create at: 2016-11-02 下午 17:54:57
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -13,98 +14,97 @@ ...@@ -13,98 +14,97 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;
/** /**
* StatusSourceStatistics数据库实体/领域对象<br> * StatusSourceStatistics数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2016-11-02 * @version 1.0, 2016-11-02
* @see * @see
* @since 1.0 * @since 1.0
*/ */
public class StatusSourceStatisticsEntity extends DomainObject{ public class StatusSourceStatisticsEntity extends DomainObject {
/** /**
* *
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START //columns START
/** /**
* 统计对象ID * 统计对象ID
*/ */
private Integer projectId; private Integer projectId;
/** /**
* 统计对象名称 * 统计对象名称
*/ */
@Length(max=1000, message="长度需要大于0且小于1000") @Length(max = 1000, message = "长度需要大于0且小于1000")
private String projectName; private String projectName;
/** /**
* 统计对象类型 1 部门 2 职员 3 项目 4状态 * 统计对象类型 1 部门 2 职员 3 项目 4状态
*/ */
@Length(max=45, message="长度需要大于0且小于45") @Length(max = 45, message = "长度需要大于0且小于45")
private String objectType; private String objectType;
/** /**
* 客户状态 * 客户状态
*/ */
private Integer customerStatus; private Integer customerStatus;
/** /**
* 客户数量 * 客户数量
*/ */
private Integer customerNum; private Integer customerNum;
/** /**
* 来源ID * 来源ID
*/ */
private Integer sourceId; private Integer sourceId;
/** /**
* 来源名称 * 来源名称
*/ */
@Length(max=1000, message="长度需要大于0且小于1000") @Length(max = 1000, message = "长度需要大于0且小于1000")
private String sourceName; private String sourceName;
/** /**
* 城市编码 * 城市编码
*/ */
@Length(max=20, message="长度需要大于0且小于20") @Length(max = 20, message = "长度需要大于0且小于20")
private String city; private String city;
/** /**
* 城市名称 * 城市名称
*/ */
@Length(max=20, message="长度需要大于0且小于20") @Length(max = 20, message = "长度需要大于0且小于20")
private String cityName; private String cityName;
/** /**
* 环比 * 环比
*/ */
private java.math.BigDecimal dayBaseRatio; private java.math.BigDecimal dayBaseRatio;
/** /**
* 创建时间 * 创建时间
*/ */
private java.util.Date createTime; private java.util.Date createTime;
//columns END //columns END
/* /*
public StatusSourceStatistics(){ public StatusSourceStatistics(){
} }
...@@ -116,239 +116,239 @@ public class StatusSourceStatisticsEntity extends DomainObject{ ...@@ -116,239 +116,239 @@ public class StatusSourceStatisticsEntity extends DomainObject{
*/ */
/** /**
* 设置统计对象ID * 设置统计对象ID
* @param projectId 统计对象ID * @param projectId 统计对象ID
*/ */
public void setProjectId(Integer projectId) { public void setProjectId(Integer projectId) {
this.projectId = projectId; this.projectId = projectId;
} }
/** /**
* 获取统计对象ID * 获取统计对象ID
* @return 统计对象ID * @return 统计对象ID
*/ */
public Integer getProjectId() { public Integer getProjectId() {
return this.projectId; return this.projectId;
} }
/** /**
* 设置统计对象名称 * 设置统计对象名称
* @param projectName 统计对象名称 * @param projectName 统计对象名称
*/ */
public void setProjectName(String projectName) { public void setProjectName(String projectName) {
this.projectName = projectName; this.projectName = projectName;
} }
/** /**
* 获取统计对象名称 * 获取统计对象名称
* @return 统计对象名称 * @return 统计对象名称
*/ */
public String getProjectName() { public String getProjectName() {
return this.projectName; return this.projectName;
} }
/** /**
* 设置统计对象类型 1 部门 2 职员 3 项目 4状态 * 设置统计对象类型 1 部门 2 职员 3 项目 4状态
* @param objectType 统计对象类型 1 部门 2 职员 3 项目 4状态 * @param objectType 统计对象类型 1 部门 2 职员 3 项目 4状态
*/ */
public void setObjectType(String objectType) { public void setObjectType(String objectType) {
this.objectType = objectType; this.objectType = objectType;
} }
/** /**
* 获取统计对象类型 1 部门 2 职员 3 项目 4状态 * 获取统计对象类型 1 部门 2 职员 3 项目 4状态
* @return 统计对象类型 1 部门 2 职员 3 项目 4状态 * @return 统计对象类型 1 部门 2 职员 3 项目 4状态
*/ */
public String getObjectType() { public String getObjectType() {
return this.objectType; return this.objectType;
} }
/** /**
* 设置客户状态 * 设置客户状态
* @param customerStatus 客户状态 * @param customerStatus 客户状态
*/ */
public void setCustomerStatus(Integer customerStatus) { public void setCustomerStatus(Integer customerStatus) {
this.customerStatus = customerStatus; this.customerStatus = customerStatus;
} }
/** /**
* 获取客户状态 * 获取客户状态
* @return 客户状态 * @return 客户状态
*/ */
public Integer getCustomerStatus() { public Integer getCustomerStatus() {
return this.customerStatus; return this.customerStatus;
} }
/** /**
* 设置客户数量 * 设置客户数量
* @param customerNum 客户数量 * @param customerNum 客户数量
*/ */
public void setCustomerNum(Integer customerNum) { public void setCustomerNum(Integer customerNum) {
this.customerNum = customerNum; this.customerNum = customerNum;
} }
/** /**
* 获取客户数量 * 获取客户数量
* @return 客户数量 * @return 客户数量
*/ */
public Integer getCustomerNum() { public Integer getCustomerNum() {
return this.customerNum; return this.customerNum;
} }
/** /**
* 设置来源ID * 设置来源ID
* @param sourceId 来源ID * @param sourceId 来源ID
*/ */
public void setSourceId(Integer sourceId) { public void setSourceId(Integer sourceId) {
this.sourceId = sourceId; this.sourceId = sourceId;
} }
/** /**
* 获取来源ID * 获取来源ID
* @return 来源ID * @return 来源ID
*/ */
public Integer getSourceId() { public Integer getSourceId() {
return this.sourceId; return this.sourceId;
} }
/** /**
* 设置来源名称 * 设置来源名称
* @param sourceName 来源名称 * @param sourceName 来源名称
*/ */
public void setSourceName(String sourceName) { public void setSourceName(String sourceName) {
this.sourceName = sourceName; this.sourceName = sourceName;
} }
/** /**
* 获取来源名称 * 获取来源名称
* @return 来源名称 * @return 来源名称
*/ */
public String getSourceName() { public String getSourceName() {
return this.sourceName; return this.sourceName;
} }
/** /**
* 设置城市编码 * 设置城市编码
* @param city 城市编码 * @param city 城市编码
*/ */
public void setCity(String city) { public void setCity(String city) {
this.city = city; this.city = city;
} }
/** /**
* 获取城市编码 * 获取城市编码
* @return 城市编码 * @return 城市编码
*/ */
public String getCity() { public String getCity() {
return this.city; return this.city;
} }
/** /**
* 设置城市名称 * 设置城市名称
* @param cityName 城市名称 * @param cityName 城市名称
*/ */
public void setCityName(String cityName) { public void setCityName(String cityName) {
this.cityName = cityName; this.cityName = cityName;
} }
/** /**
* 获取城市名称 * 获取城市名称
* @return 城市名称 * @return 城市名称
*/ */
public String getCityName() { public String getCityName() {
return this.cityName; return this.cityName;
} }
/** /**
* 设置环比 * 设置环比
* @param dayBaseRatio 环比 * @param dayBaseRatio 环比
*/ */
public void setDayBaseRatio(java.math.BigDecimal dayBaseRatio) { public void setDayBaseRatio(java.math.BigDecimal dayBaseRatio) {
this.dayBaseRatio = dayBaseRatio; this.dayBaseRatio = dayBaseRatio;
} }
/** /**
* 获取环比 * 获取环比
* @return 环比 * @return 环比
*/ */
public java.math.BigDecimal getDayBaseRatio() { public java.math.BigDecimal getDayBaseRatio() {
return this.dayBaseRatio; return this.dayBaseRatio;
} }
/** /**
* 设置创建时间 * 设置创建时间
* @param createTime 创建时间 * @param createTime 创建时间
*/ */
public void setCreateTime(java.util.Date createTime) { public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime; this.createTime = createTime;
} }
/** /**
* 设置创建时间字符串格式 * 设置创建时间字符串格式
* @param createTime 创建时间 * @param createTime 创建时间
*/ */
public void setCreateTimeStr(String createTime) { public void setCreateTimeStr(String createTime) {
if (!com.house365.web.util.StringUtils.isBlank(createTime)) { if (!com.house365.web.util.StringUtils.isBlank(createTime)) {
try { try {
this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime); this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime);
} catch (java.text.ParseException ex) { } catch (java.text.ParseException ex) {
ex.printStackTrace(); ex.printStackTrace();
} }
} }
} }
/** /**
* 获取创建时间 * 获取创建时间
* @return 创建时间 * @return 创建时间
*/ */
public java.util.Date getCreateTime() { public java.util.Date getCreateTime() {
return this.createTime; return this.createTime;
} }
/** /**
* 实体的toString方法 * 实体的toString方法
* @return 实体字符串 * @return 实体字符串
*/ */
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("Id",getId()) .append("Id", getId())
.append("ProjectId",getProjectId()) .append("ProjectId", getProjectId())
.append("ProjectName",getProjectName()) .append("ProjectName", getProjectName())
.append("ObjectType",getObjectType()) .append("ObjectType", getObjectType())
.append("CustomerStatus",getCustomerStatus()) .append("CustomerStatus", getCustomerStatus())
.append("CustomerNum",getCustomerNum()) .append("CustomerNum", getCustomerNum())
.append("SourceId",getSourceId()) .append("SourceId", getSourceId())
.append("SourceName",getSourceName()) .append("SourceName", getSourceName())
.append("City",getCity()) .append("City", getCity())
.append("CityName",getCityName()) .append("CityName", getCityName())
.append("DayBaseRatio",getDayBaseRatio()) .append("DayBaseRatio", getDayBaseRatio())
.append("CreateTime",getCreateTime()) .append("CreateTime", getCreateTime())
.toString(); .toString();
} }
/** /**
* 获取hash码 * 获取hash码
* @return HASH码 * @return HASH码
*/ */
public int hashCode() { public int hashCode() {
return new HashCodeBuilder() return new HashCodeBuilder()
.append(getId()) .append(getId())
.toHashCode(); .toHashCode();
} }
/** /**
* 对象比较 * 对象比较
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
public boolean equals(Object obj) { public boolean equals(Object obj) {
if(obj instanceof StatusSourceStatisticsEntity == false) return false; if (obj instanceof StatusSourceStatisticsEntity == false) return false;
if(this == obj) return true; if (this == obj) return true;
StatusSourceStatisticsEntity other = (StatusSourceStatisticsEntity)obj; StatusSourceStatisticsEntity other = (StatusSourceStatisticsEntity) obj;
return new EqualsBuilder() return new EqualsBuilder()
.append(getId(),other.getId()) .append(getId(), other.getId())
.isEquals(); .isEquals();
} }
} }
...@@ -4,6 +4,11 @@ import com.house365.beans.system.DomainObject; ...@@ -4,6 +4,11 @@ import com.house365.beans.system.DomainObject;
import java.util.Date; import java.util.Date;
/**
* 用户评分实体类
*
* @author jay
*/
public class UserEvaluateEntity extends DomainObject { public class UserEvaluateEntity extends DomainObject {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: 角色权限关联数据库实体/领域对象 * Description: 角色权限关联数据库实体/领域对象
* Copyright: Copyright (c)2016 * Copyright: Copyright (c)2016
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
* @author: 江苏三六五网络股份有限公司 *
* @version: 1.0 * @author: 江苏三六五网络股份有限公司
* @version: 1.0
* Create at: 2016-09-22 上午 11:32:21 * Create at: 2016-09-22 上午 11:32:21
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -13,202 +14,194 @@ ...@@ -13,202 +14,194 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.constraints.NotNull;
/** /**
* 角色权限关联数据库实体/领域对象<br> * 角色权限关联数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2016-09-22 * @version 1.0, 2016-09-22
* @see * @see
* @since 1.0 * @since 1.0
*/ */
public class UserRoleEntity extends DomainObject{ public class UserRoleEntity extends DomainObject {
/**
* private static final long serialVersionUID = 1L;
*/
private static final long serialVersionUID = 1L; //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 /**
//columns START * 用户ID
/** */
* 用户ID @NotNull
*/ private Integer userId;
@NotNull
private Integer userId; /**
* 角色ID
/** */
* 角色ID @NotNull
*/ private Integer roleId;
@NotNull
private Integer roleId; private String roleCode;
private String roleName;
private String roleCode;
private String roleName; /**
* 创建时间
/** */
* 创建时间 private java.util.Date createTime;
*/
/**
private java.util.Date createTime; * 创建人用户ID
*/
/** private Integer createUserId;
* 创建人用户ID
*/ //columns END
private Integer createUserId;
/**
//columns END * 设置用户ID
/* * @param userId 用户ID
public UserRole(){ */
} public void setUserId(Integer userId) {
this.userId = userId;
public UserRole( }
Integer id
){ /**
this.id = id; * 获取用户ID
} * @return 用户ID
*/
*/ public Integer getUserId() {
return this.userId;
/** }
* 设置用户ID
* @param userId 用户ID /**
*/ * 设置角色ID
public void setUserId(Integer userId) { * @param roleId 角色ID
this.userId = userId; */
} public void setRoleId(Integer roleId) {
this.roleId = roleId;
/** }
* 获取用户ID
* @return 用户ID
*/ public String getRoleCode() {
public Integer getUserId() { return roleCode;
return this.userId; }
}
public void setRoleCode(String roleCode) {
/** this.roleCode = roleCode;
* 设置角色ID }
* @param roleId 角色ID
*/ public String getRoleName() {
public void setRoleId(Integer roleId) { return roleName;
this.roleId = roleId; }
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
public String getRoleCode() {
return roleCode; /**
} * 获取角色ID
* @return 角色ID
public void setRoleCode(String roleCode) { */
this.roleCode = roleCode; public Integer getRoleId() {
} return this.roleId;
}
public String getRoleName() {
return roleName; /**
} * 设置创建时间
* @param createTime 创建时间
public void setRoleName(String roleName) { */
this.roleName = roleName; public void setCreateTime(java.util.Date createTime) {
} this.createTime = createTime;
}
/**
* 获取角色ID /**
* @return 角色ID * 设置创建时间字符串格式
*/ * @param createTime 创建时间
public Integer getRoleId() { */
return this.roleId; public void setCreateTimeStr(String createTime) {
} if (!com.house365.web.util.StringUtils.isBlank(createTime)) {
try {
/** this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime);
* 设置创建时间 } catch (java.text.ParseException ex) {
* @param createTime 创建时间 ex.printStackTrace();
*/ }
public void setCreateTime(java.util.Date createTime) { }
this.createTime = createTime; }
}
/**
/** * 获取创建时间
* 设置创建时间字符串格式 * @return 创建时间
* @param createTime 创建时间 */
*/ public java.util.Date getCreateTime() {
public void setCreateTimeStr(String createTime) { return this.createTime;
if (!com.house365.web.util.StringUtils.isBlank(createTime)) { }
try {
this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime); /**
} catch (java.text.ParseException ex) { * 设置创建人用户ID
ex.printStackTrace(); * @param createUserId 创建人用户ID
} */
} public void setCreateUserId(Integer createUserId) {
} this.createUserId = createUserId;
}
/**
* 获取创建时间 /**
* @return 创建时间 * 获取创建人用户ID
*/ * @return 创建人用户ID
public java.util.Date getCreateTime() { */
return this.createTime; public Integer getCreateUserId() {
} return this.createUserId;
}
/**
* 设置创建人用户ID
* @param createUserId 创建人用户ID
*/
public void setCreateUserId(Integer createUserId) {
this.createUserId = createUserId;
}
/**
* 获取创建人用户ID
* @return 创建人用户ID
*/
public Integer getCreateUserId() {
return this.createUserId;
}
/** /**
* 实体的toString方法 * 实体的toString方法
* @return 实体字符串 * @return 实体字符串
*/ */
public String toString() { @Override
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) public String toString() {
.append("Id",getId()) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("UserId",getUserId()) .append("Id", getId())
.append("RoleId",getRoleId()) .append("UserId", getUserId())
.append("CreateTime",getCreateTime()) .append("RoleId", getRoleId())
.append("CreateUserId",getCreateUserId()) .append("CreateTime", getCreateTime())
.toString(); .append("CreateUserId", getCreateUserId())
} .toString();
}
/**
* 获取hash码 /**
* @return HASH码 * 获取hash码
*/ * @return HASH码
public int hashCode() { */
return new HashCodeBuilder() @Override
.append(getId()) public int hashCode() {
.toHashCode(); return new HashCodeBuilder()
} .append(getId())
.toHashCode();
/** }
* 对象比较
* @param obj 待比较对象 /**
* @return 是否相同<li>true--相同<li>false--不相同 * 对象比较
*/ * @param obj 待比较对象
public boolean equals(Object obj) { * @return 是否相同<li>true--相同<li>false--不相同
if(obj instanceof UserRoleEntity == false) return false; */
if(this == obj) return true; @Override
UserRoleEntity other = (UserRoleEntity)obj; public boolean equals(Object obj) {
return new EqualsBuilder() if (obj instanceof UserRoleEntity == false) {
.append(getId(),other.getId()) return false;
.isEquals(); }
} if (this == obj) {
return true;
}
UserRoleEntity other = (UserRoleEntity) obj;
return new EqualsBuilder()
.append(getId(), other.getId())
.isEquals();
}
} }
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: UserSourceStatistics数据库实体/领域对象 * Description: UserSourceStatistics数据库实体/领域对象
* Copyright: Copyright (c)2016 * Copyright: Copyright (c)2016
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
* @author: 江苏三六五网络股份有限公司 *
* @version: 1.0 * @author: 江苏三六五网络股份有限公司
* @version: 1.0
* Create at: 2016-10-25 上午 09:36:01 * Create at: 2016-10-25 上午 09:36:01
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -13,98 +14,96 @@ ...@@ -13,98 +14,96 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;
/** /**
* UserSourceStatistics数据库实体/领域对象<br> * UserSourceStatistics数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2016-10-25 * @version 1.0, 2016-10-25
* @see * @see
* @since 1.0 * @since 1.0
*/ */
public class UserSourceStatisticsEntity extends StatisticObject{ public class UserSourceStatisticsEntity extends StatisticObject {
/** /**
* *
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START //columns START
/** /**
* 统计对象ID * 统计对象ID
*/ */
private Integer projectId; private Integer projectId;
/** /**
* 统计对象名称 * 统计对象名称
*/ */
@Length(max=1000, message="长度需要大于0且小于1000") @Length(max = 1000, message = "长度需要大于0且小于1000")
private String projectName; private String projectName;
/** /**
* 统计对象类型 1 部门 2 职员 3 项目 * 统计对象类型 1 部门 2 职员 3 项目
*/ */
@Length(max=45, message="长度需要大于0且小于45") @Length(max = 45, message = "长度需要大于0且小于45")
private String objectType; private String objectType;
/** /**
* 客户状态 * 客户状态
*/ */
private Integer customerStatus; private Integer customerStatus;
/** /**
* 客户数量 * 客户数量
*/ */
private Integer customerNum; private Integer customerNum;
/** /**
* 来源ID * 来源ID
*/ */
private Integer sourceId; private Integer sourceId;
/** /**
* 来源名称 * 来源名称
*/ */
@Length(max=1000, message="长度需要大于0且小于1000") @Length(max = 1000, message = "长度需要大于0且小于1000")
private String sourceName; private String sourceName;
/** /**
* 城市编码 * 城市编码
*/ */
@Length(max=20, message="长度需要大于0且小于20") @Length(max = 20, message = "长度需要大于0且小于20")
private String city; private String city;
/** /**
* 城市名称 * 城市名称
*/ */
@Length(max=20, message="长度需要大于0且小于20") @Length(max = 20, message = "长度需要大于0且小于20")
private String cityName; private String cityName;
/** /**
* 环比 * 环比
*/ */
private java.math.BigDecimal dayBaseRatio; private java.math.BigDecimal dayBaseRatio;
/** /**
* 创建时间 * 创建时间
*/ */
private java.util.Date createTime; private java.util.Date createTime;
//columns END //columns END
/* /*
public UserSourceStatistics(){ public UserSourceStatistics(){
} }
...@@ -116,239 +115,239 @@ public class UserSourceStatisticsEntity extends StatisticObject{ ...@@ -116,239 +115,239 @@ public class UserSourceStatisticsEntity extends StatisticObject{
*/ */
/** /**
* 设置统计对象ID * 设置统计对象ID
* @param projectId 统计对象ID * @param projectId 统计对象ID
*/ */
public void setProjectId(Integer projectId) { public void setProjectId(Integer projectId) {
this.projectId = projectId; this.projectId = projectId;
} }
/** /**
* 获取统计对象ID * 获取统计对象ID
* @return 统计对象ID * @return 统计对象ID
*/ */
public Integer getProjectId() { public Integer getProjectId() {
return this.projectId; return this.projectId;
} }
/** /**
* 设置统计对象名称 * 设置统计对象名称
* @param projectName 统计对象名称 * @param projectName 统计对象名称
*/ */
public void setProjectName(String projectName) { public void setProjectName(String projectName) {
this.projectName = projectName; this.projectName = projectName;
} }
/** /**
* 获取统计对象名称 * 获取统计对象名称
* @return 统计对象名称 * @return 统计对象名称
*/ */
public String getProjectName() { public String getProjectName() {
return this.projectName; return this.projectName;
} }
/** /**
* 设置统计对象类型 1 部门 2 职员 3 项目 * 设置统计对象类型 1 部门 2 职员 3 项目
* @param objectType 统计对象类型 1 部门 2 职员 3 项目 * @param objectType 统计对象类型 1 部门 2 职员 3 项目
*/ */
public void setObjectType(String objectType) { public void setObjectType(String objectType) {
this.objectType = objectType; this.objectType = objectType;
} }
/** /**
* 获取统计对象类型 1 部门 2 职员 3 项目 * 获取统计对象类型 1 部门 2 职员 3 项目
* @return 统计对象类型 1 部门 2 职员 3 项目 * @return 统计对象类型 1 部门 2 职员 3 项目
*/ */
public String getObjectType() { public String getObjectType() {
return this.objectType; return this.objectType;
} }
/** /**
* 设置客户状态 * 设置客户状态
* @param customerStatus 客户状态 * @param customerStatus 客户状态
*/ */
public void setCustomerStatus(Integer customerStatus) { public void setCustomerStatus(Integer customerStatus) {
this.customerStatus = customerStatus; this.customerStatus = customerStatus;
} }
/** /**
* 获取客户状态 * 获取客户状态
* @return 客户状态 * @return 客户状态
*/ */
public Integer getCustomerStatus() { public Integer getCustomerStatus() {
return this.customerStatus; return this.customerStatus;
} }
/** /**
* 设置客户数量 * 设置客户数量
* @param customerNum 客户数量 * @param customerNum 客户数量
*/ */
public void setCustomerNum(Integer customerNum) { public void setCustomerNum(Integer customerNum) {
this.customerNum = customerNum; this.customerNum = customerNum;
} }
/** /**
* 获取客户数量 * 获取客户数量
* @return 客户数量 * @return 客户数量
*/ */
public Integer getCustomerNum() { public Integer getCustomerNum() {
return this.customerNum; return this.customerNum;
} }
/** /**
* 设置来源ID * 设置来源ID
* @param sourceId 来源ID * @param sourceId 来源ID
*/ */
public void setSourceId(Integer sourceId) { public void setSourceId(Integer sourceId) {
this.sourceId = sourceId; this.sourceId = sourceId;
} }
/** /**
* 获取来源ID * 获取来源ID
* @return 来源ID * @return 来源ID
*/ */
public Integer getSourceId() { public Integer getSourceId() {
return this.sourceId; return this.sourceId;
} }
/** /**
* 设置来源名称 * 设置来源名称
* @param sourceName 来源名称 * @param sourceName 来源名称
*/ */
public void setSourceName(String sourceName) { public void setSourceName(String sourceName) {
this.sourceName = sourceName; this.sourceName = sourceName;
} }
/** /**
* 获取来源名称 * 获取来源名称
* @return 来源名称 * @return 来源名称
*/ */
public String getSourceName() { public String getSourceName() {
return this.sourceName; return this.sourceName;
} }
/** /**
* 设置城市编码 * 设置城市编码
* @param city 城市编码 * @param city 城市编码
*/ */
public void setCity(String city) { public void setCity(String city) {
this.city = city; this.city = city;
} }
/** /**
* 获取城市编码 * 获取城市编码
* @return 城市编码 * @return 城市编码
*/ */
public String getCity() { public String getCity() {
return this.city; return this.city;
} }
/** /**
* 设置城市名称 * 设置城市名称
* @param cityName 城市名称 * @param cityName 城市名称
*/ */
public void setCityName(String cityName) { public void setCityName(String cityName) {
this.cityName = cityName; this.cityName = cityName;
} }
/** /**
* 获取城市名称 * 获取城市名称
* @return 城市名称 * @return 城市名称
*/ */
public String getCityName() { public String getCityName() {
return this.cityName; return this.cityName;
} }
/** /**
* 设置环比 * 设置环比
* @param dayBaseRatio 环比 * @param dayBaseRatio 环比
*/ */
public void setDayBaseRatio(java.math.BigDecimal dayBaseRatio) { public void setDayBaseRatio(java.math.BigDecimal dayBaseRatio) {
this.dayBaseRatio = dayBaseRatio; this.dayBaseRatio = dayBaseRatio;
} }
/** /**
* 获取环比 * 获取环比
* @return 环比 * @return 环比
*/ */
public java.math.BigDecimal getDayBaseRatio() { public java.math.BigDecimal getDayBaseRatio() {
return this.dayBaseRatio; return this.dayBaseRatio;
} }
/** /**
* 设置创建时间 * 设置创建时间
* @param createTime 创建时间 * @param createTime 创建时间
*/ */
public void setCreateTime(java.util.Date createTime) { public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime; this.createTime = createTime;
} }
/** /**
* 设置创建时间字符串格式 * 设置创建时间字符串格式
* @param createTime 创建时间 * @param createTime 创建时间
*/ */
public void setCreateTimeStr(String createTime) { public void setCreateTimeStr(String createTime) {
if (!com.house365.web.util.StringUtils.isBlank(createTime)) { if (!com.house365.web.util.StringUtils.isBlank(createTime)) {
try { try {
this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime); this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime);
} catch (java.text.ParseException ex) { } catch (java.text.ParseException ex) {
ex.printStackTrace(); ex.printStackTrace();
} }
} }
} }
/** /**
* 获取创建时间 * 获取创建时间
* @return 创建时间 * @return 创建时间
*/ */
public java.util.Date getCreateTime() { public java.util.Date getCreateTime() {
return this.createTime; return this.createTime;
} }
/** /**
* 实体的toString方法 * 实体的toString方法
* @return 实体字符串 * @return 实体字符串
*/ */
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("Id",getId()) .append("Id", getId())
.append("ProjectId",getProjectId()) .append("ProjectId", getProjectId())
.append("ProjectName",getProjectName()) .append("ProjectName", getProjectName())
.append("ObjectType",getObjectType()) .append("ObjectType", getObjectType())
.append("CustomerStatus",getCustomerStatus()) .append("CustomerStatus", getCustomerStatus())
.append("CustomerNum",getCustomerNum()) .append("CustomerNum", getCustomerNum())
.append("SourceId",getSourceId()) .append("SourceId", getSourceId())
.append("SourceName",getSourceName()) .append("SourceName", getSourceName())
.append("City",getCity()) .append("City", getCity())
.append("CityName",getCityName()) .append("CityName", getCityName())
.append("DayBaseRatio",getDayBaseRatio()) .append("DayBaseRatio", getDayBaseRatio())
.append("CreateTime",getCreateTime()) .append("CreateTime", getCreateTime())
.toString(); .toString();
} }
/** /**
* 获取hash码 * 获取hash码
* @return HASH码 * @return HASH码
*/ */
public int hashCode() { public int hashCode() {
return new HashCodeBuilder() return new HashCodeBuilder()
.append(getId()) .append(getId())
.toHashCode(); .toHashCode();
} }
/** /**
* 对象比较 * 对象比较
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
public boolean equals(Object obj) { public boolean equals(Object obj) {
if(obj instanceof UserSourceStatisticsEntity == false) return false; if (obj instanceof UserSourceStatisticsEntity == false) return false;
if(this == obj) return true; if (this == obj) return true;
UserSourceStatisticsEntity other = (UserSourceStatisticsEntity)obj; UserSourceStatisticsEntity other = (UserSourceStatisticsEntity) obj;
return new EqualsBuilder() return new EqualsBuilder()
.append(getId(),other.getId()) .append(getId(), other.getId())
.isEquals(); .isEquals();
} }
} }
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
* Description: UserStar数据库实体/领域对象 * Description: UserStar数据库实体/领域对象
* Copyright: Copyright (c)2017 * Copyright: Copyright (c)2017
* Company: 江苏三六五网络股份有限公司 * Company: 江苏三六五网络股份有限公司
* @author: 江苏三六五网络股份有限公司 *
* @version: 1.0 * @author: 江苏三六五网络股份有限公司
* @version: 1.0
* Create at: 2017-05-15 下午 17:04:55 * Create at: 2017-05-15 下午 17:04:55
* * <p>
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
* ------------------------------------------------------------------ * ------------------------------------------------------------------
...@@ -13,56 +14,56 @@ ...@@ -13,56 +14,56 @@
*/ */
package com.house365.beans.entity; package com.house365.beans.entity;
import javax.validation.constraints.*;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.constraints.NotNull;
/** /**
* UserStar数据库实体/领域对象<br> * UserStar数据库实体/领域对象<br>
* *
* @author 江苏三六五网络股份有限公司 * @author 江苏三六五网络股份有限公司
* @version 1.0, 2017-05-15 * @version 1.0, 2017-05-15
* @see * @see
* @since 1.0 * @since 1.0
*/ */
public class UserStarEntity extends DomainObject{ public class UserStarEntity extends DomainObject {
/** /**
* *
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息 //可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START //columns START
/** /**
* userId * userId
*/ */
@NotNull @NotNull
private Integer userId; private Integer userId;
/** /**
* starUserId * starUserId
*/ */
@NotNull @NotNull
private Integer starUserId; private Integer starUserId;
/** /**
* 1 y - 0 n * 1 y - 0 n
*/ */
@NotNull @NotNull
private Integer star; private Integer star;
/** /**
* createTime * createTime
*/ */
@NotNull @NotNull
private java.util.Date createTime; private java.util.Date createTime;
//columns END //columns END
/* /*
public UserStar(){ public UserStar(){
} }
...@@ -74,120 +75,120 @@ public class UserStarEntity extends DomainObject{ ...@@ -74,120 +75,120 @@ public class UserStarEntity extends DomainObject{
*/ */
/** /**
* 设置userId * 设置userId
* @param userId userId * @param userId userId
*/ */
public void setUserId(Integer userId) { public void setUserId(Integer userId) {
this.userId = userId; this.userId = userId;
} }
/** /**
* 获取userId * 获取userId
* @return userId * @return userId
*/ */
public Integer getUserId() { public Integer getUserId() {
return this.userId; return this.userId;
} }
/** /**
* 设置starUserId * 设置starUserId
* @param starUserId starUserId * @param starUserId starUserId
*/ */
public void setStarUserId(Integer starUserId) { public void setStarUserId(Integer starUserId) {
this.starUserId = starUserId; this.starUserId = starUserId;
} }
/** /**
* 获取starUserId * 获取starUserId
* @return starUserId * @return starUserId
*/ */
public Integer getStarUserId() { public Integer getStarUserId() {
return this.starUserId; return this.starUserId;
} }
/** /**
* 设置1 y - 0 n * 设置1 y - 0 n
* @param star 1 y - 0 n * @param star 1 y - 0 n
*/ */
public void setStar(Integer star) { public void setStar(Integer star) {
this.star = star; this.star = star;
} }
/** /**
* 获取1 y - 0 n * 获取1 y - 0 n
* @return 1 y - 0 n * @return 1 y - 0 n
*/ */
public Integer getStar() { public Integer getStar() {
return this.star; return this.star;
} }
/** /**
* 设置createTime * 设置createTime
* @param createTime createTime * @param createTime createTime
*/ */
public void setCreateTime(java.util.Date createTime) { public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime; this.createTime = createTime;
} }
/** /**
* 设置createTime字符串格式 * 设置createTime字符串格式
* @param createTime createTime * @param createTime createTime
*/ */
public void setCreateTimeStr(String createTime) { public void setCreateTimeStr(String createTime) {
if (!com.house365.web.util.StringUtils.isBlank(createTime)) { if (!com.house365.web.util.StringUtils.isBlank(createTime)) {
try { try {
this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime); this.createTime = java.text.DateFormat.getDateTimeInstance().parse(createTime);
} catch (java.text.ParseException ex) { } catch (java.text.ParseException ex) {
ex.printStackTrace(); ex.printStackTrace();
} }
} }
} }
/** /**
* 获取createTime * 获取createTime
* @return createTime * @return createTime
*/ */
public java.util.Date getCreateTime() { public java.util.Date getCreateTime() {
return this.createTime; return this.createTime;
} }
/** /**
* 实体的toString方法 * 实体的toString方法
* @return 实体字符串 * @return 实体字符串
*/ */
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("Id",getId()) .append("Id", getId())
.append("UserId",getUserId()) .append("UserId", getUserId())
.append("StarUserId",getStarUserId()) .append("StarUserId", getStarUserId())
.append("Star",getStar()) .append("Star", getStar())
.append("CreateTime",getCreateTime()) .append("CreateTime", getCreateTime())
.toString(); .toString();
} }
/** /**
* 获取hash码 * 获取hash码
* @return HASH码 * @return HASH码
*/ */
public int hashCode() { public int hashCode() {
return new HashCodeBuilder() return new HashCodeBuilder()
.append(getId()) .append(getId())
.toHashCode(); .toHashCode();
} }
/** /**
* 对象比较 * 对象比较
* @param obj 待比较对象 * @param obj 待比较对象
* @return 是否相同<li>true--相同<li>false--不相同 * @return 是否相同<li>true--相同<li>false--不相同
*/ */
public boolean equals(Object obj) { public boolean equals(Object obj) {
if(obj instanceof UserStarEntity == false) return false; if (obj instanceof UserStarEntity == false) return false;
if(this == obj) return true; if (this == obj) return true;
UserStarEntity other = (UserStarEntity)obj; UserStarEntity other = (UserStarEntity) obj;
return new EqualsBuilder() return new EqualsBuilder()
.append(getId(),other.getId()) .append(getId(), other.getId())
.isEquals(); .isEquals();
} }
} }
...@@ -5,6 +5,8 @@ import com.house365.beans.system.DomainObject; ...@@ -5,6 +5,8 @@ import com.house365.beans.system.DomainObject;
import java.util.Date; import java.util.Date;
/** /**
* 用户微信关系实体类
*
* @author Created by Administrator on 2020/3/17. * @author Created by Administrator on 2020/3/17.
*/ */
public class UserWxRelation extends DomainObject { public class UserWxRelation extends DomainObject {
......
...@@ -3,8 +3,9 @@ package com.house365.beans.entity; ...@@ -3,8 +3,9 @@ package com.house365.beans.entity;
import com.house365.beans.system.DomainObject; import com.house365.beans.system.DomainObject;
/** /**
* @author * 企业微信用户实体类
* Created by Administrator on 2020/3/17. *
* @author Created by Administrator on 2020/3/17.
*/ */
public class WxUserEntity extends DomainObject { public class WxUserEntity extends DomainObject {
......
...@@ -494,11 +494,9 @@ public class CustomerManagementController extends BaseController { ...@@ -494,11 +494,9 @@ public class CustomerManagementController extends BaseController {
("GTE_customTimeStart"))) || !Strings.isNullOrEmpty(String.valueOf(searchParams.get ("GTE_customTimeStart"))) || !Strings.isNullOrEmpty(String.valueOf(searchParams.get
("LTE_customTimeEnd")))) { ("LTE_customTimeEnd")))) {
if ("1".equals(customTimeType)) { if ("1".equals(customTimeType)) {
// 回访时间 // 回访时间
searchParams.put("EQ_customTimeTypeOne", "1"); searchParams.put("EQ_customTimeTypeOne", "1");
} else if ("2".equals(customTimeType)) { } else if ("2".equals(customTimeType)) {
// 约看时间 // 约看时间
searchParams.put("EQ_customTimeTypeTwo", "1"); searchParams.put("EQ_customTimeTypeTwo", "1");
} else if ("3".equals(customTimeType)) { } else if ("3".equals(customTimeType)) {
...@@ -506,15 +504,12 @@ public class CustomerManagementController extends BaseController { ...@@ -506,15 +504,12 @@ public class CustomerManagementController extends BaseController {
// 到访时间 // 到访时间
searchParams.put("EQ_customTimeTypeThree", "1"); searchParams.put("EQ_customTimeTypeThree", "1");
} else if ("4".equals(customTimeType)) { } else if ("4".equals(customTimeType)) {
// 认筹时间 // 认筹时间
searchParams.put("EQ_customTimeTypeFour", "1"); searchParams.put("EQ_customTimeTypeFour", "1");
} else if ("5".equals(customTimeType)) { } else if ("5".equals(customTimeType)) {
// 认购时间 // 认购时间
searchParams.put("EQ_customTimeTypeFive", "1"); searchParams.put("EQ_customTimeTypeFive", "1");
} else if ("6".equals(customTimeType)) { } else if ("6".equals(customTimeType)) {
// 签约时间 // 签约时间
searchParams.put("EQ_customTimeTypeSix", "1"); searchParams.put("EQ_customTimeTypeSix", "1");
} }
...@@ -754,8 +749,7 @@ public class CustomerManagementController extends BaseController { ...@@ -754,8 +749,7 @@ public class CustomerManagementController extends BaseController {
// 获取star // 获取star
star = customerEntity.getStarCustomer() == 1 ? "on" : "off"; star = customerEntity.getStarCustomer() == 1 ? "on" : "off";
userId4Star = customerId2UsrIdMap.get(customerEntity.getId()) == null ? "" : customerId2UsrIdMap.get userId4Star = customerId2UsrIdMap.get(customerEntity.getId()) == null ? "" : customerId2UsrIdMap.get(customerEntity.getId());
(customerEntity.getId());
} else { } else {
// 计算倒计时 // 计算倒计时
Date bindTime = customerEntity.getBindTime(); Date bindTime = customerEntity.getBindTime();
......
...@@ -64,8 +64,7 @@ public class PlatformManagementController extends BaseController { ...@@ -64,8 +64,7 @@ public class PlatformManagementController extends BaseController {
page.setCurrentPage(number); page.setCurrentPage(number);
} }
UserEntity userEntity = (UserEntity) request.getSession().getAttribute(SessionConstants.THREAD_USER_KEY); UserEntity userEntity = (UserEntity) request.getSession().getAttribute(SessionConstants.THREAD_USER_KEY);
DepartmentEntity departmentEntity = (DepartmentEntity) request.getSession().getAttribute( DepartmentEntity departmentEntity = (DepartmentEntity) request.getSession().getAttribute(SessionConstants.SESSION_CURRNET_DEPT_KEY);
SessionConstants.SESSION_CURRNET_DEPT_KEY);
String cityId = departmentEntity.getCityID(); String cityId = departmentEntity.getCityID();
DepartmentResponse departmentResponse = department.getDepartmentById(Integer.valueOf(cityId)); DepartmentResponse departmentResponse = department.getDepartmentById(Integer.valueOf(cityId));
String cityCode = departmentResponse.getEntity().getDescripition(); String cityCode = departmentResponse.getEntity().getDescripition();
...@@ -252,7 +251,7 @@ public class PlatformManagementController extends BaseController { ...@@ -252,7 +251,7 @@ public class PlatformManagementController extends BaseController {
searchMap.put("ids", ids); searchMap.put("ids", ids);
searchMap.put("managerId", userEntity.getId()); searchMap.put("managerId", userEntity.getId());
searchMap.put("cityCode", cityCode); searchMap.put("cityCode", cityCode);
if(CollectionUtils.isNotEmpty(ids)){ if (CollectionUtils.isNotEmpty(ids)) {
callbackList = customer.getCallBackList(searchMap); callbackList = customer.getCallBackList(searchMap);
} }
...@@ -429,23 +428,21 @@ public class PlatformManagementController extends BaseController { ...@@ -429,23 +428,21 @@ public class PlatformManagementController extends BaseController {
List<PlatRuleEntity> deptList = platRule.queryDeptList(userEntity.getId()); List<PlatRuleEntity> deptList = platRule.queryDeptList(userEntity.getId());
if (deptList == null || deptList.size() == 0) { if (deptList == null || deptList.size() == 0) {
csMap.put("deptUrlPath", city.getUrlPath()); csMap.put("deptUrlPath", city.getUrlPath());
// csMap.put("identityType", "1");//当前城市安家顾问 csMap.put("position", "直销主管");
csMap.put("position", "直销主管");//
managers = iuser.queryManagers(csMap); managers = iuser.queryManagers(csMap);
} else { } else {
String deptIds = "";
List<Integer> idList = new ArrayList<>(); List<Integer> idList = new ArrayList<>();
for (PlatRuleEntity pre : deptList) { for (PlatRuleEntity pre : deptList) {
idList.add(Integer.valueOf(pre.getSalesGroupIds())); idList.add(Integer.valueOf(pre.getSalesGroupIds()));
} }
// deptIds = deptIds.substring(0, deptIds.length()-1);
csMap.put("deptIds", idList); csMap.put("deptIds", idList);
managers = iuser.queryRuleManagers(csMap); managers = iuser.queryRuleManagers(csMap);
} }
model.addAttribute("managers", managers); model.addAttribute("managers", managers);
model.addAttribute("sources", cslrs.getObjectList());//活动来源 //活动来源
model.addAttribute("sources", cslrs.getObjectList());
model.addAttribute("entity", vo.getEntity()); model.addAttribute("entity", vo.getEntity());
return getAutoUrl("newCustomer"); return getAutoUrl("newCustomer");
} }
...@@ -583,7 +580,7 @@ public class PlatformManagementController extends BaseController { ...@@ -583,7 +580,7 @@ public class PlatformManagementController extends BaseController {
CustomerResponse customerResponse = customer.getCustomerById(Integer.valueOf(customerId)); CustomerResponse customerResponse = customer.getCustomerById(Integer.valueOf(customerId));
customerEntity = customerResponse.getEntity(); customerEntity = customerResponse.getEntity();
} else { } else {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>(10);
map.put("managerId", managerId); map.put("managerId", managerId);
map.put("phone", phone); map.put("phone", phone);
customerEntity = customer.getMergeCustomerId(map); customerEntity = customer.getMergeCustomerId(map);
...@@ -686,7 +683,7 @@ public class PlatformManagementController extends BaseController { ...@@ -686,7 +683,7 @@ public class PlatformManagementController extends BaseController {
} }
public List<CustomerProjectEntity> doCustomerProject(UserEntity userEntity, List<Integer> customerIdList) { private List<CustomerProjectEntity> doCustomerProject(UserEntity userEntity, List<Integer> customerIdList) {
Map<String, Object> cpMap = new HashMap<>(10); Map<String, Object> cpMap = new HashMap<>(10);
cpMap.put("idList", customerIdList); cpMap.put("idList", customerIdList);
List<CustomerProjectEntity> cpList = customerProject.queryList(cpMap); List<CustomerProjectEntity> cpList = customerProject.queryList(cpMap);
...@@ -706,7 +703,7 @@ public class PlatformManagementController extends BaseController { ...@@ -706,7 +703,7 @@ public class PlatformManagementController extends BaseController {
return cpList; return cpList;
} }
public List<CustomerProjectEntity> doCustomerProject(UserEntity userEntity, CustomerEntity customerEntity) { private List<CustomerProjectEntity> doCustomerProject(UserEntity userEntity, CustomerEntity customerEntity) {
Map<String, Object> cpMap = new HashMap<>(10); Map<String, Object> cpMap = new HashMap<>(10);
cpMap.put("customerIdNew", customerEntity.getId()); cpMap.put("customerIdNew", customerEntity.getId());
List<CustomerProjectEntity> cpList = customerProject.queryList(cpMap); List<CustomerProjectEntity> cpList = customerProject.queryList(cpMap);
...@@ -726,78 +723,6 @@ public class PlatformManagementController extends BaseController { ...@@ -726,78 +723,6 @@ public class PlatformManagementController extends BaseController {
return cpList; return cpList;
} }
public List<String> addOperateLog(List<String> logShowList, List<CustomerLogEntity> list) {
if (CollectionUtils.isNotEmpty(list)) {
for (CustomerLogEntity p : list) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//获取String类型的时间
String showTime = sdf.format(p.getCreateTime());
if (p.getType() == 1) {
String showWord = showTime + " " + p.getCreateUserName() + " [新增客户]";
logShowList.add(showWord);
} else if (p.getType() == 2) {
StringBuilder builder = new StringBuilder();
builder.append(showTime).append(" ").append(p.getCreateUserName()).append(" [编辑客户] ");
builder.append("将 '").append(p.getModifyName()).append("' 由 '").append(p.getOldValue())
.append("' 修改为 '").append(p.getNewValue()).append("' , ");
logShowList.add(builder.toString().substring(0, builder.toString().lastIndexOf(",")));
} else if (p.getType() == 3) {
String showWord = showTime + " " + p.getCreateUserName() + " [删除客户]";
logShowList.add(showWord);
} else if (p.getType() == 4) {
//营销活动派工
String showWord = showTime + " " + p.getCreateUserName() + " [营销活动-派工客户]" + "给 ";
if (StringUtils.isNotBlank(p.getNewValue())) {
UserEntity showUser = iuser.getById(Integer.valueOf(p.getNewValue()));
if (null != showUser) {
showWord = showWord + showUser.getRealName();
}
}
logShowList.add(showWord);
} else if (p.getType() == 5) {
//公海派工
String showWord = showTime + " " + p.getCreateUserName() + " [公海-派工客户]" + "给 ";
if (StringUtils.isNotBlank(p.getNewValue())) {
UserEntity showUser = iuser.getById(Integer.valueOf(p.getNewValue()));
if (null != showUser) {
showWord = showWord + showUser.getRealName();
}
}
logShowList.add(showWord);
} else if (p.getType() == 6) {
//移入派工
String showWord = showTime + " " + p.getCreateUserName() + " [移入公海]";
logShowList.add(showWord);
} else if (p.getType() == 7) {
//转移客户
String showWord = showTime + " " + p.getCreateUserName() + " [转移客户]" + "给 ";
if (StringUtils.isNotBlank(p.getNewValue())) {
UserEntity showUser = iuser.getById(Integer.valueOf(p.getNewValue()));
if (null != showUser) {
showWord = showWord + showUser.getRealName();
}
}
logShowList.add(showWord);
} else if (p.getType() == 8) {
//无变动
String showWord = showTime + " " + p.getCreateUserName() + " [无变动]";
logShowList.add(showWord);
} else if (p.getType() == 9) {
//云迹活动派工
String showWord = showTime + " " + p.getCreateUserName() + " [云迹活动-派工客户]" + " 给 ";
UserEntity showUser = iuser.getById(Integer.valueOf(p.getNewValue()));
if (null != showUser) {
showWord = showWord + showUser.getRealName();
}
logShowList.add(showWord);
}
}
}
return logShowList;
}
/** /**
* 平台客户规则 * 平台客户规则
* *
...@@ -814,9 +739,7 @@ public class PlatformManagementController extends BaseController { ...@@ -814,9 +739,7 @@ public class PlatformManagementController extends BaseController {
if (null != number) { if (null != number) {
page.setCurrentPage(number); page.setCurrentPage(number);
} }
UserEntity userEntity = (UserEntity) request.getSession().getAttribute(SessionConstants.THREAD_USER_KEY); DepartmentEntity departmentEntity = (DepartmentEntity) request.getSession().getAttribute(SessionConstants.SESSION_CURRNET_DEPT_KEY);
DepartmentEntity departmentEntity = (DepartmentEntity) request.getSession().getAttribute(
SessionConstants.SESSION_CURRNET_DEPT_KEY);
String cityId = departmentEntity.getCityID(); String cityId = departmentEntity.getCityID();
DepartmentResponse departmentResponse = department.getDepartmentById(Integer.valueOf(cityId)); DepartmentResponse departmentResponse = department.getDepartmentById(Integer.valueOf(cityId));
String cityCode = departmentResponse.getEntity().getDescripition(); String cityCode = departmentResponse.getEntity().getDescripition();
...@@ -887,17 +810,6 @@ public class PlatformManagementController extends BaseController { ...@@ -887,17 +810,6 @@ public class PlatformManagementController extends BaseController {
DepartmentListResponse resp = department.getDepartmentList(listReq); DepartmentListResponse resp = department.getDepartmentList(listReq);
List<DepartmentEntity> models = resp.getObjectList(); List<DepartmentEntity> models = resp.getObjectList();
model.addAttribute("trees", models); model.addAttribute("trees", models);
// DepartmentEntity departmentEntity = (DepartmentEntity) request.getSession().getAttribute(
// SessionConstants.SESSION_CURRNET_DEPT_KEY);
// String cityId = departmentEntity.getCityID();
// DepartmentResponse departmentResponse = department.getDepartmentById(Integer.valueOf(cityId));
// DepartmentEntity city = departmentResponse.getEntity();
//
// Map<String, Object> csMap = new HashMap<>(10);
// csMap.put("EQ_city", city.getDescripition());
//
//// List<CustomerSourceEntity> list = customerSource.queryByConditions(map);
//// model.addAttribute("sources", list);
return getAutoUrl("addRule"); return getAutoUrl("addRule");
} }
...@@ -956,19 +868,18 @@ public class PlatformManagementController extends BaseController { ...@@ -956,19 +868,18 @@ public class PlatformManagementController extends BaseController {
@RequestMapping(value = "modifyRule", method = RequestMethod.GET) @RequestMapping(value = "modifyRule", method = RequestMethod.GET)
@ResponseBody @ResponseBody
public String modifyRule(Model model, HttpServletRequest request) { public String modifyRule(Model model, HttpServletRequest request) {
// UserEntity userEntity = (UserEntity) request.getSession().getAttribute(SessionConstants.THREAD_USER_KEY);
String ruleId = request.getParameter("ruleId"); String ruleId = request.getParameter("ruleId");
String platDeptId = request.getParameter("platDeptId"); String platDeptId = request.getParameter("platDeptId");
String saleDeptId = request.getParameter("saleDeptId"); String saleDeptId = request.getParameter("saleDeptId");
String platDeptName = request.getParameter("platDeptName"); String platDeptName = request.getParameter("platDeptName");
String saleDeptName = request.getParameter("saleDeptName"); String saleDeptName = request.getParameter("saleDeptName");
Date newdate = new Date(); Date newDate = new Date();
PlatRuleEntity pre = new PlatRuleEntity(); PlatRuleEntity pre = new PlatRuleEntity();
pre.setPlatGroupIds(platDeptId); pre.setPlatGroupIds(platDeptId);
pre.setPlatGroupName(platDeptName); pre.setPlatGroupName(platDeptName);
pre.setSalesGroupIds(saleDeptId); pre.setSalesGroupIds(saleDeptId);
pre.setSalesGroupName(saleDeptName); pre.setSalesGroupName(saleDeptName);
pre.setUpdateTime(newdate); pre.setUpdateTime(newDate);
pre.setId(Integer.valueOf(ruleId)); pre.setId(Integer.valueOf(ruleId));
platRule.modifyRule(pre); platRule.modifyRule(pre);
return "success"; return "success";
...@@ -997,7 +908,7 @@ public class PlatformManagementController extends BaseController { ...@@ -997,7 +908,7 @@ public class PlatformManagementController extends BaseController {
String saleDeptId = request.getParameter("saleDeptId"); String saleDeptId = request.getParameter("saleDeptId");
String platDeptName = request.getParameter("platDeptName"); String platDeptName = request.getParameter("platDeptName");
String saleDeptName = request.getParameter("saleDeptName"); String saleDeptName = request.getParameter("saleDeptName");
Date newdate = new Date(); Date newDate = new Date();
PlatRuleEntity pre = new PlatRuleEntity(); PlatRuleEntity pre = new PlatRuleEntity();
pre.setCreaterId(String.valueOf(userEntity.getId())); pre.setCreaterId(String.valueOf(userEntity.getId()));
pre.setCreaterName(userEntity.getRealName()); pre.setCreaterName(userEntity.getRealName());
...@@ -1005,12 +916,10 @@ public class PlatformManagementController extends BaseController { ...@@ -1005,12 +916,10 @@ public class PlatformManagementController extends BaseController {
pre.setPlatGroupName(platDeptName); pre.setPlatGroupName(platDeptName);
pre.setSalesGroupIds(saleDeptId); pre.setSalesGroupIds(saleDeptId);
pre.setSalesGroupName(saleDeptName); pre.setSalesGroupName(saleDeptName);
pre.setCreateTime(newdate); pre.setCreateTime(newDate);
pre.setUpdateTime(newdate); pre.setUpdateTime(newDate);
pre.setCityCode(city.getDescripition()); pre.setCityCode(city.getDescripition());
platRule.saveRule(pre); platRule.saveRule(pre);
return "success"; return "success";
} }
......
...@@ -319,7 +319,7 @@ public class UserController extends BaseController { ...@@ -319,7 +319,7 @@ public class UserController extends BaseController {
saveUnbindLog(userEntity, delUser); saveUnbindLog(userEntity, delUser);
} }
} }
user.deleteUserById(Integer.valueOf(ids[i])); user.deleteUserById(Integer.valueOf(ids[i]),userEntity.getId());
} }
} }
} else { } else {
...@@ -334,7 +334,7 @@ public class UserController extends BaseController { ...@@ -334,7 +334,7 @@ public class UserController extends BaseController {
saveUnbindLog(userEntity, delUser); saveUnbindLog(userEntity, delUser);
} }
} }
user.deleteUserById(Integer.valueOf(id)); user.deleteUserById(Integer.valueOf(id),userEntity.getId());
} }
} }
} }
......
...@@ -256,8 +256,10 @@ ...@@ -256,8 +256,10 @@
</td> </td>
<%-- <shiro:hasPermission name="USER_EDIT"> --%> <%-- <shiro:hasPermission name="USER_EDIT"> --%>
<td nowrap="nowrap"> <td nowrap="nowrap">
<%--<i class="icon-edit pointer icon-large" title="编辑"--%>
<%--onclick="window.location='${ctx}/user/${user.entity.id}?action=edit'"></i>--%>
<i class="icon-edit pointer icon-large" title="编辑" <i class="icon-edit pointer icon-large" title="编辑"
onclick="window.location='${ctx}/user/${user.entity.id}?action=edit'"></i> onclick="goEdit(${user.entity.id})"></i>
&nbsp;&nbsp; &nbsp;&nbsp;
<i title="删除" <i title="删除"
class="icon-minus pointer icon-large" class="icon-minus pointer icon-large"
...@@ -311,9 +313,6 @@ ...@@ -311,9 +313,6 @@
<li class="choosemask-fbs" onclick="saveIM(1)" style="margin-left: 10px;">安家顾问</li> <li class="choosemask-fbs" onclick="saveIM(1)" style="margin-left: 10px;">安家顾问</li>
<li class="choosemask-fbs" onclick="saveIM(20)" style="margin-left: 10px;">平台人员</li> <li class="choosemask-fbs" onclick="saveIM(20)" style="margin-left: 10px;">平台人员</li>
</ul> </ul>
<%--<ul class="choosemask-twobtn clearfix">--%>
<%--<li class="choosemask-fbs" onclick="saveIM(13)">房博士测试</li>--%>
<%--</ul>--%>
</div> </div>
</div> </div>
</div> </div>
...@@ -354,6 +353,11 @@ ...@@ -354,6 +353,11 @@
} }
function lock(obj) { function lock(obj) {
debugger;
if (obj == 257) {
alert("appstore账户,请勿操作");
return;
}
$.ajax({ $.ajax({
url: '${ctx}/user/lock/' + obj, url: '${ctx}/user/lock/' + obj,
type: "GET", type: "GET",
...@@ -372,6 +376,18 @@ ...@@ -372,6 +376,18 @@
}); });
} }
function goEdit(id) {
debugger;
if (id == 257) {
alert("appstore账户,请勿操作");
return;
}
var url = "/house365-hgs-web/user/" + id + "?action=edit";
window.location = url;
// window.location.href = url;
<%--window.location='${ctx}/user/ + "" id + "" + ?action=edit';--%>
}
//全选 //全选
function checkAll(btn) { function checkAll(btn) {
if (btn.checked) { if (btn.checked) {
...@@ -436,13 +452,17 @@ ...@@ -436,13 +452,17 @@
if (selectedId == "") { if (selectedId == "") {
House365Util.createModal("删除员工", "请至少选择一条员工!", function () { House365Util.createModal("删除员工", "请至少选择一条员工!", function () {
}); });
} } else {
else {
if (hasCustomers || localHasCustomers) { if (hasCustomers || localHasCustomers) {
House365Util.createModal("删除员工", "员工名下还有客户,请转移交接给其他置业顾问后再删除。", function () { House365Util.createModal("删除员工", "员工名下还有客户,请转移交接给其他置业顾问后再删除。", function () {
}); });
} else { } else {
House365Util.createModal("删除员工", "删除后将无法恢复员工账号,请确认是否继续?", function () { House365Util.createModal("删除员工", "删除后将无法恢复员工账号,请确认是否继续?", function () {
debugger;
if (selectedId.includes("257") == true) {
alert("appstore账户,请勿操作");
return;
}
$.ajax({ $.ajax({
url: '${ctx}/user/' + selectedId, url: '${ctx}/user/' + selectedId,
type: "DELETE", type: "DELETE",
......
...@@ -106,7 +106,7 @@ public interface IUser extends IService { ...@@ -106,7 +106,7 @@ public interface IUser extends IService {
* @param id 唯一标识 * @param id 唯一标识
* @return 删除账户响应 * @return 删除账户响应
*/ */
UserResponse deleteUserById(Integer id); UserResponse deleteUserById(Integer id,int userId);
/** /**
* 修改账户 * 修改账户
......
package com.house365.ws.dao.mapper; package com.house365.ws.dao.mapper;
import com.house365.beans.entity.CityCallConfig; import com.house365.beans.entity.CityCallConfig;
import com.house365.beans.entity.ApproximateEntity;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @author Created by Administrator on 2019/5/6. * @author Created by Administrator on 2019/5/6.
......
...@@ -450,7 +450,7 @@ public class UserImpl implements IUser { ...@@ -450,7 +450,7 @@ public class UserImpl implements IUser {
* @return 删除账户响应 * @return 删除账户响应
*/ */
@Override @Override
public UserResponse deleteUserById(Integer id) { public UserResponse deleteUserById(Integer id,int userId) {
UserResponse response = new UserResponse(); UserResponse response = new UserResponse();
try { try {
// 插入delete_user表 // 插入delete_user表
...@@ -462,6 +462,8 @@ public class UserImpl implements IUser { ...@@ -462,6 +462,8 @@ public class UserImpl implements IUser {
ConvertUtils.register(new DoubleConverter(null), Double.class); ConvertUtils.register(new DoubleConverter(null), Double.class);
ConvertUtils.register(new DateConverter(null), Date.class); ConvertUtils.register(new DateConverter(null), Date.class);
BeanUtils.copyProperties(userDeleted, user); BeanUtils.copyProperties(userDeleted, user);
//添加删除日志
userDeleted.setCreateUserid(userId);
userDeletedService.save(userDeleted); userDeletedService.save(userDeleted);
// 从user表删除用户 // 从user表删除用户
...@@ -823,7 +825,7 @@ public class UserImpl implements IUser { ...@@ -823,7 +825,7 @@ public class UserImpl implements IUser {
return result; return result;
} }
public final static String MD5(String s) { private final static String MD5(String s) {
char hexDigits[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', char hexDigits[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'a', 'b', 'c', 'd', 'e', 'f'}; 'a', 'b', 'c', 'd', 'e', 'f'};
try { try {
......
package com.house365.ws.service.interfaces; package com.house365.ws.service.interfaces;
import com.house365.beans.entity.AppUrl; import com.house365.beans.entity.AppUrl;
import com.house365.beans.system.QueryParams;
import com.house365.service.system.Interfaces.Service; import com.house365.service.system.Interfaces.Service;
import java.util.List; import java.util.List;
/** /**
* Created by Administrator on 2018/9/13. * @author Created by Administrator on 2018/9/13.
*/ */
public interface IGetAppUrlService <T extends AppUrl> extends Service<T> { public interface IGetAppUrlService<T extends AppUrl> extends Service<T> {
List<AppUrl> getListByType(Integer type); List<AppUrl> getListByType(Integer type);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment