修改代码字符编码

This commit is contained in:
2026-02-24 17:53:50 +08:00
parent 2495fe5f6d
commit c8418c7d4b
5195 changed files with 121754 additions and 121754 deletions
@@ -14,42 +14,42 @@ public class AddressScript implements MongoEntity {
private String id;
/**
* 脚本名称
* 脚本名称
*/
private String name;
/**
* 脚本内容
* 脚本内容
*/
private String script;
/**
* 属于哪个文件的
* 属于哪个文件的
*/
private String fileId;
/**
* 创建时间
* 创建时间
*/
private Date createDate;
/**
* 创建用户
* 创建用户
*/
private String createUser;
/**
* 修改时间
* 修改时间
*/
private Date modifyDate;
/**
* 修改用户
* 修改用户
*/
private String modifyUser;
/**
* 是否删除(0-正常 1-删除)
* 是否删除(0-正常 1-删除)
*/
private int status;
@@ -6,7 +6,7 @@ import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import com.fangjia.mongo.persistence.MongoEntity;
/**
* ȨÏÞÐÅÏ¢
* 权限信息
* @author yinjihuan
*
*/
@@ -17,12 +17,12 @@ public class Authority implements MongoEntity {
private String id;
/**
* ȨÏÞÃû³Æ
* 权限名称
*/
private String authName;
/**
* ȨÏÞURL
* 权限URL
*/
private String authUrl;
@@ -8,7 +8,7 @@ import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import com.fangjia.mongo.persistence.MongoEntity;
/**
* 权限组信息
* 权限组信息
* @author yinjihuan
*
*/
@@ -19,12 +19,12 @@ public class AuthorityGroup implements MongoEntity {
private String id;
/**
* 组名称
* 组名称
*/
private String groupName;
/**
* 权限集合
* 权限集合
*/
private List<String> authoritys;
@@ -8,7 +8,7 @@ import javax.persistence.Id;
import com.fangjia.mongo.persistence.MongoEntity;
/**
* ³ÇÊÐÏà¹ØÍ³¼ÆÐÅÏ¢
* 城市相关统计信息
* @author hubingliang
*
*/
@@ -9,7 +9,7 @@ import javax.persistence.Id;
import com.fangjia.mongo.persistence.MongoEntity;
/**
* 角色信息
* 角色信息
* @author yinjihuan
*
*/
@@ -21,17 +21,17 @@ public class Role implements MongoEntity {
private String id;
/**
* 角色名称
* 角色名称
*/
private String roleName;
/**
* 权限信息
* 权限信息
*/
private List<String> authoritys;
/**
* 创建时间
* 创建时间
*/
private Date createDate;
@@ -8,7 +8,7 @@ import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import com.fangjia.mongo.persistence.MongoEntity;
/**
* 用户信息
* 用户信息
* @author yinjihuan
*
*/
@@ -19,32 +19,32 @@ public class User implements MongoEntity {
private String id;
/**
* 用户名
* 用户名
*/
private String username;
/**
* 密码(md5 32位大写加密)
* 密码(md5 32位大写加密)
*/
private String pass;
/**
* 角色信息
* 角色信息
*/
private List<String> roles;
/**
* 数据部人员对应负责的城市列表
* 数据部人员对应负责的城市列表
*/
private List<String> citys;
/**
* 创建时间
* 创建时间
*/
private Date createDate;
/**
* 修改时间
* 修改时间
*/
private Date updateDate;
@@ -1,15 +1,15 @@
package com.fangjia.coredata.dao;
public enum CategoryEnum {
DISTRICT("district", "住宅"), //
MALL("mall", "商场"), //
SHOP("shop", "商铺"), //
OFFICE("office", "写字楼"), //
INDUSTRY("industry", "厂房"), //
SCHOOL("school", "学校"), //
HOSPITAL("hospital", "医院"), //
HOTEL("hotel", "酒店"), //
BANK("bank", "银行"), //
DISTRICT("district", "住宅"), //
MALL("mall", "商场"), //
SHOP("shop", "商铺"), //
OFFICE("office", "写字楼"), //
INDUSTRY("industry", "厂房"), //
SCHOOL("school", "学校"), //
HOSPITAL("hospital", "医院"), //
HOTEL("hotel", "酒店"), //
BANK("bank", "银行"), //
;
private final String category;
@@ -41,7 +41,7 @@ public class AliasUpdateOperationDao extends MongoDaoImpl<AliasUpdateOperation>
opt.setName(name);
opt.setCat(cat);
opt.setAlia(alias);
opt.setOpt("ɾ³ý");
opt.setOpt("删除");
opt.setCreateDate(new Date());
opt.setIp(ip);
opts.add(opt);
@@ -58,7 +58,7 @@ public class AliasUpdateOperationDao extends MongoDaoImpl<AliasUpdateOperation>
opt.setName(name);
opt.setCat(cat);
opt.setAlia(alias);
opt.setOpt("Ìí¼Ó");
opt.setOpt("添加");
opt.setCreateDate(new Date());
opt.setIp(ip);
opts.add(opt);
@@ -55,10 +55,10 @@ public class AnalyTaskDao extends MongoDaoImpl<AnalyTask> implements MongoDao<An
}
/**
* ÐÂÔöÓÐЧµÄÊýÁ¿
* 新增有效的数量
*
* @param id
* ÈÎÎñID
* 任务ID
*/
public void increaseAnalyTaskEffectiveCount(String id) {
AnalyTask at = this.findById(id);
@@ -62,32 +62,32 @@ public class DataTypeDao extends MongoDaoImpl<DataType> implements MongoDao<Data
//
//// private Double lat;
//// private Double lng;
//// private String name;//商业中心名称
//// private List<String> alias;//别名
//// private String city;//城市
//// private String region;//区域
//// private String address;//商户地址
//// private List<String> tags;//标签
//// private List<String> feature;//特色
//// private String businessScope;//商家业态
//// private String businessType;//业态分类
//// private String telephone;//商家电话
//// private Integer consumption;//人均消费
//// private Integer commentCount;//点评量
//// private String businessHours;//营业时间
//// private String parkingInfo;//停车信息
//// private String trafficInfo;//交通信息
//// private String commends;//推荐产品
//// private Double productScore;//产品评分
//// private Double environmentScore;//环境评分
//// private Double serviceScore;//服务评分
//// private String introduction;//商户简介
//// private List<String> inPics;//内部实景
//// private String name;//商业中心名称
//// private List<String> alias;//别名
//// private String city;//城市
//// private String region;//区域
//// private String address;//商户地址
//// private List<String> tags;//标签
//// private List<String> feature;//特色
//// private String businessScope;//商家业态
//// private String businessType;//业态分类
//// private String telephone;//商家电话
//// private Integer consumption;//人均消费
//// private Integer commentCount;//点评量
//// private String businessHours;//营业时间
//// private String parkingInfo;//停车信息
//// private String trafficInfo;//交通信息
//// private String commends;//推荐产品
//// private Double productScore;//产品评分
//// private Double environmentScore;//环境评分
//// private Double serviceScore;//服务评分
//// private String introduction;//商户简介
//// private List<String> inPics;//内部实景
//
// String s1 = "name:名称,city:城市,region:区域,address:地址,business_scope:商家业态,business_type:业态分类,telephone:商家电话,business_hours:营业时间,parking_info:停车信息,traffic_info:交通信息,commends:推荐产品,introduction:商户简介";
// String s2 = "consumption:人均消费,comment_count:点评量";
// String s3 = "lat:纬度,lng:经度,product_score:产品评分,environment_score:环境评分,service_score:服务评分";
// String s4 = "alias:别名,tag:标签,feature:特色,in_pics:内部图片";
// String s1 = "name:名称,city:城市,region:区域,address:地址,business_scope:商家业态,business_type:业态分类,telephone:商家电话,business_hours:营业时间,parking_info:停车信息,traffic_info:交通信息,commends:推荐产品,introduction:商户简介";
// String s2 = "consumption:人均消费,comment_count:点评量";
// String s3 = "lat:纬度,lng:经度,product_score:产品评分,environment_score:环境评分,service_score:服务评分";
// String s4 = "alias:别名,tag:标签,feature:特色,in_pics:内部图片";
//
//
// for(String s : s4.split(",")) {
@@ -37,7 +37,7 @@ public class AnalyRoad implements MongoEntity {
private Date creationDate;
private int newFound; // 1£ºÐ·¢ÏÖ
private int newFound; // 1:新发现
public enum StatusEnum {
NONE(0), SUC(1), ERR(2);
@@ -19,22 +19,22 @@ public class AnalySite implements MongoEntity{
private String city;
private String region;
private String districtName;
private Integer siteCount; //网站数
private int auditStatus;//审阅状态 0:未审核 1:已审核 4:已审阅
private Date auditDate;//审阅时间
private int dataStatus;// 数据状态 0:正常 1:人工删除 2:区域错误 3:被别名关联
private int exists;//是否在seaweed中存在 0:否 1:是
private long version;//版本号
private Date modifiedDate;//修改时间
private Integer siteCount; //网站数
private int auditStatus;//审阅状态 0:未审核 1:已审核 4:已审阅
private Date auditDate;//审阅时间
private int dataStatus;// 数据状态 0:正常 1:人工删除 2:区域错误 3:被别名关联
private int exists;//是否在seaweed中存在 0:否 1:是
private long version;//版本号
private Date modifiedDate;//修改时间
private String siteNames;
private int districtRatio;//住宅比
private String pageType;//新房,旧房
private int districtRatio;//住宅比
private String pageType;//新房,旧房
private String versonStr;//只做展示用,临时
private String versonStr;//只做展示用,临时
private String compareResult;//对比结果
private String aliasName;//别名名称
private String diffRegion;//不同的区域名称
private String compareResult;//对比结果
private String aliasName;//别名名称
private String diffRegion;//不同的区域名称
private Long houseNum;
@Id
@@ -21,21 +21,21 @@ public class CalcDistrictStat implements MongoEntity {
private String city;
private String region;
private String name;
private String estateType; // 物业类型(普通住宅、别墅、商住楼)
private String estateType; // 物业类型(普通住宅、别墅、商住楼)
private Date weekend;
private int value; // 运算出的值
private int value; // 运算出的值
private double credit;
private Integer valueType;
private Integer ownSampleCount; // 自身样本数量
private Integer aroundObjectCount; // 周边对象数量
private Integer aroundSampleCount; // 周边样本数量
private Integer ownSampleCount; // 自身样本数量
private Integer aroundObjectCount; // 周边对象数量
private Integer aroundSampleCount; // 周边样本数量
private Integer aroundMinDistance; // 最近对象距离
private Integer aroundMaxDistance; // 最远对象距离
private Integer aroundMinDistance; // 最近对象距离
private Integer aroundMaxDistance; // 最远对象距离
private Map<String, Integer> guidingMap; // 指导价
private List<Map<String, Object>> thirdpartDetails; // 第三方价格详细信息
private Map<String, Integer> sampleDetailMap; //样本详细分布情况
private Map<String, Integer> guidingMap; // 指导价
private List<Map<String, Object>> thirdpartDetails; // 第三方价格详细信息
private Map<String, Integer> sampleDetailMap; //样本详细分布情况
private Date creationDate;
private Date modificationDate;
@@ -25,9 +25,9 @@ public class Command implements MongoEntity {
private Date creationDate;
public enum CommandStatusEnum {
INIT(0), // 等待处理
QUEUE(1), // 处理中
SUC(2); // 处理完成
INIT(0), // 等待处理
QUEUE(1), // 处理中
SUC(2); // 处理完成
private final int value;
@@ -30,7 +30,7 @@ public class DistrictAlias implements MongoEntity {
private List<BasicDBObject> data;
/*
* 1:ÊÇ·ÖÆÚ
* 1:是分期
* */
private int flg;
@@ -10,7 +10,7 @@ import javax.persistence.Id;
import com.fangjia.mongo.persistence.MongoEntity;
/**
* 小于房型表,用于租金计算使用
* 小于房型表,用于租金计算使用
*/
@Entity
public class DistrictHousetype implements MongoEntity{
@@ -18,12 +18,12 @@ public class DistrictHousetype implements MongoEntity{
private static final long serialVersionUID = 1L;
private String id;
private String city;//城市
private String region;//区域
private String districtName;//楼盘名称
private String estateType;//物业类型
private int houseType;//房型,几室
private Date creationDate;//创建时间
private String city;//城市
private String region;//区域
private String districtName;//楼盘名称
private String estateType;//物业类型
private int houseType;//房型,几室
private Date creationDate;//创建时间
@Id
@GeneratedValue
@@ -28,11 +28,11 @@ public class FieldRule implements MongoEntity {
private Date creationDate;
private Date modificationDate;
/** 解析模式: */
/** 解析模式: */
private String anaMode;
private int anaType; // 0 原来的单个字段解析;1新的模式解析
private int anaType; // 0 原来的单个字段解析;1新的模式解析
private String anaCat;
private List<String> modeAnaFields; // 模式解析字段
private List<String> modeAnaFields; // 模式解析字段
@Id
@GeneratedValue
@@ -15,14 +15,14 @@ public class FileDatasTotality implements MongoEntity{
*/
private static final long serialVersionUID = 2491792175743916538L;
private String id;
private Integer category;//类型:1:测试抽样 2:项目数据 3:其它问题
private Integer category;//类型:1:测试抽样 2:项目数据 3:其它问题
private String fileName;
private String oldFileName;//原文件名称
private Date creationDate;// 创建时间
private Date modificationDate;// 更新时间
private Integer status;//处理状态 -1:Excel解析中,0:上传成功 1:解析中 2:解析完成 3:失败 4:人工调查 5:分析中 6:完成
private Integer total;//总数
private Integer failTotal;//失败总数
private String oldFileName;//原文件名称
private Date creationDate;// 创建时间
private Date modificationDate;// 更新时间
private Integer status;//处理状态 -1:Excel解析中,0:上传成功 1:解析中 2:解析完成 3:失败 4:人工调查 5:分析中 6:完成
private Integer total;//总数
private Integer failTotal;//失败总数
private String userId;
@@ -19,38 +19,38 @@ public class FileDetailData implements MongoEntity{
private String region;
private String districtName;
private String address;
private Double oriArea;//面积:原始输入
private Double oriArea;//面积:原始输入
private Integer status;
private Integer category;//类型:1:测试抽样 2:项目数据 3:其它问题
private Integer category;//类型:1:测试抽样 2:项目数据 3:其它问题
private String rating;//评级
private String rating;//评级
private String matchCity;
private String matchRegion;
private String matchAddress;//匹配的地址
private String matchDistrictName;//匹配的小区名
private String matchSimilarDistrictName;//匹配时和用户输入最相似的小区名
private String matchDistrictNumber;//匹配的小区编号
private String matchHouseNum;//匹配的楼号
private String matchUnitNum;//匹配的单元号
private String matchRoomNum;//匹配的室号
private String matchLevel;//匹配可信度
private String avgPriceLeval;//均价可信度
private String parseStreet;//地址中解析出来的路
private String matchAddress;//匹配的地址
private String matchDistrictName;//匹配的小区名
private String matchSimilarDistrictName;//匹配时和用户输入最相似的小区名
private String matchDistrictNumber;//匹配的小区编号
private String matchHouseNum;//匹配的楼号
private String matchUnitNum;//匹配的单元号
private String matchRoomNum;//匹配的室号
private String matchLevel;//匹配可信度
private String avgPriceLeval;//均价可信度
private String parseStreet;//地址中解析出来的路
private Integer districtAvgPrice;
private Integer valueType;
private Double weekendMarkup; //周涨跌幅
private Double weekendMarkup; //周涨跌幅
private Double lat;
private Double lng;
private String addrCheckLevel; //地址验证级别
private String estateType; //物业类型
private String addrCheckLevel; //地址验证级别
private String estateType; //物业类型
private Double area;
private Long totalPrice;
private Integer historyPrice; //历史价格
private Integer historyPrice; //历史价格
private Date latestSurveyDate;
private Integer checkStatus; //人工是否检查 0-未检查 1-已经检查
private Integer checkStatus; //人工是否检查 0-未检查 1-已经检查
private String realCity;
private String realRegion;
@@ -59,25 +59,25 @@ public class FileDetailData implements MongoEntity{
private String realUnitNum;
private String realRoomNum;
private Integer noMatchReason; //原因枚举(需沟通),0或null代表无原因
private String otherReason;//其他原因
private Integer noMatchReason; //原因枚举(需沟通),0或null代表无原因
private String otherReason;//其他原因
private Integer realPrice;
private Date surveyDate;
private Double avgDiffPercent;
private String remark;//描述
private String remark;//描述
private String userId; //用户ID
private String userName; //用户名
private String dutyName;//城市所属责任人名字
private Integer handleState;//问题处理状态 1已处理 0存疑
private String userId; //用户ID
private String userName; //用户名
private String dutyName;//城市所属责任人名字
private Integer handleState;//问题处理状态 1已处理 0存疑
private Date creationDate;// 创建时间
private Date modificationDate;// 更新时间
private String modifier;//操作人
private Date creationDate;// 创建时间
private Date modificationDate;// 更新时间
private String modifier;//操作人
private Integer serial;
private String fileName;//文件mingcheng
private String fileName;//文件mingcheng
//房估估均价 云估价均价 链家均价 安居客均价 赶集网均价 搜房网均价 兔博士均价
//房估估均价 云估价均价 链家均价 安居客均价 赶集网均价 搜房网均价 兔博士均价
private Integer fangguguPrice;
private Integer yungujiaPrice;
private Integer lianjiaPrice;
@@ -103,14 +103,14 @@ public class FileDetailData implements MongoEntity{
}
public enum NoMatchReasonEnum {
PIPEILUOJI(1, "匹配逻辑问题"), // 匹配逻辑问题
YUANSHIDIZHIQUYUCUOWU(2, "原始地址/区域错误"), // 原始地址/区域错误
MINGCHENGBIEMINGCUOWU(3, "名称/别名错误"), // 名称/别名错误
DIZHICUOWU(4, "库中地址错误"), // 库中地址错误
QUYUCUOWU(5, "库中区域错误"), // 库中区域错误
WUXIAOQU(6, "库中无此小区"), // 库中无此小区
WUXIAODIZHI(7, "无效地址"), // 无效地址
QITA(8, "其他原因"), // 其他原因
PIPEILUOJI(1, "匹配逻辑问题"), // 匹配逻辑问题
YUANSHIDIZHIQUYUCUOWU(2, "原始地址/区域错误"), // 原始地址/区域错误
MINGCHENGBIEMINGCUOWU(3, "名称/别名错误"), // 名称/别名错误
DIZHICUOWU(4, "库中地址错误"), // 库中地址错误
QUYUCUOWU(5, "库中区域错误"), // 库中区域错误
WUXIAOQU(6, "库中无此小区"), // 库中无此小区
WUXIAODIZHI(7, "无效地址"), // 无效地址
QITA(8, "其他原因"), // 其他原因
;
private final int reason;
private final String reasonDesc;
@@ -138,14 +138,14 @@ public class FileDetailData implements MongoEntity{
public static String getReasonString(int reason){
String result = null;
if(reason == 1) result = "匹配逻辑问题";
else if(reason == 2) result = "原始地址/区域错误";
else if(reason == 3) result = "名称/别名错误";
else if(reason == 4) result = "库中地址错误";
else if(reason == 5) result = "库中区域错误";
else if(reason == 6) result = "库中无此小区";
else if(reason == 7) result = "无效地址";
else if(reason == 8) result = "其他原因";
if(reason == 1) result = "匹配逻辑问题";
else if(reason == 2) result = "原始地址/区域错误";
else if(reason == 3) result = "名称/别名错误";
else if(reason == 4) result = "库中地址错误";
else if(reason == 5) result = "库中区域错误";
else if(reason == 6) result = "库中无此小区";
else if(reason == 7) result = "无效地址";
else if(reason == 8) result = "其他原因";
else result = "";
return result;
}
@@ -44,7 +44,7 @@ public class House implements MongoEntity {
private String road;
private String url;
public static final String[] TAGS = {"뗌떠", "憐떠","젬탤", "딸속", "崗틈", "빻蹈충생", "曇넥", "깎邯", "捏렛","던빻蹈","댕빻蹈"};
public static final String[] TAGS = {"独栋", "整栋","联排", "叠加", "双拼", "花园面积", "泳池", "别墅", "洋房","带花园","大花园"};
public String getHouseKey() {
@@ -322,7 +322,7 @@ public class House implements MongoEntity {
return false;
}
String[] typeWords = {"북理", "틈理", "데쇌", "�팟", "畇俚짜"};
String[] typeWords = {"合租", "拼租", "单间", "商铺", "写字楼"};
if(StringUtils.isNotBlank(rentType) && StringUtils.indexOfAny(rentType, typeWords)>-1){
return false;
}
@@ -342,11 +342,11 @@ public class House implements MongoEntity {
return false;
}
String[] words = {"데쇌","북理","寮塊","늴塊","몰뙤","몰쇌","寧쇌","눠貫","�팟","畇俚짜","곗무","묏鱗杆"};
String[] words = {"单间","合租","主卧","次卧","隔断","隔间","一间","床位","商铺","写字楼","办公","工作室"};
if(StringUtils.isNotBlank(name) && StringUtils.indexOfAny(name, words) > -1){
if(name.contains("곗무") && StringUtils.indexOfAny(name, TAGS) > -1){
if(name.contains("办公") && StringUtils.indexOfAny(name, TAGS) > -1){
return true;
}else{
return false;
@@ -23,11 +23,11 @@ public class Seeds implements MongoEntity {
private String url;
private String city;
private int count;
private String parentId;// 关联到website表
private String parentId;// 关联到website表
private double score;
private int status;// 网站完成状态
private Date creationDate;// 创建时间
private Date modificationDate;// 更新时间
private int status;// 网站完成状态
private Date creationDate;// 创建时间
private Date modificationDate;// 更新时间
@Id
@GeneratedValue
@@ -22,23 +22,23 @@ public class Snapshot implements MongoEntity {
private String jobId;
private String sessionId;
/**
* 原metadata的创建时间
* 原metadata的创建时间
*/
private Date createMetaDate;
/**
* 本数据的创建时间
* 本数据的创建时间
*/
private Date createDate = new Date();
/**
* 对应的城市
* 对应的城市
*/
private String city;
/**
* 网页源码
* 网页源码
*/
private String content;
/**
* 失败原因
* 失败原因
*/
private String reason;
@@ -14,8 +14,8 @@ public class VerifyField implements MongoEntity {
private static final long serialVersionUID = -7574922668982890694L;
private String id;
private String field; // ×Ö¶Î
private String fieldName; // ×Ö¶ÎÃèÊö
private String field; // 字段
private String fieldName; // 字段描述
private Date creationDate;
@Id
@@ -14,40 +14,40 @@ public class VerifyRule implements MongoEntity {
private static final long serialVersionUID = -5669289022913452458L;
private String id;
private String fieldId; // 字段Id
private int type; // 匹配类型
private String fieldId; // 字段Id
private int type; // 匹配类型
private String value; //
private Number minValue; // 数值型的最小值
private Number maxValue; // 数值型的最大值
private int sequence = 1000; // 序号,小的靠前
// private int order; // 逻辑命令 0:and;1:or
private double score; // 0-1之间的值
private Number minValue; // 数值型的最小值
private Number maxValue; // 数值型的最大值
private int sequence = 1000; // 序号,小的靠前
// private int order; // 逻辑命令 0:and;1:or
private double score; // 0-1之间的值
private Date creationDate;
private Date modificationDate;
public enum TypeEnum {
/**
* 正则
* 正则
*/
REGULAR(0),
/**
* 以***开头
* 以***开头
*/
STARTSWITH(1),
/**
* 以***结尾
* 以***结尾
*/
ENDWITH(2),
/**
* 包含
* 包含
*/
CONTAINS(3),
/**
* 全等
* 全等
*/
EQUALS(4),
/**
* 数值
* 数值
*/
Numberic(5);
@@ -18,19 +18,19 @@ public class Webpage implements MongoEntity {
*/
private static final long serialVersionUID = 4346835732679745566L;
private String id;
private String city; // 城市
private String url; // 原始URL
private String city; // 城市
private String url; // 原始URL
private String category; // 类型 district,new_district,shop,office
private String siteName; // 网站名称
private String pageName; // 页面名称
private String category; // 类型 district,new_district,shop,office
private String siteName; // 网站名称
private String pageName; // 页面名称
private byte[] contentBytes;
private Date creationDate;// 创建时间
private Date modificationDate;// 更新时间
private Date creationDate;// 创建时间
private Date modificationDate;// 更新时间
private Integer status;
private Date analyDate;// 最近更新时间
private Date analyDate;// 最近更新时间
public enum StatusEnum {
NONE(0), SUC(1), ERR(2);
@@ -17,17 +17,17 @@ public class WebpageAnalyLog implements MongoEntity{
*/
private static final long serialVersionUID = 5279029317964255582L;
private String id;
private String siteName; // 网站名称
private String category; // 类型
private String siteName; // 网站名称
private String category; // 类型
private String city;
private Date statDate;//统计日期
private Date creationDate;// 创建时间
private Integer totalCount;//总量
private Integer addCount;//保存量
private Integer updateCount;//更新量
private Integer filterCount;//过滤量
private Integer errorCount;//异常量
private Integer lostCount;//放弃量
private Date statDate;//统计日期
private Date creationDate;// 创建时间
private Integer totalCount;//总量
private Integer addCount;//保存量
private Integer updateCount;//更新量
private Integer filterCount;//过滤量
private Integer errorCount;//异常量
private Integer lostCount;//放弃量
@Id
@@ -20,17 +20,17 @@ public class Website implements MongoEntity {
private String id;
private List<Map<String, Object>> relatedJobs;
// private List<Map<String, Object>> seeds;
private String category; // 类型 district,shop,office
private String scope; // 网站规模性质
private String siteName; // 网站名称
private String pageName; // 页面名称
private String root; // 根域名
private Date creationDate;// 创建时间
private Date modificationDate;// 更新时间
private String category; // 类型 district,shop,office
private String scope; // 网站规模性质
private String siteName; // 网站名称
private String pageName; // 页面名称
private String root; // 根域名
private Date creationDate;// 创建时间
private Date modificationDate;// 更新时间
private String remark;
private String pinyin;
private int status;
private double score;//评分
private double score;//评分
public enum UrlEnum {
INIT(0), CRAWL_CONFIG(1), CRAWLED(2), ANALY_CONFIG(3), ANALYED(4), DONE(5);
@@ -18,14 +18,14 @@ public class WorkFlow implements MongoEntity{
private static final long serialVersionUID = -7344104838607075439L;
private String id;
private String url;//抓取url
private int status;//url状态 0:末完成 1:已完成
private String url;//抓取url
private int status;//url状态 0:末完成 1:已完成
private String city;
private String cat;
private String siteName;
private String remark;
private Date creationDate;// 创建时间
private Date creationDate;// 创建时间
@Id
@GeneratedValue
@@ -40,14 +40,14 @@ public class District extends Seaweed {
private List<String> addrAlias;
private String description;
private Integer avgPrice; // 元/㎡
private Integer totalPrice; // 万元/套
private Integer avgPrice; // 元/㎡
private Integer totalPrice; // 万元/套
private String mobile;
private List<Object> floorplanPics;// 楼层平面图(房型图,户型图)(url列表)
private List<Object> floorplanPics;// 楼层平面图(房型图,户型图)(url列表)
private List<String> pics;
private List<String> outPics;// 外景图
private List<String> inPics;// 室内图(实景图)
private List<String> samplePics;// 样板图
private List<String> outPics;// 外景图
private List<String> inPics;// 室内图(实景图)
private List<String> samplePics;// 样板图
private List<String> matchingPics;
private String videoUrl;
private Long lat2;
@@ -227,12 +227,12 @@ public class District extends Seaweed {
this.addrAlias = addrAlias;
}
public static final String[] VILLA_TYPE = new String[] { "别墅", "独栋", "联排", "双拼", "叠加" };
public static final String[] VILLA_TYPE = new String[] { "别墅", "独栋", "联排", "双拼", "叠加" };
public static final String[] DIS_TYPE = new String[] { "住宅", "公寓", "小区", "商住" };
public static final String[] DIS_TYPE = new String[] { "住宅", "公寓", "小区", "商住" };
// public enum KindEnum {
// DISTRICT("小区"), VILLA("别墅"), SHOP("商铺"), OFFICE("写字楼");
// DISTRICT("小区"), VILLA("别墅"), SHOP("商铺"), OFFICE("写字楼");
// private final String kind;
//
// KindEnum(String kind) {
@@ -246,7 +246,7 @@ public class District extends Seaweed {
@Deprecated
public enum EstateTypeEnum {
DISTRICT("小区"), VILLA("别墅");
DISTRICT("小区"), VILLA("别墅");
private final String estateType;
EstateTypeEnum(String estateType) {
@@ -268,18 +268,18 @@ public class District extends Seaweed {
}
/**
* 获取小区类型
* 获取小区类型
*/
@Deprecated
public String getDistrictType() {
Set<String> ret = new HashSet<String>();
if (StringUtils.isNotBlank(estateType)) {
if (StringUtils.indexOfAny(estateType, VILLA_TYPE) > -1) {
ret.add("别墅");
ret.add("别墅");
}
if (StringUtils.indexOfAny(estateType, DIS_TYPE) > -1) {
ret.add("小区");
ret.add("小区");
}
}
@@ -293,11 +293,11 @@ public class District extends Seaweed {
@Deprecated
public boolean isVilla() {
// String dt = getDistrictType();
// if (dt != null && dt.indexOf("别墅") > -1) {
// if (dt != null && dt.indexOf("别墅") > -1) {
// return true;
// }
if(estateType2 != null && estateType2.indexOf("别墅") > -1) {
if(estateType2 != null && estateType2.indexOf("别墅") > -1) {
return true;
}
@@ -307,7 +307,7 @@ public class District extends Seaweed {
@Deprecated
public boolean isApartment() {
String dt = getDistrictType();
if (dt != null && dt.indexOf("小区") > -1) {
if (dt != null && dt.indexOf("小区") > -1) {
return true;
}
return false;
@@ -48,7 +48,7 @@ public class Seabird implements MongoEntity {
private String url;
private List<String> floorplanPics;
private List<String> pics;
private Long lat;// 经纬度字段,以及最大最小经纬度字段
private Long lat;// 经纬度字段,以及最大最小经纬度字段
private Long lng;
private String cat;
private Integer age;
@@ -42,12 +42,12 @@ public class Seawater implements MongoEntity {
private Integer month;
public enum CatEnum {
SELL("sell"), // 二手房
RENT("rent"), // 租房
SHOP_SELL("shop_sell"), // 商铺出售房源
SHOP_RENT("shop_rent"), // 商铺出租房源
OFFICE_SELL("office_sell"), // 写字楼出售房源
OFFICE_RENT("office_rent");// 写字楼出租房源
SELL("sell"), // 二手房
RENT("rent"), // 租房
SHOP_SELL("shop_sell"), // 商铺出售房源
SHOP_RENT("shop_rent"), // 商铺出租房源
OFFICE_SELL("office_sell"), // 写字楼出售房源
OFFICE_RENT("office_rent");// 写字楼出租房源
private final String cat;
@@ -280,11 +280,11 @@ public class Seawater implements MongoEntity {
return false;
}
if (districtName != null && districtName.indexOf("别墅") > -1) {
if (districtName != null && districtName.indexOf("别墅") > -1) {
return true;
}
if (name != null && name.indexOf("别墅") > -1 && area != null && area > 180) {
if (name != null && name.indexOf("别墅") > -1 && area != null && area > 180) {
return true;
}
@@ -533,7 +533,7 @@ public class Seawater implements MongoEntity {
if (totalPrice == null || area == null || StringUtils.isBlank(region) || StringUtils.isBlank(districtName) || room == null) {
return false;
}
if(StringUtils.isNotBlank(rentType) && (rentType.contains("合租") || rentType.contains("拼租") || rentType.contains("单间"))){
if(StringUtils.isNotBlank(rentType) && (rentType.contains("合租") || rentType.contains("拼租") || rentType.contains("单间"))){
return false;
}
if(area <=30 || area>10000){
@@ -552,11 +552,11 @@ public class Seawater implements MongoEntity {
return false;
}
if(StringUtils.isNotBlank(estateType) && (estateType.indexOf("商铺")!=-1||estateType.indexOf("写字楼")!=-1)){
if(StringUtils.isNotBlank(estateType) && (estateType.indexOf("商铺")!=-1||estateType.indexOf("写字楼")!=-1)){
return false;
}
String[] words = {"单间","合租","主卧","次卧","隔断","隔间","一间","床位","商铺","写字楼","办公","工作室"};
String[] words = {"单间","合租","主卧","次卧","隔断","隔间","一间","床位","商铺","写字楼","办公","工作室"};
for(String word : words){
if(StringUtils.isNotBlank(name) && name.indexOf(word)!=-1){
@@ -16,9 +16,9 @@ import com.fangjia.mongo.persistence.MongoEntity;
public class Seaweed implements MongoEntity {
public enum CategoryEnum {
DISTRICT("district", "סլ"), //
SHOP("shop", "ÉÌÆÌ"), //
OFFICE("office", "д×ÖÂ¥"), //
DISTRICT("district", "住宅"), //
SHOP("shop", "商铺"), //
OFFICE("office", "写字楼"), //
;
private final String category;
@@ -48,7 +48,7 @@ public class Seaweed implements MongoEntity {
}
public enum EstateTypeEnum {
DISTRICT("ÆÕͨסլ"), VILLA("±ðÊû");
DISTRICT("普通住宅"), VILLA("别墅");
private final String estateType;
EstateTypeEnum(String estateType) {
@@ -63,7 +63,7 @@ public class Seaweed implements MongoEntity {
if (estateType == null) {
return EstateTypeEnum.DISTRICT;
}
if (StringUtils.indexOfAny(estateType, new String[] { "±ðÊû" }) > -1) {
if (StringUtils.indexOfAny(estateType, new String[] { "别墅" }) > -1) {
return EstateTypeEnum.VILLA;
}
return EstateTypeEnum.DISTRICT;
@@ -94,14 +94,14 @@ public class Seaweed implements MongoEntity {
private List<String> addrAlias;
private String description;
private Integer avgPrice; // Ôª/©O
private Integer totalPrice; // ÍòÔª/Ì×
private Integer avgPrice; // 元/㎡
private Integer totalPrice; // 万元/套
private String mobile;
private List<Object> floorplanPics;// Â¥²ãÆ½ÃæÍ¼£¨·¿ÐÍͼ,»§ÐÍͼ£©£¨urlÁÐ±í£©
private List<Object> floorplanPics;// 楼层平面图(房型图,户型图)(url列表)
private List<String> pics;
private List<String> outPics;// Í⾰ͼ
private List<String> inPics;// ÊÒÄÚͼ(ʵ¾°Í¼)
private List<String> samplePics;// Ñù°åͼ
private List<String> outPics;// 外景图
private List<String> inPics;// 室内图(实景图)
private List<String> samplePics;// 样板图
private List<String> matchingPics;
private Long lat2;
private Long lng2;
@@ -28,7 +28,7 @@ public class AverageStatisticsDao extends MongoDaoImpl<AverageStatistics> implem
}
/**
* 获取最新的一条网络价格
* 获取最新的一条网络价格
*
* @param city
* @param region
@@ -94,7 +94,7 @@ public class AverageStatisticsDao extends MongoDaoImpl<AverageStatistics> implem
}
/**
* 找出第三方最近两个月的对比价
* 找出第三方最近两个月的对比价
*
* @param city
* @param region
@@ -127,7 +127,7 @@ public class AverageStatisticsDao extends MongoDaoImpl<AverageStatistics> implem
List<Map<String, Object>> datas = new ArrayList<Map<String, Object>>();
// 注意:优先使用第三方的二手房价格
// 注意:优先使用第三方的二手房价格
this.addSoufunValue(datas, list);
this.addAnjukeValue(datas, list);
this.addSinaValue(datas, list);
@@ -361,7 +361,7 @@ public class AverageStatisticsDao extends MongoDaoImpl<AverageStatistics> implem
}
}
//查询某时间范围内的价格
//查询某时间范围内的价格
public List<Map<String, Object>> findThirdpartsAveragersByDate(String city, String region, String name, String category,
Date lineDate) {
DBObject q = new BasicDBObject();
@@ -383,7 +383,7 @@ public class AverageStatisticsDao extends MongoDaoImpl<AverageStatistics> implem
List<Map<String, Object>> datas = new ArrayList<Map<String, Object>>();
// 注意:优先使用第三方的二手房价格
// 注意:优先使用第三方的二手房价格
this.addSoufunValue(datas, list);
this.addAnjukeValue(datas, list);
//this.addSinaValue(datas, list);
@@ -49,7 +49,7 @@ public class BusinessRegionStatDao extends MongoDaoImpl<BusinessRegionStat> impl
}
/**
* ±£´æ»òÕ߸üÐÂ
* 保存或者更新
*
* @param regionStat
*/
@@ -31,7 +31,7 @@ public class DistrictStatDao extends MongoDaoImpl<DistrictStat> implements Mongo
}
/**
* 保存或者更新
* 保存或者更新
*
* @param districtStat
*/
@@ -52,10 +52,10 @@ public class DistrictStatDao extends MongoDaoImpl<DistrictStat> implements Mongo
q.put("region", region);
q.put("district_name", districtName);
q.put("weekend", weekend);
if (null != estateType && estateType.contains("别墅")) {
q.put("estate_type", "别墅");
if (null != estateType && estateType.contains("别墅")) {
q.put("estate_type", "别墅");
}else{
q.put("estate_type", "小区");
q.put("estate_type", "小区");
}
return this.findOne(q);
}
@@ -92,8 +92,8 @@ public class DistrictStatDao extends MongoDaoImpl<DistrictStat> implements Mongo
q.put("city", city);
q.put("region", region);
q.put("district_name", districtName);
if ("普通住宅".equals(estateType)) {
estateType = "小区";
if ("普通住宅".equals(estateType)) {
estateType = "小区";
}
q.put("estate_type", estateType);
@@ -129,8 +129,8 @@ public class DistrictStatDao extends MongoDaoImpl<DistrictStat> implements Mongo
q.put("region", region);
}
q.put("district_name", districtName);
if ("普通住宅".equals(estateType)) {
estateType = "小区";
if ("普通住宅".equals(estateType)) {
estateType = "小区";
}
q.put("estate_type", estateType);
@@ -165,7 +165,7 @@ public class DistrictStatDao extends MongoDaoImpl<DistrictStat> implements Mongo
q.put("city", city);
q.put("region", region);
q.put("district_name", districtName);
q.put("estate_type", (estateType != null && estateType.indexOf("别墅") > -1 ? "别墅" : "小区"));
q.put("estate_type", (estateType != null && estateType.indexOf("别墅") > -1 ? "别墅" : "小区"));
q.put("weekend", new BasicDBObject("$lte", beforeWeekend));
DBObject sq = new BasicDBObject();
@@ -183,8 +183,8 @@ public class DistrictStatDao extends MongoDaoImpl<DistrictStat> implements Mongo
q.put("city", city);
q.put("region", region);
q.put("district_name", districtName);
if ("普通住宅".equals(estateType)) {
estateType = "小区";
if ("普通住宅".equals(estateType)) {
estateType = "小区";
}
q.put("estate_type", estateType);
@@ -203,8 +203,8 @@ public class DistrictStatDao extends MongoDaoImpl<DistrictStat> implements Mongo
q.put("city", city);
q.put("region", region);
q.put("district_name", name);
if (estateType.indexOf("普通住宅") > -1) {
estateType = "小区";
if (estateType.indexOf("普通住宅") > -1) {
estateType = "小区";
}
q.put("estate_type", estateType);
this.delete(q);
@@ -220,7 +220,7 @@ public class DistrictStatRentDao extends MongoDaoImpl<DistrictStatRent> implemen
/**
* ±£´æ»òÕ߸üÐÂ
* 保存或者更新
*
* @param RentStatDao
*/
@@ -39,7 +39,7 @@ public class GuidingPriceDao extends MongoDaoImpl<GuidingPrice> implements Mongo
q.put("name", name);
q.put("category", category);
if (estateType != null) {
q.put("estate_type", estateType.indexOf("±ðÊû") > -1 ? Seaweed.EstateTypeEnum.VILLA.getEstateType() : Seaweed.EstateTypeEnum.DISTRICT.getEstateType());
q.put("estate_type", estateType.indexOf("别墅") > -1 ? Seaweed.EstateTypeEnum.VILLA.getEstateType() : Seaweed.EstateTypeEnum.DISTRICT.getEstateType());
}
GuidingPrice gp = this.findOne(q);
if (gp != null) {
@@ -60,7 +60,7 @@ public class GuidingPriceDao extends MongoDaoImpl<GuidingPrice> implements Mongo
q.put("name", name);
q.put("category", category);
if (estateType != null) {
q.put("estate_type", estateType.indexOf("±ðÊû") > -1 ? Seaweed.EstateTypeEnum.VILLA.getEstateType() : Seaweed.EstateTypeEnum.DISTRICT.getEstateType());
q.put("estate_type", estateType.indexOf("别墅") > -1 ? Seaweed.EstateTypeEnum.VILLA.getEstateType() : Seaweed.EstateTypeEnum.DISTRICT.getEstateType());
}
DBObject sq = new BasicDBObject();
@@ -120,7 +120,7 @@ public class RegionBlockDao extends MongoDaoImpl<RegionBlock> implements MongoDa
return BLOCKS_MAP.get(city + "-" + region + "-" + block);
}
//判断是不是区域
//判断是不是区域
public boolean isRegion(String city, String orgRegion) {
// List<RegionBlock> regions = findRegions(city);
List<RegionBlock> regions = findRegionsByCity(city);
@@ -142,7 +142,7 @@ public class RegionBlockDao extends MongoDaoImpl<RegionBlock> implements MongoDa
return false;
}
// 判断是否是板块
// 判断是否是板块
public boolean isBlock(String city, String orgBlock) {
// List<RegionBlock> blocks = findBlocks(city);
List<RegionBlock> blocks = findBlocksByCity(city);
@@ -164,7 +164,7 @@ public class RegionBlockDao extends MongoDaoImpl<RegionBlock> implements MongoDa
return false;
}
//标准化板块
//标准化板块
public String formatRegionFromBlock(String city, String block) {
// List<RegionBlock> blocks = findBlocks(city);
@@ -190,7 +190,7 @@ public class RegionBlockDao extends MongoDaoImpl<RegionBlock> implements MongoDa
return block;
}
//标准化区域
//标准化区域
public String formatRegion(String city, String orgRegion) {
// List<RegionBlock> regions = findRegions(city);
//modify by shibb
@@ -64,7 +64,7 @@ public class RegionStatDao extends MongoDaoImpl<RegionStat> implements MongoDao<
}
/**
* 保存或者更新
* 保存或者更新
*
* @param regionStat
*/
@@ -117,7 +117,7 @@ public class RegionStatDao extends MongoDaoImpl<RegionStat> implements MongoDao<
}
/**
* 找指定日期的均价,如果没有就向前或向后推skipWeekends个星期
* 找指定日期的均价,如果没有就向前或向后推skipWeekends个星期
*
* @param city
* @param region
@@ -34,7 +34,7 @@ public class RentStatDao extends MongoDaoImpl<RentStat> implements MongoDao<Rent
}
/**
* 保存或者更新
* 保存或者更新
*
* @param RentStatDao
*/
@@ -63,7 +63,7 @@ public class ServerAreaDao extends MongoDaoImpl<ServerArea> implements MongoDao<
List<ServerArea> list = this.findAll(null, sq);
List<String> citys = new ArrayList<String>();
for (ServerArea sa : list) {
if(!sa.getDisplay().equals("全国")){
if(!sa.getDisplay().equals("全国")){
citys.add(sa.getDisplay());
}
@@ -89,7 +89,7 @@ public class ServerAreaDao extends MongoDaoImpl<ServerArea> implements MongoDao<
public static void main(String[] args) {
ServerAreaDao sd = ServerAreaDao.getInstance();
ServerArea sa = sd.findServerArea("常熟");
ServerArea sa = sd.findServerArea("常熟");
System.out.println(sa);
}
@@ -62,26 +62,26 @@ public class AverageStatistics implements MongoEntity {
private Double chineseOfficePriceDiff;
private Double chineseOfficeRentDiff;
/**兔博士均价数据*/
/**兔博士均价数据*/
private Integer tuboshiNewPrice;
private Double tuboshiNewDiff;
private Integer tuboshiEsfPrice;
private Double tuboshiEsfDiff;
/**链家均价数据*/
/**链家均价数据*/
private Integer lianjiaEsfPrice;
private Double lianjiaEsfDiff;
private Integer lianjiaNewPrice;
private Double lianjiaNewDiff;
/**房估估均价数据*/
/**房估估均价数据*/
private Integer fangguguNewPrice;
private Double fangguguNewDiff;
private Integer fangguguEsfPrice;
private Double fangguguEsfDiff;
/**云估价均价数据*/
/**云估价均价数据*/
private Integer yungujiaNewPrice;
private Double yungujiaNewDiff;
private Integer yungujiaEsfPrice;
@@ -16,27 +16,27 @@ public class AveragerConfig implements MongoEntity {
private String city;
private String region;
private String name;
private Integer status; // 0-正常 1-禁用
private Integer status; // 0-正常 1-禁用
private Boolean caseRegion;
private Integer sampleFetchCount; // 样本获取数量
private Integer sampleMaxValue; // 样本允许最大值
private Integer sampleMinValue; // 样本允许最小值
private Integer ownTypeLimit; // 自身样本计算的最低要求
private Integer sampleQueueStart; // 样本队列取值区间最小值
private Integer sampleQueueEnd; // 样本队列取值区间最大值
private Integer aroundRadius; // 周边最大半径
private Integer aroundLimit; // 周边小区最大数量限制
private Map<String, Integer> timeWeights; //时间权重设置{key:value}时间:值
private Map<String, Integer> siteWeights; //网站权重设置{key:value}根域:值
private Map<String, Integer> siteFactors; //网站涨跌系数设置{key:value}根域:值
private Integer maxThirdDiff; // 与第三方价格允许的最大范围
private Double hardPercent; //强制价格调整系数
private Integer valueCluType; //类簇的用值类型 0-默认 1-中位数 2-最大值 3-最小值
private Integer aroundDiffMinPercent; //样本与周边对比的最小相差比例
private Integer aroundDiffMaxPercent; //样本与周边对比的最大相差比例
private Integer guidingPriceExpirationDay; //指导价过期天数
private Integer uncomforableSampleDay; //样本换算需要间隔时间
private Integer masterIntervenePercent; //主小区影响从小区可信度衰减比例
private Integer sampleFetchCount; // 样本获取数量
private Integer sampleMaxValue; // 样本允许最大值
private Integer sampleMinValue; // 样本允许最小值
private Integer ownTypeLimit; // 自身样本计算的最低要求
private Integer sampleQueueStart; // 样本队列取值区间最小值
private Integer sampleQueueEnd; // 样本队列取值区间最大值
private Integer aroundRadius; // 周边最大半径
private Integer aroundLimit; // 周边小区最大数量限制
private Map<String, Integer> timeWeights; //时间权重设置{key:value}时间:值
private Map<String, Integer> siteWeights; //网站权重设置{key:value}根域:值
private Map<String, Integer> siteFactors; //网站涨跌系数设置{key:value}根域:值
private Integer maxThirdDiff; // 与第三方价格允许的最大范围
private Double hardPercent; //强制价格调整系数
private Integer valueCluType; //类簇的用值类型 0-默认 1-中位数 2-最大值 3-最小值
private Integer aroundDiffMinPercent; //样本与周边对比的最小相差比例
private Integer aroundDiffMaxPercent; //样本与周边对比的最大相差比例
private Integer guidingPriceExpirationDay; //指导价过期天数
private Integer uncomforableSampleDay; //样本换算需要间隔时间
private Integer masterIntervenePercent; //主小区影响从小区可信度衰减比例
private Date modificationDate;
@@ -22,27 +22,27 @@ public class CalcCommand implements MongoEntity {
private String name;
private String block;
private String category;
private String estateType; // 物业类型(普通住宅、别墅、商住楼)
private Integer calcType; // 计算类型(0-指定日期计算 1-全部重算 2-全部补充重算)
private Date calcDate; // 计算日期
private int status; // 命令状态 0-初始状态 1-处理中 2-处理完成 3-处理异常
private int priority; // 优先级 0-普通(后台人员操作) 1-中(每周算均价的标志) 2-高(预留标志位,特殊情况下使用)
private String estateType; // 物业类型(普通住宅、别墅、商住楼)
private Integer calcType; // 计算类型(0-指定日期计算 1-全部重算 2-全部补充重算)
private Date calcDate; // 计算日期
private int status; // 命令状态 0-初始状态 1-处理中 2-处理完成 3-处理异常
private int priority; // 优先级 0-普通(后台人员操作) 1-中(每周算均价的标志) 2-高(预留标志位,特殊情况下使用)
private Date creationDate;
private String remark;
private Map<String, String> extraMap;
private Integer houseType;
public enum StatusEnum {
INIT(0), // 等待处理
CALCING(1), // 正在计算
CALC_SUC(102), // 计算成功
REING(103), // 正在回溯
TRANSFER(104), //数据迁移
TRANSFERING(105), //迁移完成
SUC(2), // 完成
FAIL(3), // 无法计算
EXCEPTION(4), // 程序异常
ERR(5); // 指令错误
INIT(0), // 等待处理
CALCING(1), // 正在计算
CALC_SUC(102), // 计算成功
REING(103), // 正在回溯
TRANSFER(104), //数据迁移
TRANSFERING(105), //迁移完成
SUC(2), // 完成
FAIL(3), // 无法计算
EXCEPTION(4), // 程序异常
ERR(5); // 指令错误
private final int status;
@@ -56,9 +56,9 @@ public class CalcCommand implements MongoEntity {
}
public enum CalcTypeEnum {
CALC_BY_DATE(0), // 计算本周
CALC_ALL_WEEKS(1), // 全部重算
CALC_GAP_WEEKS(2); // 全部补充重算
CALC_BY_DATE(0), // 计算本周
CALC_ALL_WEEKS(1), // 全部重算
CALC_GAP_WEEKS(2); // 全部补充重算
private final int calcType;
@@ -210,7 +210,7 @@ public class CalcCommand implements MongoEntity {
}
/**
* 板块命令
* 板块命令
* @return
*/
public boolean isCommandOfBlock() {
@@ -221,7 +221,7 @@ public class CalcCommand implements MongoEntity {
}
/**
* 区域命令
* 区域命令
* @return
*/
public boolean isCommandOfRegion() {
@@ -232,7 +232,7 @@ public class CalcCommand implements MongoEntity {
}
/**
* 城市命令
* 城市命令
* @return
*/
public boolean isCommandOfCity() {
@@ -243,7 +243,7 @@ public class CalcCommand implements MongoEntity {
}
/**
* 小区命令
* 小区命令
* @return
*/
public boolean isCommandOfDistrict() {
@@ -20,14 +20,14 @@ public class CalcConfig implements MongoEntity {
private String region;
private String name;
private String category; // disrict
private String estateType; // 物业类型(普通住宅、别墅、商住楼)
private Integer repeatCount; //小区名重复数
private Date statStartDate; // 理论上开始计算价格日期
private Date calcStartDate; // 均价数据中的开始时间
private String estateType; // 物业类型(普通住宅、别墅、商住楼)
private Integer repeatCount; //小区名重复数
private Date statStartDate; // 理论上开始计算价格日期
private Date calcStartDate; // 均价数据中的开始时间
// private boolean trendSynced; // 历史曲线是否被重画过(calc_value和avg_price保持一致)
// private Date sampleStartDate; // 可供计算的样本开始时间
// private Integer logicalMaxValue; // 合理的最大最小值
// private boolean trendSynced; // 历史曲线是否被重画过(calc_value和avg_price保持一致)
// private Date sampleStartDate; // 可供计算的样本开始时间
// private Integer logicalMaxValue; // 合理的最大最小值
// private Integer logicalMinValue;
@Id
@@ -32,12 +32,12 @@ public class DealPrice implements MongoEntity {
private Date creationDate;
public enum SourceEnum {
JIAOYIZHONGXIN("交易中心"), //
SOUFUN("搜房"), //
SINA("新浪"), //
MYTOPHOME("满堂红"), //
HOMELINK("链家在线"), //
ZHONGJIE("中介成交"), //
JIAOYIZHONGXIN("交易中心"), //
SOUFUN("搜房"), //
SINA("新浪"), //
MYTOPHOME("满堂红"), //
HOMELINK("链家在线"), //
ZHONGJIE("中介成交"), //
;
private final String category;
@@ -10,7 +10,7 @@ import javax.persistence.Id;
import com.fangjia.mongo.persistence.MongoEntity;
/**
* 小区租金表
* 小区租金表
*/
@Entity
public class DistrictStatRent implements MongoEntity{
@@ -19,23 +19,23 @@ public class DistrictStatRent implements MongoEntity{
private static final long serialVersionUID = -916751186255993337L;
private String id;
private String city;//城市
private String region;//区域
private String block;//板块
private String districtName;//楼盘名称
private String estateType;//物业类型
private int houseType;//房型
private int markup;//月涨跌幅
private int avgPrice;//租金
private int houseCount;//房源量
private String cluster;//聚类结果
private Date endMonthDate;//计算时间,月末
private Date creationDate;//创建时间
private Date modificationDate;//修改时间
private String sampleEnum;//计算方式
private double credit; //可信度
private String city;//城市
private String region;//区域
private String block;//板块
private String districtName;//楼盘名称
private String estateType;//物业类型
private int houseType;//房型
private int markup;//月涨跌幅
private int avgPrice;//租金
private int houseCount;//房源量
private String cluster;//聚类结果
private Date endMonthDate;//计算时间,月末
private Date creationDate;//创建时间
private Date modificationDate;//修改时间
private String sampleEnum;//计算方式
private double credit; //可信度
private String oldSampleEnum;//老计算方式
private String oldSampleEnum;//老计算方式
private int oldValue;
@@ -18,25 +18,25 @@ public class DynamicLog implements MongoEntity{
*/
private static final long serialVersionUID = -5067684444463333866L;
//int类型字段一律0表示正确,1表示错误
//int类型字段一律0表示正确,1表示错误
private String id;
private String jodId;//抓取任务id
private String jodId;//抓取任务id
private String category;
private String siteName;//网站名称
private String pageName;//网页名称
private String siteName;//网站名称
private String pageName;//网页名称
private String city;
private String url;
private int content;//解析结果为空
private int cat;//物业类型错误
private int cityRegionName;//城市区域小区名错误
private int area;//面积不存在
private int areaContent;//面积字段值错误不在合理区间
private int totalPrice;//总价不存在
private int totalPriceContent;//总价值错误不在合理区间
private int name;//标题不存在
private int publishDate;//发布日期不存在
private int result;//解析结果
private Date createDate;//日志记录日期
private int content;//解析结果为空
private int cat;//物业类型错误
private int cityRegionName;//城市区域小区名错误
private int area;//面积不存在
private int areaContent;//面积字段值错误不在合理区间
private int totalPrice;//总价不存在
private int totalPriceContent;//总价值错误不在合理区间
private int name;//标题不存在
private int publishDate;//发布日期不存在
private int result;//解析结果
private Date createDate;//日志记录日期
private int nameLength;//
private int room;//
@@ -17,23 +17,23 @@ public class NetworkPrice implements MongoEntity {
*/
private static final long serialVersionUID = -7214259622146847276L;
private String id;
private String city;// 城市
private String region;//区域
private String name;//小区名称
private String sid;//小区编号
private String distId;//小区库中自动增涨的id
private Integer avgPrice;//价格
private Double credit;//价格可信度
private String city;// 城市
private String region;//区域
private String name;//小区名称
private String sid;//小区编号
private String distId;//小区库中自动增涨的id
private Integer avgPrice;//价格
private Double credit;//价格可信度
private String yungujiaName;//云估价小区名称
private Integer yungujiaDistrictId;//云估价小区编号
private Integer yungujiaPrice;//云估价小区价格
private String yungujiaName;//云估价小区名称
private Integer yungujiaDistrictId;//云估价小区编号
private Integer yungujiaPrice;//云估价小区价格
private String fangguguName;//房估估小区名称
private Integer fangguguDistrictId;//房估估小区编号
private Integer fangguguPrice;//房估估小区价格
private String fangguguName;//房估估小区名称
private Integer fangguguDistrictId;//房估估小区编号
private Integer fangguguPrice;//房估估小区价格
private Integer peopleMark;//1:人工操作
private Integer peopleMark;//1:人工操作
private Date cDate;
@@ -29,7 +29,7 @@ public class RegionBlock implements MongoEntity {
private Long lng2;
private Long lat2;
private Integer sequence;// 显示顺序,从小到大
private Integer sequence;// 显示顺序,从小到大
private Integer show;
public RegionBlock() {
@@ -28,8 +28,8 @@ public class RegionStat implements MongoEntity {
private int markup;
private int weekendMarkup;
private int sampleSize;
private double credit; // 可信度
private double coverage; // 小区覆盖率
private double credit; // 可信度
private double coverage; // 小区覆盖率
private Date creationDate;
private Date modificationDate;
@@ -10,7 +10,7 @@ import javax.persistence.Id;
import com.fangjia.mongo.persistence.MongoEntity;
/***
* 区域租金表
* 区域租金表
*
*/
@Entity
@@ -21,13 +21,13 @@ public class RegionStatRent implements MongoEntity{
private static final long serialVersionUID = 4584300291549551577L;
private String id;
private String city;//城市
private String region;//区域
private Date endMonthDate;//计算月份,月末
private int avgPrice;//租金价格
private int houseType;//房型
private int count;//房源量
private Date creationDate;//创建时间
private String city;//城市
private String region;//区域
private Date endMonthDate;//计算月份,月末
private int avgPrice;//租金价格
private int houseType;//房型
private int count;//房源量
private Date creationDate;//创建时间
@Id
@GeneratedValue
@Column(name = "_id")
@@ -17,11 +17,11 @@ public class ServerArea implements MongoEntity {
public static enum ServerAreaStatusEnum {
/**
* 备用城市
* 备用城市
*/
NOT_USED(0),
/**
* 线上
* 线上
*/
PRODUCTION(2);
private final int value;
@@ -80,7 +80,7 @@ public class ServerArea implements MongoEntity {
private int cityGrade;
private Integer sequence; // 显示顺序,从小到大
private Integer sequence; // 显示顺序,从小到大
private Integer falshVersion;
@@ -213,7 +213,7 @@ public class ServerArea implements MongoEntity {
}
/**
* 城市级别
* 城市级别
*
* @return
*/
@@ -18,19 +18,19 @@ public class SqmetreRent implements MongoEntity{
private String id;
private String city;//城市
private String region;//区域
private String city;//城市
private String region;//区域
private String districtName;
private Date weekend;//计算时间
private double avgPrice;//租金价格
private double oldValue;//租金价格
private int count;//房源量
private Date creationDate;//创建时间
private int markup;//月涨跌幅
private double credit; //可信度
private String cluster;//聚类结果
private String cat;//类型
private String sampleEnum;//计算方式
private Date weekend;//计算时间
private double avgPrice;//租金价格
private double oldValue;//租金价格
private int count;//房源量
private Date creationDate;//创建时间
private int markup;//月涨跌幅
private double credit; //可信度
private String cluster;//聚类结果
private String cat;//类型
private String sampleEnum;//计算方式
@Id
@GeneratedValue
@@ -120,7 +120,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 得到表名
* 得到表名
*
* @return
*/
@@ -129,7 +129,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 得到字段映射表,key为实体类的字段名(并非实际数据库的字段名)
* 得到字段映射表,key为实体类的字段名(并非实际数据库的字段名)
*
* @return
*/
@@ -138,7 +138,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 得到字段property的映射,property为实体类的字段名(并非实际数据库的字段名)
* 得到字段property的映射,property为实体类的字段名(并非实际数据库的字段名)
*
* @param property
* @return
@@ -153,7 +153,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 得到数据库字段映射表,key为数据库的字段名(并非实体类的字段名)
* 得到数据库字段映射表,key为数据库的字段名(并非实体类的字段名)
*
* @return
*/
@@ -162,7 +162,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 得到数据库字段field的映射,field为数据库的字段名(并非实体类的字段名)
* 得到数据库字段field的映射,field为数据库的字段名(并非实体类的字段名)
*
* @param field
* @return
@@ -176,7 +176,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 得到id字段的字段名
* 得到id字段的字段名
*
* @return
*/
@@ -185,7 +185,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* id字段是否为自动生成
* id字段是否为自动生成
*
* @return
*/
@@ -194,7 +194,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 实体类字段属性信息
* 实体类字段属性信息
*
* @author velna
*
@@ -220,7 +220,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 得到字段的描述信息
* 得到字段的描述信息
*
* @return
*/
@@ -229,7 +229,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 得到Column注解
* 得到Column注解
*
* @return
*/
@@ -238,7 +238,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 是否为id字段
* 是否为id字段
*
* @return
*/
@@ -247,7 +247,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 得到所属的实体类
* 得到所属的实体类
*
* @return
*/
@@ -256,7 +256,7 @@ public abstract class AbstractJpaCompatibleDao<E extends Entity, K extends Seria
}
/**
* 是否为瞬态的
* 是否为瞬态的
*
* @return
*/
@@ -6,7 +6,7 @@ import java.util.List;
import com.mongodb.DBObject;
/**
* 查询接口
* 查询接口
*
* @author xiaoyu
*
@@ -16,7 +16,7 @@ import com.mongodb.DBObject;
public interface EntityDao<E extends Entity, K extends Serializable> {
/**
* 根据id查找对象
* 根据id查找对象
*
* @param id
* @return
@@ -24,14 +24,14 @@ public interface EntityDao<E extends Entity, K extends Serializable> {
E findById(K id);
/**
* 查找所有对象
* 查找所有对象
*
* @return
*/
List<E> findAll();
/**
* 根据id列表查找所有对象,返回的列表根据传入的idList排序
* 根据id列表查找所有对象,返回的列表根据传入的idList排序
*
* @param idList
* @return
@@ -39,35 +39,35 @@ public interface EntityDao<E extends Entity, K extends Serializable> {
List<E> findAllByIds(List<K> idList);
/**
* 向数据库插入一条数据
* 向数据库插入一条数据
*
* @param entity
*/
void save(E entity);
/**
* 向数据库插入一批数据
* 向数据库插入一批数据
*
* @param entities
*/
void saveList(List<E> entities);
/**
* 根据id删除一条数据
* 根据id删除一条数据
*
* @param id
*/
void deleteById(K id);
/**
* 根据id列表删除一批数据
* 根据id列表删除一批数据
*
* @param idList
*/
void deleteByIds(List<K> idList);
/**
* 得到对应的实体类
* 得到对应的实体类
*
* @return
*/