修改代码字符编码
This commit is contained in:
@@ -40,19 +40,19 @@ public class CheckLoginInterceptor implements Interceptor {
|
||||
return ret;
|
||||
}
|
||||
|
||||
// 验证时间戳
|
||||
// 验证时间戳
|
||||
Calendar ca = Calendar.getInstance();
|
||||
ca.setTimeInMillis(Long.parseLong(userInfo[2]));
|
||||
Date cookieDate = ca.getTime();
|
||||
|
||||
// cookie超过2天默认失效
|
||||
// cookie超过2天默认失效
|
||||
ca.setTime(new Date());
|
||||
ca.add(Calendar.DAY_OF_MONTH, -2);
|
||||
if (cookieDate.before(ca.getTime())) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
// 数据库验证用户是否有记录
|
||||
// 数据库验证用户是否有记录
|
||||
LoanUser user = loanUserService.findById(userInfo[0]);
|
||||
if (null == user || !userInfo[1].equals(user.getName())) {
|
||||
return ret;
|
||||
|
||||
@@ -105,7 +105,7 @@ public class FangjiaConfig extends Configuration {
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否启用页面静态缓存,默认为false
|
||||
* 是否启用页面静态缓存,默认为false
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -114,7 +114,7 @@ public class FangjiaConfig extends Configuration {
|
||||
}
|
||||
|
||||
/**
|
||||
* 得到页面静态缓存的存放路径
|
||||
* 得到页面静态缓存的存放路径
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -123,7 +123,7 @@ public class FangjiaConfig extends Configuration {
|
||||
}
|
||||
|
||||
/**
|
||||
* 得到fangjia网spider的user agent,默认为goojiaSpider
|
||||
* 得到fangjia网spider的user agent,默认为goojiaSpider
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -132,7 +132,7 @@ public class FangjiaConfig extends Configuration {
|
||||
}
|
||||
|
||||
/**
|
||||
* 得到网站根域名
|
||||
* 得到网站根域名
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -201,7 +201,7 @@ public class FangjiaConfig extends Configuration {
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否开启google 统计
|
||||
* 是否开启google 统计
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -210,7 +210,7 @@ public class FangjiaConfig extends Configuration {
|
||||
}
|
||||
|
||||
/**
|
||||
* 全站检索列表分页最大页码
|
||||
* 全站检索列表分页最大页码
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -219,7 +219,7 @@ public class FangjiaConfig extends Configuration {
|
||||
}
|
||||
|
||||
/**
|
||||
* 内部链接关键字
|
||||
* 内部链接关键字
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
||||
+7
-7
@@ -79,16 +79,16 @@ public class AssessController {
|
||||
|
||||
private void fillLoanBoList(AssessModel model, LoanAssessStep1 step1Entity, LoanAssessStep2 step2Entity) {
|
||||
if (1 == step1Entity.getLoanType()) {
|
||||
// ¾Óª
|
||||
// 经营
|
||||
fillBussiness(model, step1Entity, step2Entity);
|
||||
} else if (2 == step1Entity.getLoanType()) {
|
||||
// Ïû·Ñ
|
||||
// 消费
|
||||
fillConsumption(model, step1Entity, step2Entity);
|
||||
} else if (3 == step1Entity.getLoanType()) {
|
||||
// ³µ´û
|
||||
// 车贷
|
||||
fillCar(model, step1Entity, step2Entity);
|
||||
} else if (4 == step1Entity.getLoanType()) {
|
||||
// ·¿´û
|
||||
// 房贷
|
||||
fillHouse(model, step1Entity, step2Entity);
|
||||
}
|
||||
}
|
||||
@@ -110,7 +110,7 @@ public class AssessController {
|
||||
form.setLoanMonth(step1Entity.getLoanMonth());
|
||||
form.setCity(model.getCityName());
|
||||
if (0 != step2Entity.getMortgage()) {
|
||||
form.setGuarantyWay("µÖѺ");
|
||||
form.setGuarantyWay("抵押");
|
||||
}
|
||||
form.setSort(model.getSort());
|
||||
form.setStatus(0);
|
||||
@@ -124,7 +124,7 @@ public class AssessController {
|
||||
form.setLoanMonth(step1Entity.getLoanMonth());
|
||||
form.setCity(model.getCityName());
|
||||
if (0 != step2Entity.getMortgage()) {
|
||||
form.setGuarantyWay("µÖѺ");
|
||||
form.setGuarantyWay("抵押");
|
||||
}
|
||||
form.setSort(model.getSort());
|
||||
form.setStatus(0);
|
||||
@@ -138,7 +138,7 @@ public class AssessController {
|
||||
form.setCity(model.getCityName());
|
||||
form.setLoanMonth(step1Entity.getLoanMonth());
|
||||
if (0 != step2Entity.getMortgage()) {
|
||||
form.setGuarantyWay("µÖѺ");
|
||||
form.setGuarantyWay("抵押");
|
||||
}
|
||||
form.setSort(model.getSort());
|
||||
form.setStatus(0);
|
||||
|
||||
+11
-11
@@ -53,46 +53,46 @@ public class BusinessLoanController {
|
||||
JsonModel jsonModel = new JsonModel();
|
||||
Map<String, String> res = new HashMap<String, String>();
|
||||
if (businessLoan == null) {
|
||||
res.put("msg", "页面错误");
|
||||
res.put("msg", "页面错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getLoanAmount() < businessLoan.getCreditRangeLow() || model.getLoanAmount() > businessLoan.getCreditRangeHigh()) {
|
||||
res.put("msg", "最高贷款额度范围在" + businessLoan.getCreditRangeLow() + "万元~" + businessLoan.getCreditRangeHigh() + "万元");
|
||||
res.put("msg", "最高贷款额度范围在" + businessLoan.getCreditRangeLow() + "万元~" + businessLoan.getCreditRangeHigh() + "万元");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getLoanMonth() < businessLoan.getCreditTimeLow() || model.getLoanMonth() > businessLoan.getCreditTimeHigh()) {
|
||||
res.put("msg", "贷款期限范围在" + businessLoan.getCreditTimeLow() + "个月~" + businessLoan.getCreditTimeHigh() + "个月");
|
||||
res.put("msg", "贷款期限范围在" + businessLoan.getCreditTimeLow() + "个月~" + businessLoan.getCreditTimeHigh() + "个月");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getRate() < 0 || model.getRate() > 100 || model.getmRate() < 0 || model.getmRate() > 100) {
|
||||
res.put("msg", "利率错误");
|
||||
res.put("msg", "利率错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getManagerFee() < 0) {
|
||||
res.put("msg", "月管理费错误");
|
||||
res.put("msg", "月管理费错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getOnceFee() < 0) {
|
||||
res.put("msg", "一次收费错误");
|
||||
res.put("msg", "一次收费错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getmRate() > 0) {
|
||||
res.put("msg", "0");
|
||||
double monthPay = model.getLoanAmount() * 10000 * model.getmRate() / 100; // 月息
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100; // 月息+月管理费
|
||||
double totalInterest = monthPay * model.getLoanMonth() / 10000 + model.getLoanAmount() * model.getOnceFee() / 100; // 总费用
|
||||
double monthPay = model.getLoanAmount() * 10000 * model.getmRate() / 100; // 月息
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100; // 月息+月管理费
|
||||
double totalInterest = monthPay * model.getLoanMonth() / 10000 + model.getLoanAmount() * model.getOnceFee() / 100; // 总费用
|
||||
res.put("totalInterest", valueOf(totalInterest));
|
||||
res.put("payMonth", valueOf(monthPay));
|
||||
res.put("dayInterest", valueOf(monthPay / 30));
|
||||
@@ -100,12 +100,12 @@ public class BusinessLoanController {
|
||||
} else {
|
||||
double monthPay = loanService.calculateMonthPay(model.getLoanAmount(), model.getRate(), model.getLoanMonth());
|
||||
double totalInterest = loanService.calculateTotalInterest(model.getLoanAmount(), monthPay, model.getLoanMonth());
|
||||
// 一次性收费
|
||||
// 一次性收费
|
||||
if (model.getOnceFee() > 0) {
|
||||
totalInterest += loanService.calculateOtherCost(model.getLoanAmount(), model.getOnceFee());
|
||||
}
|
||||
|
||||
// 月管理费
|
||||
// 月管理费
|
||||
if (model.getManagerFee() > 0) {
|
||||
totalInterest += model.getLoanAmount() * model.getManagerFee() * 1 / 100 * model.getLoanMonth();
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100;
|
||||
|
||||
+11
-11
@@ -50,46 +50,46 @@ public class CarLoanController {
|
||||
JsonModel jsonModel = new JsonModel();
|
||||
Map<String, String> res = new HashMap<String, String>();
|
||||
if (carLoan == null) {
|
||||
res.put("msg", "页面错误");
|
||||
res.put("msg", "页面错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getLoanAmount() < carLoan.getCreditRangeLow() || model.getLoanAmount() > carLoan.getCreditRangeHigh()) {
|
||||
res.put("msg", "最高贷款额度范围在" + carLoan.getCreditRangeLow() + "万元~" + carLoan.getCreditRangeHigh() + "万元");
|
||||
res.put("msg", "最高贷款额度范围在" + carLoan.getCreditRangeLow() + "万元~" + carLoan.getCreditRangeHigh() + "万元");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getLoanMonth() < carLoan.getCreditTimeLow() || model.getLoanMonth() > carLoan.getCreditTimeHigh()) {
|
||||
res.put("msg", "贷款期限范围在" + carLoan.getCreditTimeLow() + "个月~" + carLoan.getCreditTimeHigh() + "个月");
|
||||
res.put("msg", "贷款期限范围在" + carLoan.getCreditTimeLow() + "个月~" + carLoan.getCreditTimeHigh() + "个月");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getRate() < 0 || model.getRate() > 100 || model.getmRate() < 0 || model.getmRate() > 100) {
|
||||
res.put("msg", "利率错误");
|
||||
res.put("msg", "利率错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getManagerFee() < 0) {
|
||||
res.put("msg", "月管理费错误");
|
||||
res.put("msg", "月管理费错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getOnceFee() < 0) {
|
||||
res.put("msg", "一次收费错误");
|
||||
res.put("msg", "一次收费错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getmRate() > 0) {
|
||||
res.put("msg", "0");
|
||||
double monthPay = model.getLoanAmount() * 10000 * model.getmRate() / 100; // 月息
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100; // 月息+月管理费
|
||||
double totalInterest = monthPay * model.getLoanMonth() / 10000 + model.getLoanAmount() * model.getOnceFee() / 100; // 总费用
|
||||
double monthPay = model.getLoanAmount() * 10000 * model.getmRate() / 100; // 月息
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100; // 月息+月管理费
|
||||
double totalInterest = monthPay * model.getLoanMonth() / 10000 + model.getLoanAmount() * model.getOnceFee() / 100; // 总费用
|
||||
res.put("totalInterest", valueOf(totalInterest));
|
||||
res.put("payMonth", valueOf(monthPay));
|
||||
res.put("dayInterest", valueOf(monthPay / 30));
|
||||
@@ -97,12 +97,12 @@ public class CarLoanController {
|
||||
} else {
|
||||
double monthPay = loanService.calculateMonthPay(model.getLoanAmount(), model.getRate(), model.getLoanMonth());
|
||||
double totalInterest = loanService.calculateTotalInterest(model.getLoanAmount(), monthPay, model.getLoanMonth());
|
||||
// 一次性收费
|
||||
// 一次性收费
|
||||
if (model.getOnceFee() > 0) {
|
||||
totalInterest += loanService.calculateOtherCost(model.getLoanAmount(), model.getOnceFee());
|
||||
}
|
||||
|
||||
// 月管理费
|
||||
// 月管理费
|
||||
if (model.getManagerFee() > 0) {
|
||||
totalInterest += model.getLoanAmount() * model.getManagerFee() * 1 / 100 * model.getLoanMonth();
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100;
|
||||
|
||||
+12
-12
@@ -61,49 +61,49 @@ public class ConsumptionLoanController {
|
||||
JsonModel jsonModel = new JsonModel();
|
||||
Map<String, String> res = new HashMap<String, String>();
|
||||
if (consumptionLoan == null) {
|
||||
res.put("msg", "页面错误");
|
||||
res.put("msg", "页面错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getLoanAmount() < consumptionLoan.getCreditRangeLow()
|
||||
|| model.getLoanAmount() > consumptionLoan.getCreditRangeHigh()) {
|
||||
res.put("msg", "最高贷款额度范围在" + consumptionLoan.getCreditRangeLow() + "万元~" + consumptionLoan.getCreditRangeHigh()
|
||||
+ "万元");
|
||||
res.put("msg", "最高贷款额度范围在" + consumptionLoan.getCreditRangeLow() + "万元~" + consumptionLoan.getCreditRangeHigh()
|
||||
+ "万元");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getLoanMonth() < consumptionLoan.getCreditTimeLow()
|
||||
|| model.getLoanMonth() > consumptionLoan.getCreditTimeHigh()) {
|
||||
res.put("msg", "贷款期限范围在" + consumptionLoan.getCreditTimeLow() + "个月~" + consumptionLoan.getCreditTimeHigh() + "个月");
|
||||
res.put("msg", "贷款期限范围在" + consumptionLoan.getCreditTimeLow() + "个月~" + consumptionLoan.getCreditTimeHigh() + "个月");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getRate() < 0 || model.getRate() > 100 || model.getmRate() < 0 || model.getmRate() > 100) {
|
||||
res.put("msg", "利率错误");
|
||||
res.put("msg", "利率错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getManagerFee() < 0) {
|
||||
res.put("msg", "月管理费错误");
|
||||
res.put("msg", "月管理费错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getOnceFee() < 0) {
|
||||
res.put("msg", "一次收费错误");
|
||||
res.put("msg", "一次收费错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getmRate() > 0) {
|
||||
res.put("msg", "0");
|
||||
double monthPay = model.getLoanAmount() * 10000 * model.getmRate() / 100; // 月息
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100; // 月息+月管理费
|
||||
double totalInterest = monthPay * model.getLoanMonth() / 10000 + model.getLoanAmount() * model.getOnceFee() / 100; // 总费用
|
||||
double monthPay = model.getLoanAmount() * 10000 * model.getmRate() / 100; // 月息
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100; // 月息+月管理费
|
||||
double totalInterest = monthPay * model.getLoanMonth() / 10000 + model.getLoanAmount() * model.getOnceFee() / 100; // 总费用
|
||||
res.put("totalInterest", valueOf(totalInterest));
|
||||
res.put("payMonth", valueOf(monthPay));
|
||||
res.put("dayInterest", valueOf(monthPay / 30));
|
||||
@@ -111,12 +111,12 @@ public class ConsumptionLoanController {
|
||||
} else {
|
||||
double monthPay = loanService.calculateMonthPay(model.getLoanAmount(), model.getRate(), model.getLoanMonth());
|
||||
double totalInterest = loanService.calculateTotalInterest(model.getLoanAmount(), monthPay, model.getLoanMonth());
|
||||
// 一次性收费
|
||||
// 一次性收费
|
||||
if (model.getOnceFee() > 0) {
|
||||
totalInterest += loanService.calculateOtherCost(model.getLoanAmount(), model.getOnceFee());
|
||||
}
|
||||
|
||||
// 月管理费
|
||||
// 月管理费
|
||||
if (model.getManagerFee() > 0) {
|
||||
totalInterest += model.getLoanAmount() * model.getManagerFee() * 1 / 100 * model.getLoanMonth();
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100;
|
||||
|
||||
+11
-11
@@ -50,46 +50,46 @@ public class HouseLoanController {
|
||||
JsonModel jsonModel = new JsonModel();
|
||||
Map<String, String> res = new HashMap<String, String>();
|
||||
if (houseLoan == null) {
|
||||
res.put("msg", "页面错误");
|
||||
res.put("msg", "页面错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getLoanAmount() < houseLoan.getCreditRangeLow() || model.getLoanAmount() > houseLoan.getCreditRangeHigh()) {
|
||||
res.put("msg", "最高贷款额度范围在" + houseLoan.getCreditRangeLow() + "万元~" + houseLoan.getCreditRangeHigh() + "万元");
|
||||
res.put("msg", "最高贷款额度范围在" + houseLoan.getCreditRangeLow() + "万元~" + houseLoan.getCreditRangeHigh() + "万元");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getLoanMonth() < houseLoan.getCreditTimeLow() || model.getLoanMonth() > houseLoan.getCreditTimeHigh()) {
|
||||
res.put("msg", "贷款期限范围在" + houseLoan.getCreditTimeLow() + "个月~" + houseLoan.getCreditTimeHigh() + "个月");
|
||||
res.put("msg", "贷款期限范围在" + houseLoan.getCreditTimeLow() + "个月~" + houseLoan.getCreditTimeHigh() + "个月");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getRate() < 0 || model.getRate() > 100 || model.getmRate() < 0 || model.getmRate() > 100) {
|
||||
res.put("msg", "利率错误");
|
||||
res.put("msg", "利率错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getManagerFee() < 0) {
|
||||
res.put("msg", "月管理费错误");
|
||||
res.put("msg", "月管理费错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getOnceFee() < 0) {
|
||||
res.put("msg", "一次收费错误");
|
||||
res.put("msg", "一次收费错误");
|
||||
jsonModel.setJsonModel(res);
|
||||
return jsonModel;
|
||||
}
|
||||
|
||||
if (model.getmRate() > 0) {
|
||||
res.put("msg", "0");
|
||||
double monthPay = model.getLoanAmount() * 10000 * model.getmRate() / 100; // 月息
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100; // 月息+月管理费
|
||||
double totalInterest = monthPay * model.getLoanMonth() / 10000 + model.getLoanAmount() * model.getOnceFee() / 100; // 总费用
|
||||
double monthPay = model.getLoanAmount() * 10000 * model.getmRate() / 100; // 月息
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100; // 月息+月管理费
|
||||
double totalInterest = monthPay * model.getLoanMonth() / 10000 + model.getLoanAmount() * model.getOnceFee() / 100; // 总费用
|
||||
res.put("totalInterest", valueOf(totalInterest));
|
||||
res.put("payMonth", valueOf(monthPay));
|
||||
res.put("dayInterest", valueOf(monthPay / 30));
|
||||
@@ -97,12 +97,12 @@ public class HouseLoanController {
|
||||
} else {
|
||||
double monthPay = loanService.calculateMonthPay(model.getLoanAmount(), model.getRate(), model.getLoanMonth());
|
||||
double totalInterest = loanService.calculateTotalInterest(model.getLoanAmount(), monthPay, model.getLoanMonth());
|
||||
// 一次性收费
|
||||
// 一次性收费
|
||||
if (model.getOnceFee() > 0) {
|
||||
totalInterest += loanService.calculateOtherCost(model.getLoanAmount(), model.getOnceFee());
|
||||
}
|
||||
|
||||
// 月管理费
|
||||
// 月管理费
|
||||
if (model.getManagerFee() > 0) {
|
||||
totalInterest += model.getLoanAmount() * model.getManagerFee() * 1 / 100 * model.getLoanMonth();
|
||||
monthPay += model.getLoanAmount() * 10000 * model.getManagerFee() * 1 / 100;
|
||||
|
||||
+54
-54
@@ -42,7 +42,7 @@ import com.fangjia.service.sms.SmsService;
|
||||
import com.fangjia.service.util.PdsConstants;
|
||||
|
||||
/**
|
||||
* 贷款线索控制器
|
||||
* 贷款线索控制器
|
||||
* @author yinjihuan
|
||||
*
|
||||
*/
|
||||
@@ -82,7 +82,7 @@ public class LoanLeadsController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 贷款页
|
||||
* 贷款页
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@@ -91,7 +91,7 @@ public class LoanLeadsController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 贷款页
|
||||
* 贷款页
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@@ -100,7 +100,7 @@ public class LoanLeadsController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 贷款页
|
||||
* 贷款页
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@@ -109,7 +109,7 @@ public class LoanLeadsController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交贷款页
|
||||
* 提交贷款页
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@@ -129,7 +129,7 @@ public class LoanLeadsController {
|
||||
for(Cookie cookie : cookies){
|
||||
if(cookie.getName().equals("backPage")){
|
||||
cookie.setValue(null);
|
||||
cookie.setMaxAge(0);// 立即销毁cookie
|
||||
cookie.setMaxAge(0);// 立即销毁cookie
|
||||
cookie.setPath("/");
|
||||
res.addCookie(cookie);
|
||||
break;
|
||||
@@ -142,7 +142,7 @@ public class LoanLeadsController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 信用贷贷款页
|
||||
* 信用贷贷款页
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@@ -151,7 +151,7 @@ public class LoanLeadsController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 房抵贷贷款页
|
||||
* 房抵贷贷款页
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@@ -160,7 +160,7 @@ public class LoanLeadsController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 贷款协议页
|
||||
* 贷款协议页
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@@ -168,7 +168,7 @@ public class LoanLeadsController {
|
||||
return model;
|
||||
}
|
||||
/**
|
||||
* 贷款协议页
|
||||
* 贷款协议页
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@@ -176,7 +176,7 @@ public class LoanLeadsController {
|
||||
return model;
|
||||
}
|
||||
/**
|
||||
* 添加贷款线索
|
||||
* 添加贷款线索
|
||||
* @return
|
||||
*/
|
||||
public Object addLeadsAction(LoanLeadsModel model, HttpServletRequest req) {
|
||||
@@ -186,11 +186,11 @@ public class LoanLeadsController {
|
||||
result.setMsg(Message.PARAM_NOT_NULL);
|
||||
return result;
|
||||
}
|
||||
// 自动化测试使用,只允许公司内部的IP才可以
|
||||
// 自动化测试使用,只允许公司内部的IP才可以
|
||||
String ip = AnalyticsUtil.getIpAddress(req);
|
||||
if (("8888".equals(model.getSmsCode()) && "116.247.70.58".equals(ip))
|
||||
|| ("8888".equals(model.getSmsCode()) && ip.startsWith("192.168"))) {
|
||||
LOGGER.info("自动化测试,不做验证码认证:"+ip);
|
||||
LOGGER.info("自动化测试,不做验证码认证:"+ip);
|
||||
} else {
|
||||
String smsCacheCode = getCacheCode(model.getMobile(), Message.SMS_CODE_TYPE_LOAN);
|
||||
if (smsCacheCode == null) {
|
||||
@@ -212,7 +212,7 @@ public class LoanLeadsController {
|
||||
String loanType = "";
|
||||
for(String loan:loanTypeArry){
|
||||
if(StringUtils.isNotBlank(loan)){
|
||||
loanType += "、"+ loan;
|
||||
loanType += "、"+ loan;
|
||||
}
|
||||
}
|
||||
if(StringUtils.isNotBlank(loanType)){
|
||||
@@ -226,7 +226,7 @@ public class LoanLeadsController {
|
||||
String assetType = "";
|
||||
for(String asset:assetTypeArry){
|
||||
if(StringUtils.isNotBlank(asset)){
|
||||
assetType += "、" + asset;
|
||||
assetType += "、" + asset;
|
||||
}
|
||||
}
|
||||
if(StringUtils.isNotBlank(assetType)){
|
||||
@@ -251,7 +251,7 @@ public class LoanLeadsController {
|
||||
leads.setSource(model.getSource());
|
||||
leads.setLeads_source(model.getLeads_source());
|
||||
if(StringUtils.isNotBlank(model.getComefrom()) && ("1".equals(model.getComefrom())||"2".equals(model.getComefrom()))){
|
||||
if(model.getLeads_source()!=null && model.getLeads_source().indexOf("搜索")!=-1){
|
||||
if(model.getLeads_source()!=null && model.getLeads_source().indexOf("搜索")!=-1){
|
||||
leads.setChannelType("Organic");
|
||||
}else{
|
||||
leads.setChannelType("Referral");
|
||||
@@ -260,17 +260,17 @@ public class LoanLeadsController {
|
||||
leads.setChannelType(model.getLeads_type());
|
||||
}
|
||||
leads.setCampaign(model.getCampaign());
|
||||
// 网站来源
|
||||
// 网站来源
|
||||
String source = COOKIE_CONTEXT.getCookieValue(req, CookieName.SITE_SOURCE);
|
||||
//String channelType = SourceUtils.getSampleBaiduSiteType(source);
|
||||
leads.setClueSource(source);
|
||||
//发送邮件
|
||||
//发送邮件
|
||||
leads.setLoanProductName(model.getLoanType());
|
||||
loanLeadsService.save(leads);
|
||||
SimpleDateFormat sf = new SimpleDateFormat("yyyy/MM/dd HH:mm");
|
||||
String smsContent = "";
|
||||
if(StringUtils.isNotBlank(model.getLoanName()) || StringUtils.isNotBlank(model.getSex())){
|
||||
smsContent += "客户名:";
|
||||
smsContent += "客户名:";
|
||||
if(StringUtils.isNotBlank(model.getLoanName())){
|
||||
smsContent += model.getLoanName();
|
||||
}
|
||||
@@ -280,24 +280,24 @@ public class LoanLeadsController {
|
||||
smsContent += " <br>";
|
||||
}
|
||||
if(StringUtils.isNotBlank(model.getMobile())){
|
||||
smsContent += "手机号:" + model.getMobile();
|
||||
smsContent += "手机号:" + model.getMobile();
|
||||
}
|
||||
if(model.getAmount()!=0){
|
||||
smsContent += " <br>贷款金额:" + model.getAmount()*10000;
|
||||
smsContent += " <br>贷款金额:" + model.getAmount()*10000;
|
||||
}
|
||||
smsContent += " <br>申请日期:" + sf.format(new Date());
|
||||
smsContent += " <br>申请日期:" + sf.format(new Date());
|
||||
if(StringUtils.isNotBlank(leads.getLoanType())){
|
||||
smsContent += " <br>贷款类型:"+leads.getLoanType();
|
||||
smsContent += " <br>贷款类型:"+leads.getLoanType();
|
||||
}
|
||||
//sendEmail("sunwei@fangjia.com", model, model.getLoanType(),smsContent);
|
||||
//发送钉钉消息
|
||||
//发送钉钉消息
|
||||
JSONObject jsonBody = new JSONObject();
|
||||
jsonBody.put("msgtype", "markdown");
|
||||
JSONObject markdown = new JSONObject();
|
||||
if(StringUtils.isBlank(model.getLoanType())){
|
||||
markdown.put("title", model.getLoanName()+"客户申请了贷款");
|
||||
markdown.put("title", model.getLoanName()+"客户申请了贷款");
|
||||
}else{
|
||||
markdown.put("title", model.getLoanName()+"客户申请了"+model.getLoanType()+"类型的贷款");
|
||||
markdown.put("title", model.getLoanName()+"客户申请了"+model.getLoanType()+"类型的贷款");
|
||||
}
|
||||
markdown.put("text", smsContent);
|
||||
jsonBody.put("markdown", markdown);
|
||||
@@ -333,7 +333,7 @@ public class LoanLeadsController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加贷款线索(无短信验证码)
|
||||
* 添加贷款线索(无短信验证码)
|
||||
* @return
|
||||
*/
|
||||
public Object addLeadsNoSmsAction(LoanLeadsModel model, HttpServletRequest req) {
|
||||
@@ -350,7 +350,7 @@ public class LoanLeadsController {
|
||||
String loanType = "";
|
||||
for(String loan:loanTypeArry){
|
||||
if(StringUtils.isNotBlank(loan)){
|
||||
loanType += "、"+ loan;
|
||||
loanType += "、"+ loan;
|
||||
}
|
||||
}
|
||||
if(StringUtils.isNotBlank(loanType)){
|
||||
@@ -364,7 +364,7 @@ public class LoanLeadsController {
|
||||
String assetType = "";
|
||||
for(String asset:assetTypeArry){
|
||||
if(StringUtils.isNotBlank(asset)){
|
||||
assetType += "、" + asset;
|
||||
assetType += "、" + asset;
|
||||
}
|
||||
}
|
||||
if(StringUtils.isNotBlank(assetType)){
|
||||
@@ -389,7 +389,7 @@ public class LoanLeadsController {
|
||||
leads.setSource(model.getSource());
|
||||
leads.setLeads_source(model.getLeads_source());
|
||||
if(StringUtils.isNotBlank(model.getComefrom()) && ("1".equals(model.getComefrom())||"2".equals(model.getComefrom()))){
|
||||
if(model.getLeads_source()!=null && model.getLeads_source().indexOf("搜索")!=-1){
|
||||
if(model.getLeads_source()!=null && model.getLeads_source().indexOf("搜索")!=-1){
|
||||
leads.setChannelType("Organic");
|
||||
}else{
|
||||
leads.setChannelType("Referral");
|
||||
@@ -398,17 +398,17 @@ public class LoanLeadsController {
|
||||
leads.setChannelType(model.getLeads_type());
|
||||
}
|
||||
leads.setCampaign(model.getCampaign());
|
||||
// 网站来源
|
||||
// 网站来源
|
||||
String source = COOKIE_CONTEXT.getCookieValue(req, CookieName.SITE_SOURCE);
|
||||
//String channelType = SourceUtils.getSampleBaiduSiteType(source);
|
||||
leads.setClueSource(source);
|
||||
//发送邮件
|
||||
//发送邮件
|
||||
leads.setLoanProductName(model.getLoanType());
|
||||
loanLeadsService.save(leads);
|
||||
SimpleDateFormat sf = new SimpleDateFormat("yyyy/MM/dd HH:mm");
|
||||
String smsContent = "";
|
||||
if(StringUtils.isNotBlank(model.getLoanName()) || StringUtils.isNotBlank(model.getSex())){
|
||||
smsContent += "客户名:";
|
||||
smsContent += "客户名:";
|
||||
if(StringUtils.isNotBlank(model.getLoanName())){
|
||||
smsContent += model.getLoanName();
|
||||
}
|
||||
@@ -418,24 +418,24 @@ public class LoanLeadsController {
|
||||
smsContent += " <br>";
|
||||
}
|
||||
if(StringUtils.isNotBlank(model.getMobile())){
|
||||
smsContent += "手机号:" + model.getMobile();
|
||||
smsContent += "手机号:" + model.getMobile();
|
||||
}
|
||||
if(model.getAmount()!=0){
|
||||
smsContent += " <br>贷款金额:" + model.getAmount()*10000;
|
||||
smsContent += " <br>贷款金额:" + model.getAmount()*10000;
|
||||
}
|
||||
smsContent += " <br>申请日期:" + sf.format(new Date());
|
||||
smsContent += " <br>申请日期:" + sf.format(new Date());
|
||||
if(StringUtils.isNotBlank(leads.getLoanType())){
|
||||
smsContent += " <br>贷款类型:"+leads.getLoanType();
|
||||
smsContent += " <br>贷款类型:"+leads.getLoanType();
|
||||
}
|
||||
//sendEmail("sunwei@fangjia.com", model, model.getLoanType(),smsContent);
|
||||
//发送钉钉消息
|
||||
//发送钉钉消息
|
||||
JSONObject jsonBody = new JSONObject();
|
||||
jsonBody.put("msgtype", "markdown");
|
||||
JSONObject markdown = new JSONObject();
|
||||
if(StringUtils.isBlank(model.getLoanType())){
|
||||
markdown.put("title", model.getLoanName()+"客户申请了贷款");
|
||||
markdown.put("title", model.getLoanName()+"客户申请了贷款");
|
||||
}else{
|
||||
markdown.put("title", model.getLoanName()+"客户申请了"+model.getLoanType()+"类型的贷款");
|
||||
markdown.put("title", model.getLoanName()+"客户申请了"+model.getLoanType()+"类型的贷款");
|
||||
}
|
||||
markdown.put("text", smsContent);
|
||||
jsonBody.put("markdown", markdown);
|
||||
@@ -470,7 +470,7 @@ public class LoanLeadsController {
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* 发送验证码到指定的手机上
|
||||
* 发送验证码到指定的手机上
|
||||
* @author yinjihuan
|
||||
* @param model
|
||||
* @return
|
||||
@@ -496,7 +496,7 @@ public class LoanLeadsController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送验证码(贷款)
|
||||
* 发送验证码(贷款)
|
||||
* @author yinjihuan
|
||||
* @param model
|
||||
* @param resultModel
|
||||
@@ -508,7 +508,7 @@ public class LoanLeadsController {
|
||||
SmsSendLog smsSendLog = smsService.findLastSmsSendLog(mobile);
|
||||
if(smsSendLog != null && System.currentTimeMillis() - smsSendLog.getCreateDate().getTime() < 1000 * 60){
|
||||
resultModel.setResult(Message.RESULT_FAIL);
|
||||
resultModel.setMsg("该手机号短信发送频繁");
|
||||
resultModel.setMsg("该手机号短信发送频繁");
|
||||
return resultModel;
|
||||
}
|
||||
|
||||
@@ -517,28 +517,28 @@ public class LoanLeadsController {
|
||||
long count = smsService.countSmsSendLog(ip, calendar.getTime());
|
||||
if(count > 100){
|
||||
resultModel.setResult(Message.RESULT_FAIL);
|
||||
resultModel.setMsg("该IP短信发送频繁");
|
||||
resultModel.setMsg("该IP短信发送频繁");
|
||||
return resultModel;
|
||||
}
|
||||
|
||||
String code = fangJiaUserService.randomCode();
|
||||
try {
|
||||
smsService.send(mobile, "【融时代】你的验证码是" + code + ",验证码5分钟内有效,请立即验证。");
|
||||
smsService.send(mobile, "【融时代】你的验证码是" + code + ",验证码5分钟内有效,请立即验证。");
|
||||
/*if(FangjiaConfig.getConfig().isTestEnvironment()){
|
||||
}*/
|
||||
smsSendLog = new SmsSendLog();
|
||||
smsSendLog.setContent("【融时代】你的验证码是" + code + ",验证码5分钟内有效,请立即验证。");
|
||||
smsSendLog.setContent("【融时代】你的验证码是" + code + ",验证码5分钟内有效,请立即验证。");
|
||||
smsSendLog.setMobile(mobile);
|
||||
smsSendLog.setCreateDate(new Date());
|
||||
smsSendLog.setIp(ip);
|
||||
smsSendLog.setPurpose("融时代");
|
||||
smsSendLog.setPurpose("融时代");
|
||||
smsService.saveSmsSendLog(smsSendLog);
|
||||
|
||||
resultModel.setResult(Message.RESULT_SUCCESS);
|
||||
CacheUtils.putValue(CachePolicyEnum.TINY, FangJiaUserService.class, mobile + "_" + type, code);
|
||||
CacheUtils.putValue(CachePolicyEnum.TINY, FangJiaUserService.class, mobile, new Date().getTime());
|
||||
} catch (SmsException e) {
|
||||
LOGGER.info("异常:"+e);
|
||||
LOGGER.info("异常:"+e);
|
||||
resultModel.setResult(Message.RESULT_FAIL);
|
||||
resultModel.setMsg(Message.SMS_CODE_SEND_FAIL);
|
||||
}
|
||||
@@ -582,14 +582,14 @@ public class LoanLeadsController {
|
||||
|
||||
public void sendEmail(String eamilAddress,LoanLeadsModel model, String loanName, String smsContent){
|
||||
try {
|
||||
// 发邮件给用户
|
||||
// 发邮件给用户
|
||||
Mail mail = new Mail();
|
||||
mail.setReceiver(new MailUser(eamilAddress));
|
||||
String subject = "";
|
||||
if(StringUtils.isNotBlank(loanName)){
|
||||
subject = model.getMobile()+"客户申请了"+loanName+"类型的贷款";
|
||||
subject = model.getMobile()+"客户申请了"+loanName+"类型的贷款";
|
||||
}else{
|
||||
subject = model.getMobile()+"客户申请了贷款";
|
||||
subject = model.getMobile()+"客户申请了贷款";
|
||||
}
|
||||
|
||||
mail.setSubject(subject);
|
||||
@@ -604,10 +604,10 @@ public class LoanLeadsController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取缓存的验证码
|
||||
* 获取缓存的验证码
|
||||
* @author yinjihuan
|
||||
* @param mobile 手机
|
||||
* @param type 类型
|
||||
* @param mobile 手机
|
||||
* @param type 类型
|
||||
* @return
|
||||
*/
|
||||
private String getCacheCode(String mobile, String type) {
|
||||
|
||||
+21
-21
@@ -42,15 +42,15 @@ public class LoanerInfoController {
|
||||
Map<String, String> res = new HashMap<String, String>();
|
||||
|
||||
if (StringUtils.isBlank(model.getUserName())) {
|
||||
res.put("msg", "用户名不能为空");
|
||||
res.put("msg", "用户名不能为空");
|
||||
} else if (StringUtils.isBlank(model.getMobile()) || !DataUtil.isCellPhoneNumber(model.getMobile())) {
|
||||
res.put("msg", "手机号码错误");
|
||||
res.put("msg", "手机号码错误");
|
||||
} else if (StringUtils.isBlank(model.getCurrentCity())) {
|
||||
res.put("msg", "输入错误,请重新选择贷款产品再试!");
|
||||
res.put("msg", "输入错误,请重新选择贷款产品再试!");
|
||||
} else if (!ObjectId.isValid(model.getProductId()) || !ObjectId.isValid(model.getOfficerId())) {
|
||||
res.put("msg", "输入错误,请重新选择贷款产品再试!");
|
||||
res.put("msg", "输入错误,请重新选择贷款产品再试!");
|
||||
} else if (model.getLoanAmount() <= 0 || model.getLoanMonth() <= 0) {
|
||||
res.put("msg", "输入错误,请重新选择贷款产品再试!");
|
||||
res.put("msg", "输入错误,请重新选择贷款产品再试!");
|
||||
}
|
||||
|
||||
if (res.size() > 0) {
|
||||
@@ -80,7 +80,7 @@ public class LoanerInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理给用户和信贷员发送短信通知
|
||||
* 处理给用户和信贷员发送短信通知
|
||||
*
|
||||
* @param model
|
||||
*/
|
||||
@@ -122,13 +122,13 @@ public class LoanerInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 给管理员发送通知短信
|
||||
* 给管理员发送通知短信
|
||||
*/
|
||||
private void sendAdminMsg(LoanBo productInfo, BaseLoan loanInfo, LoanOfficer officerInfo, LoanerInfoModel model) {
|
||||
StringBuffer msg = new StringBuffer();
|
||||
msg.append(model.getUserName()).append("(手机").append(model.getMobile()).append(")申请了:")
|
||||
.append(productInfo.getAgencyName()).append("的").append(loanInfo.getProductName()).append(",信贷员为")
|
||||
.append(officerInfo.getName()).append("。此条无需转发!");
|
||||
msg.append(model.getUserName()).append("(手机").append(model.getMobile()).append(")申请了:")
|
||||
.append(productInfo.getAgencyName()).append("的").append(loanInfo.getProductName()).append(",信贷员为")
|
||||
.append(officerInfo.getName()).append("。此条无需转发!");
|
||||
|
||||
try {
|
||||
smsService.sendForRongshidai("15026780660", msg.toString());
|
||||
@@ -138,7 +138,7 @@ public class LoanerInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 给用户发送短信
|
||||
* 给用户发送短信
|
||||
*/
|
||||
private void sendUserMsg(LoanBo productInfo, BaseLoan loanInfo, LoanOfficer officerInfo, LoanerInfoModel model) {
|
||||
String callNumber = getOfficerCallNumber(officerInfo);
|
||||
@@ -161,18 +161,18 @@ public class LoanerInfoController {
|
||||
StringBuffer msg = new StringBuffer();
|
||||
msg.append(productInfo.getAgencyName()).append(" ");
|
||||
msg.append(loanInfo.getProductName()).append(" ");
|
||||
msg.append("信贷员 ").append(officerInfo.getName()).append("的联系方式为");
|
||||
msg.append("信贷员 ").append(officerInfo.getName()).append("的联系方式为");
|
||||
if ("".equals(bigCode) || "".equals(extCode)) {
|
||||
msg.append(phone400);
|
||||
} else {
|
||||
msg.append(bigCode).append(" 转 ").append(extCode);
|
||||
msg.append(bigCode).append(" 转 ").append(extCode);
|
||||
}
|
||||
msg.append(" 贷款产品尽在www.rongshidai.com");
|
||||
msg.append(" 贷款产品尽在www.rongshidai.com");
|
||||
|
||||
try {
|
||||
smsService.sendForRongshidai(model.getMobile(), msg.toString());
|
||||
|
||||
// msg.append("\r\nTo 用户号码:").append(model.getMobile());
|
||||
// msg.append("\r\nTo 用户号码:").append(model.getMobile());
|
||||
// smsService.sendForRongshidai("15026780660", msg.toString());
|
||||
} catch (SmsException e) {
|
||||
LOGGER.error("Send SMS Error:", e);
|
||||
@@ -180,7 +180,7 @@ public class LoanerInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 给信贷员发送短信
|
||||
* 给信贷员发送短信
|
||||
*/
|
||||
private void sendOfficerMsg(BaseLoan loanInfo, LoanOfficer officerInfo, LoanerInfoModel model) {
|
||||
String mobile = getOfficerMobile(officerInfo);
|
||||
@@ -189,13 +189,13 @@ public class LoanerInfoController {
|
||||
}
|
||||
|
||||
StringBuffer msg = new StringBuffer();
|
||||
msg.append(model.getUserName()).append("(手机").append(model.getMobile()).append(")选择了您发布的“")
|
||||
.append(loanInfo.getProductName()).append("”,请速回电接洽,并提供优质服务,谢谢配合! 客户查询请登陆www.rongshidai.com");
|
||||
msg.append(model.getUserName()).append("(手机").append(model.getMobile()).append(")选择了您发布的“")
|
||||
.append(loanInfo.getProductName()).append("”,请速回电接洽,并提供优质服务,谢谢配合! 客户查询请登陆www.rongshidai.com");
|
||||
|
||||
try {
|
||||
smsService.sendForRongshidai(mobile, msg.toString());
|
||||
|
||||
// msg.append("\r\nTo 信贷员号码:").append(mobile);
|
||||
// msg.append("\r\nTo 信贷员号码:").append(mobile);
|
||||
// smsService.sendForRongshidai("15026780660", msg.toString());
|
||||
} catch (SmsException e) {
|
||||
LOGGER.error("Send SMS Error:", e);
|
||||
@@ -203,7 +203,7 @@ public class LoanerInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据信贷员资料取得400轮播电话(手机+固话)
|
||||
* 根据信贷员资料取得400轮播电话(手机+固话)
|
||||
*
|
||||
* @param info
|
||||
* @return
|
||||
@@ -227,7 +227,7 @@ public class LoanerInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据信贷员资料取得对应手机号
|
||||
* 根据信贷员资料取得对应手机号
|
||||
*
|
||||
* @param info
|
||||
* @return
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ public class AgController {
|
||||
return model;
|
||||
}
|
||||
|
||||
// Êý¾Ý¿âÑéÖ¤Óû§ÃûÃÜÂë
|
||||
// 数据库验证用户名密码
|
||||
LoanUser user = loanUserService.checkin(model.getUserName(), DigestUtils.md5Hex(model.getPassword()));
|
||||
if (null != user) {
|
||||
CookieContext cookieContext = CoresiteCookieContext.getInstance();
|
||||
|
||||
@@ -74,7 +74,7 @@ public class AccessLogFilter implements Filter {
|
||||
LOGGER.error("error process request: request_url=" + analyticsBean.requestUrl + ", referer="
|
||||
+ analyticsBean.refererUrl, rootCause);
|
||||
}
|
||||
// 记录运行超过1秒的请求到日志中
|
||||
// 记录运行超过1秒的请求到日志中
|
||||
final long time = System.currentTimeMillis() - start;
|
||||
final String actionUri = (String) request.getAttribute(ActionContext.ACTION_URI);
|
||||
if (time > 1000 || (!FangjiaConfig.getConfig().isProductionEnvironment() && executeCounter.getTotalCount() > 0)) {
|
||||
@@ -95,7 +95,7 @@ public class AccessLogFilter implements Filter {
|
||||
|
||||
private void writeAccessLog(AnalyticsBean analyticsBean, long duration, String actionUri, int statusCode, String method) {
|
||||
StringBuilder logStr = new StringBuilder();
|
||||
// 不要改变顺序
|
||||
// 不要改变顺序
|
||||
logStr.append(DATE_FORMAT.format(analyticsBean.startTime));// 1
|
||||
logStr.append(SPLIT).append(StringUtils.defaultString(analyticsBean.connectionIp));// 2
|
||||
logStr.append(SPLIT).append(StringUtils.defaultString(analyticsBean.ip));// 3
|
||||
|
||||
@@ -105,7 +105,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得连接客户端的IP(部署环境下一般都设有nginx等http服务器)
|
||||
* 获得连接客户端的IP(部署环境下一般都设有nginx等http服务器)
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
@@ -123,7 +123,7 @@ public class AnalyticsBean {
|
||||
String citySpell = getCitySpell(request.getRequestURL().toString());
|
||||
ServerArea city = ServerAreaData.getServerAreaByNameOrSpellDefaultNull(citySpell);
|
||||
if (null != city) {
|
||||
// 保存至cookie
|
||||
// 保存至cookie
|
||||
Cookie cityCookie = cookieContext.createCookie(CookieName.COOKIE_CITY, citySpell);
|
||||
cityCookie.setMaxAge(Integer.MAX_VALUE);
|
||||
response.addCookie(cityCookie);
|
||||
@@ -137,7 +137,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
private String createUID(HttpServletRequest request, HttpServletResponse response) {
|
||||
// 设置UUID
|
||||
// 设置UUID
|
||||
String uuid = new ObjectId().toString();
|
||||
Cookie uuidCookie = cookieContext.createCookie(CookieName.UID, uuid);
|
||||
uuidCookie.setMaxAge(Integer.MAX_VALUE);
|
||||
@@ -152,7 +152,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
private String createSID(HttpServletRequest request, HttpServletResponse response) {
|
||||
// 设置session id
|
||||
// 设置session id
|
||||
String sid = new ObjectId().toString();
|
||||
Cookie uuidCookie = cookieContext.createCookie(CookieName.SID, sid);
|
||||
uuidCookie.setMaxAge(-1);
|
||||
@@ -165,7 +165,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 请求url,不包括query string
|
||||
* 请求url,不包括query string
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -174,7 +174,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 请求url后的请求参数,如果参数不为空则包括问号在内
|
||||
* 请求url后的请求参数,如果参数不为空则包括问号在内
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -183,7 +183,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 请求uri
|
||||
* 请求uri
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -192,7 +192,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 来源url
|
||||
* 来源url
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -201,7 +201,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 完整的请求url,包括query string
|
||||
* 完整的请求url,包括query string
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -210,7 +210,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否刷新缓存
|
||||
* 是否刷新缓存
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -219,7 +219,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 当前城市,可能为null
|
||||
* 当前城市,可能为null
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -228,7 +228,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 当前城市,不会为null
|
||||
* 当前城市,不会为null
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -237,7 +237,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* cookie中的uid,如果没有则生成新的uid
|
||||
* cookie中的uid,如果没有则生成新的uid
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -246,7 +246,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 全局的请求id
|
||||
* 全局的请求id
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -255,7 +255,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* cookie中的会话id,如果没有则生成新的sid
|
||||
* cookie中的会话id,如果没有则生成新的sid
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -264,7 +264,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否为ajax请求
|
||||
* 是否为ajax请求
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -273,7 +273,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 访问者的真实ip
|
||||
* 访问者的真实ip
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -282,7 +282,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 访问者标识,可能为null
|
||||
* 访问者标识,可能为null
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -291,7 +291,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 连接ip
|
||||
* 连接ip
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -300,7 +300,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* cookie中的uid,如果没有则为空字符串
|
||||
* cookie中的uid,如果没有则为空字符串
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -309,7 +309,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* cookie中的会话id,如果没有则为空字符串
|
||||
* cookie中的会话id,如果没有则为空字符串
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@@ -318,7 +318,7 @@ public class AnalyticsBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* 请求开始时间
|
||||
* 请求开始时间
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -66,12 +66,12 @@ public class AnalyticsFilter implements Filter {
|
||||
ServletException {
|
||||
final AnalyticsBean analyticsBean = AnalyticsBean.get(request, response);
|
||||
|
||||
// 点击日志
|
||||
// 点击日志
|
||||
if (analyticsBean.requestUrl.indexOf("/__utm.gif") > -1) {
|
||||
processUtmGifLog(request, response, analyticsBean);
|
||||
return;
|
||||
}
|
||||
// 判断URL是否合法,不合法则重定向
|
||||
// 判断URL是否合法,不合法则重定向
|
||||
if (!System.getProperty("os.name").toLowerCase().contains("window")){
|
||||
String redirectUrl = checkUrlFormat(analyticsBean);
|
||||
LOGGER.error("redirectUrl:", redirectUrl);
|
||||
@@ -95,7 +95,7 @@ public class AnalyticsFilter implements Filter {
|
||||
threadLocalData.put(ThreadLocalKey.DisableCache, "1");
|
||||
}
|
||||
|
||||
// 切换城市
|
||||
// 切换城市
|
||||
FangjiaServerAreaContextHolder.setServerArea(analyticsBean.city);
|
||||
threadLocalData.put(ThreadLocalKey.FromSpider, analyticsBean.isSpider());
|
||||
chain.doFilter(request, response);
|
||||
@@ -116,7 +116,7 @@ public class AnalyticsFilter implements Filter {
|
||||
responseOutputStream.close();
|
||||
String userAgent = analyticsBean.userAgent;
|
||||
if (userAgent != null && (userAgent.indexOf("Googlebot-Image") >= 0 || userAgent.indexOf("Baidu") >= 0)) {
|
||||
// 过滤爬虫的访问
|
||||
// 过滤爬虫的访问
|
||||
return;
|
||||
}
|
||||
jmsTemplate.send(utmgifDestination, new MessageCreator() {
|
||||
@@ -156,7 +156,7 @@ public class AnalyticsFilter implements Filter {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断URL是否合法,合法则返回null,否则返回重定向URL
|
||||
* 判断URL是否合法,合法则返回null,否则返回重定向URL
|
||||
*
|
||||
* @param requestUrl
|
||||
* @param requestUri
|
||||
@@ -166,7 +166,7 @@ public class AnalyticsFilter implements Filter {
|
||||
private String checkUrlFormat(AnalyticsBean analyticsBean) {
|
||||
FangjiaConfig fangjiaConfig = FangjiaConfig.getConfig();
|
||||
String hostName = StringUtils.substringBetween(analyticsBean.requestUrl, "http://", "/");
|
||||
// 如果hostName中有端口号,则把端口号去掉
|
||||
// 如果hostName中有端口号,则把端口号去掉
|
||||
int index = hostName.indexOf(":");
|
||||
if (index > 0) {
|
||||
hostName = hostName.substring(0, index);
|
||||
@@ -187,7 +187,7 @@ public class AnalyticsFilter implements Filter {
|
||||
return fangjiaConfig.getCityDomainName(city) + analyticsBean.requestUri + analyticsBean.queryString;
|
||||
}
|
||||
if (city != null || secondLevelDomains().contains(prefixSplit[0])) {
|
||||
// 找到对应的城市,或者是一个有效的二级域名
|
||||
// 找到对应的城市,或者是一个有效的二级域名
|
||||
return null;
|
||||
}
|
||||
if (prefixSplit[0].equalsIgnoreCase("www")) {
|
||||
|
||||
+12
-12
@@ -53,7 +53,7 @@ public class SpiderValidateFilter implements Filter {
|
||||
private void checkReload() {
|
||||
if (this.reloading.compareAndSet(false, true)) {
|
||||
try {
|
||||
// 5分钟reload一次
|
||||
// 5分钟reload一次
|
||||
if (System.currentTimeMillis() - lastReloadTimestamp < 300000) {
|
||||
return;
|
||||
}
|
||||
@@ -87,13 +87,13 @@ public class SpiderValidateFilter implements Filter {
|
||||
if (isValidUserAgent(ua)) {
|
||||
for (String spiderName : spiderDomains.keySet()) {
|
||||
if (!ua.contains(spiderName)) {
|
||||
// 未声明自己为spider则跳过
|
||||
// 未声明自己为spider则跳过
|
||||
continue;
|
||||
}
|
||||
if (null == ip) {
|
||||
spider = new Spider(spiderName, ip, ua);
|
||||
spider.setFake(true);
|
||||
// 对ip为null的蜘蛛暂时不入数据库
|
||||
// 对ip为null的蜘蛛暂时不入数据库
|
||||
} else {
|
||||
spider = spiders.get(ip);
|
||||
if (null == spider) {
|
||||
@@ -106,7 +106,7 @@ public class SpiderValidateFilter implements Filter {
|
||||
} else {
|
||||
spider = new Spider("unkown", ip, ua);
|
||||
spider.setFake(true);
|
||||
// 对userAgent为null的蜘蛛暂时不入数据库
|
||||
// 对userAgent为null的蜘蛛暂时不入数据库
|
||||
}
|
||||
}
|
||||
if (spider != null && spider.isFake()) {
|
||||
@@ -145,7 +145,7 @@ public class SpiderValidateFilter implements Filter {
|
||||
|
||||
private void validateSpider(Spider spider) {
|
||||
if (null == spider.getId()) {
|
||||
// 新发现的蜘蛛
|
||||
// 新发现的蜘蛛
|
||||
checkSpider(spider);
|
||||
spiderService.upsertByIp(spider);
|
||||
spiders.put(spider.getIp(), spider);
|
||||
@@ -153,23 +153,23 @@ public class SpiderValidateFilter implements Filter {
|
||||
LOGGER.info("find new spider: " + spider);
|
||||
}
|
||||
} else if (spider.isVerified()) {
|
||||
// 已人工验证的蜘蛛
|
||||
// 已人工验证的蜘蛛
|
||||
spiders.put(spider.getIp(), spider);
|
||||
} else if (spider.isFake()) {
|
||||
// 已发现的假蜘蛛
|
||||
// 已发现的假蜘蛛
|
||||
Date yestoday = DateUtils.addDays(new Date(), -1);
|
||||
if (spider.getModificationDate().before(yestoday)) {
|
||||
// 删除超过1天的假蜘蛛信息
|
||||
// 删除超过1天的假蜘蛛信息
|
||||
spiderService.deleteByIp(spider.getIp());
|
||||
spiders.remove(spider.getIp());
|
||||
} else {
|
||||
spiders.put(spider.getIp(), spider);
|
||||
}
|
||||
} else {
|
||||
// 已发现的真蜘蛛
|
||||
// 已发现的真蜘蛛
|
||||
Date lastWeek = DateUtils.addDays(new Date(), -7);
|
||||
if (spider.getModificationDate().before(lastWeek)) {
|
||||
// 重新验证超过7天的真蜘蛛
|
||||
// 重新验证超过7天的真蜘蛛
|
||||
checkSpider(spider);
|
||||
if (spider.isFake()) {
|
||||
spiderService.deleteByIp(spider.getIp());
|
||||
@@ -191,10 +191,10 @@ public class SpiderValidateFilter implements Filter {
|
||||
String host = nslookup(spider.getIp());
|
||||
if (null != host) {
|
||||
spider.setHost(host);
|
||||
// 不是相同域的为假蜘蛛
|
||||
// 不是相同域的为假蜘蛛
|
||||
spider.setFake(!isSameDomain(host, spiderDomains.get(spider.getName())));
|
||||
} else {
|
||||
// 反向解析失败,则默认为真蜘蛛
|
||||
// 反向解析失败,则默认为真蜘蛛
|
||||
spider.setHost(spider.getIp());
|
||||
spider.setFake(false);
|
||||
}
|
||||
|
||||
@@ -4,51 +4,51 @@ public class ApplyLoanModel extends BaseModel{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
//小区名
|
||||
//小区名
|
||||
private String name;
|
||||
|
||||
//地址
|
||||
//地址
|
||||
private String address;
|
||||
|
||||
//总价
|
||||
//总价
|
||||
private long totalPrice;
|
||||
|
||||
//面积
|
||||
//面积
|
||||
private Double area;
|
||||
|
||||
//均价
|
||||
//均价
|
||||
private Integer avgPrice;
|
||||
|
||||
//贷款id
|
||||
//贷款id
|
||||
private String productId;
|
||||
|
||||
//申请贷款页面来源
|
||||
//申请贷款页面来源
|
||||
private String source;
|
||||
|
||||
//贷款类型
|
||||
//贷款类型
|
||||
private String loanType;
|
||||
|
||||
//上一页面链接
|
||||
//上一页面链接
|
||||
private String backUrl;
|
||||
|
||||
//需要返回页面链接
|
||||
//需要返回页面链接
|
||||
private String lastUrl;
|
||||
|
||||
//手机号
|
||||
//手机号
|
||||
private String mobile;
|
||||
|
||||
//渠道名称
|
||||
//渠道名称
|
||||
private String leads_source;
|
||||
|
||||
//广告名称
|
||||
//广告名称
|
||||
private String campaign;
|
||||
|
||||
//渠道类型
|
||||
//渠道类型
|
||||
private String leads_type;
|
||||
|
||||
private String loan_type;
|
||||
|
||||
//是否显示返回按钮 1:是
|
||||
//是否显示返回按钮 1:是
|
||||
private String back;
|
||||
|
||||
public String getProductId() {
|
||||
|
||||
@@ -16,24 +16,24 @@ public class AssessModel extends BaseModel {
|
||||
private Integer userType;
|
||||
private Double loanAmount;
|
||||
private Integer loanMonth;
|
||||
private Integer census; // 户籍
|
||||
private Integer marriage; // 婚姻
|
||||
private Integer credit; // 信用记录
|
||||
private Double salary; // 流水
|
||||
private Double otherSalary; // 其他收入
|
||||
private Integer companyType; // 单位类型
|
||||
private Integer job; // 职位
|
||||
private Double entryTime; // 入职时间
|
||||
private Integer taxTime; // 缴税时间
|
||||
private Integer census; // 户籍
|
||||
private Integer marriage; // 婚姻
|
||||
private Integer credit; // 信用记录
|
||||
private Double salary; // 流水
|
||||
private Double otherSalary; // 其他收入
|
||||
private Integer companyType; // 单位类型
|
||||
private Integer job; // 职位
|
||||
private Double entryTime; // 入职时间
|
||||
private Integer taxTime; // 缴税时间
|
||||
|
||||
private String step1Id;
|
||||
private LoanAssessStep1 step1Entity;
|
||||
|
||||
private Integer estate; // 房产
|
||||
private Double assets; // 总资产
|
||||
private Double liabilities; // 总负债
|
||||
private Double repayments; // 每月还款额
|
||||
private Integer mortgage; // 抵押物
|
||||
private Integer estate; // 房产
|
||||
private Double assets; // 总资产
|
||||
private Double liabilities; // 总负债
|
||||
private Double repayments; // 每月还款额
|
||||
private Integer mortgage; // 抵押物
|
||||
|
||||
private String step2Id;
|
||||
private LoanAssessStep2 step2Entity;
|
||||
|
||||
@@ -40,13 +40,13 @@ public class BaseModel extends ModelAndViewSupport {
|
||||
+ (CONFIG.isDevelopmentEnvironment() ? "/fangjia-loan" : "");
|
||||
private final static String PIC_URL = STATIC_URL + "/fs/";// fs?i= /fs-
|
||||
|
||||
// 默认房源小图
|
||||
// 默认房源小图
|
||||
private final static String DEFAULT_S_PIC = STATIC_URL + "/images/common/no-s.gif";
|
||||
|
||||
// 默认房源大图
|
||||
// 默认房源大图
|
||||
private final static String DEFAULT_B_PIC = STATIC_URL + "/images/common/no-b.gif";
|
||||
|
||||
// 默认经纪人头像
|
||||
// 默认经纪人头像
|
||||
private final static String DEFAULT_BROKER_PIC = STATIC_URL + "/images/common/no-broker.gif";
|
||||
private String queryString;
|
||||
private Pager pager;
|
||||
@@ -369,7 +369,7 @@ public class BaseModel extends ModelAndViewSupport {
|
||||
}
|
||||
|
||||
/**
|
||||
* 如果queryString不为空则在前面加上问号"?",否则不加
|
||||
* 如果queryString不为空则在前面加上问号"?",否则不加
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -10,8 +10,8 @@ public class BusinessLoanModel extends LoanModel {
|
||||
private static final long serialVersionUID = -4421660548708608854L;
|
||||
|
||||
private String id;
|
||||
private int loanAmount; // 万元
|
||||
private int loanMonth; // 月
|
||||
private int loanAmount; // 万元
|
||||
private int loanMonth; // 月
|
||||
private BusinessLoanBo businessLoanBo;
|
||||
private List<BusinessLoanBo> businessLoanBoList;
|
||||
private String sort;
|
||||
@@ -33,13 +33,13 @@ public class BusinessLoanModel extends LoanModel {
|
||||
List<Condition> ret = new ArrayList<Condition>();
|
||||
if (agencyType > 0) {
|
||||
if (agencyType == 1) {
|
||||
ret.add(new Condition("agencyType", "机构类型", "银行", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "银行", String.valueOf(agencyType)));
|
||||
} else if (agencyType == 2) {
|
||||
ret.add(new Condition("agencyType", "机构类型", "小贷公司", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "小贷公司", String.valueOf(agencyType)));
|
||||
} else if (agencyType == 3) {
|
||||
ret.add(new Condition("agencyType", "机构类型", "汽车金融公司", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "汽车金融公司", String.valueOf(agencyType)));
|
||||
} else {
|
||||
ret.add(new Condition("agencyType", "机构类型", "其他", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "其他", String.valueOf(agencyType)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,13 +33,13 @@ public class CarLoanModel extends LoanModel {
|
||||
List<Condition> ret = new ArrayList<Condition>();
|
||||
if (agencyType > 0) {
|
||||
if (agencyType == 1) {
|
||||
ret.add(new Condition("agencyType", "机构类型", "银行", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "银行", String.valueOf(agencyType)));
|
||||
} else if (agencyType == 2) {
|
||||
ret.add(new Condition("agencyType", "机构类型", "小贷公司", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "小贷公司", String.valueOf(agencyType)));
|
||||
} else if (agencyType == 3) {
|
||||
ret.add(new Condition("agencyType", "机构类型", "汽车金融公司", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "汽车金融公司", String.valueOf(agencyType)));
|
||||
} else {
|
||||
ret.add(new Condition("agencyType", "机构类型", "其他", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "其他", String.valueOf(agencyType)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -30,13 +30,13 @@ public class ConsumptionLoanModel extends LoanModel {
|
||||
List<Condition> ret = new ArrayList<Condition>();
|
||||
if (agencyType > 0) {
|
||||
if (agencyType == 1) {
|
||||
ret.add(new Condition("agencyType", "机构类型", "银行", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "银行", String.valueOf(agencyType)));
|
||||
} else if (agencyType == 2) {
|
||||
ret.add(new Condition("agencyType", "机构类型", "小贷公司", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "小贷公司", String.valueOf(agencyType)));
|
||||
} else if (agencyType == 3) {
|
||||
ret.add(new Condition("agencyType", "机构类型", "汽车金融公司", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "汽车金融公司", String.valueOf(agencyType)));
|
||||
} else {
|
||||
ret.add(new Condition("agencyType", "机构类型", "其他", String.valueOf(agencyType)));
|
||||
ret.add(new Condition("agencyType", "机构类型", "其他", String.valueOf(agencyType)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,15 +2,15 @@ package com.fangjia.loan.model;
|
||||
|
||||
public enum Gakey {
|
||||
/**
|
||||
* 结果集数量
|
||||
* 结果集数量
|
||||
*/
|
||||
rc,
|
||||
/**
|
||||
* 页码
|
||||
* 页码
|
||||
*/
|
||||
pn,
|
||||
/**
|
||||
* 页码大小
|
||||
* 页码大小
|
||||
*/
|
||||
ps,
|
||||
}
|
||||
|
||||
@@ -5,129 +5,129 @@ public class LoanLeadsModel extends BaseModel {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 小区所在城市
|
||||
* 小区所在城市
|
||||
*/
|
||||
private String disCity;
|
||||
|
||||
/**
|
||||
* 贷款人姓名
|
||||
* 贷款人姓名
|
||||
*/
|
||||
private String loanName;
|
||||
|
||||
/**
|
||||
* 贷款人性别
|
||||
* 贷款人性别
|
||||
*/
|
||||
private String sex;
|
||||
|
||||
/**
|
||||
* 手机
|
||||
* 手机
|
||||
*/
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
* 图形验证码
|
||||
* 图形验证码
|
||||
*/
|
||||
private String imgCode;
|
||||
|
||||
/**
|
||||
* 图形验证码对应的token
|
||||
* 图形验证码对应的token
|
||||
*/
|
||||
private String codeToken;
|
||||
|
||||
/**
|
||||
* 短信验证码
|
||||
* 短信验证码
|
||||
*/
|
||||
private String smsCode;
|
||||
|
||||
/**
|
||||
* 估值房屋地址
|
||||
* 估值房屋地址
|
||||
*/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 小区名称
|
||||
* 小区名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 房屋估值价格
|
||||
* 房屋估值价格
|
||||
*/
|
||||
private long totalPrice;
|
||||
|
||||
/**
|
||||
* 房屋面积
|
||||
* 房屋面积
|
||||
*/
|
||||
private double area;
|
||||
|
||||
/**
|
||||
* 室号
|
||||
* 室号
|
||||
*/
|
||||
private String houseNum;
|
||||
|
||||
/**
|
||||
* 楼层
|
||||
* 楼层
|
||||
*/
|
||||
private Integer floor;
|
||||
|
||||
/**
|
||||
* 房屋单价
|
||||
* 房屋单价
|
||||
*/
|
||||
private int avgPrice;
|
||||
|
||||
/**
|
||||
* 申请贷款类型
|
||||
* 申请贷款类型
|
||||
*/
|
||||
private String loanType;
|
||||
|
||||
/**
|
||||
* 申请贷款类型id
|
||||
* 申请贷款类型id
|
||||
*/
|
||||
private String loanProductId;
|
||||
|
||||
/**
|
||||
* 贷款申请页来源
|
||||
* 贷款申请页来源
|
||||
*/
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 上一页面url
|
||||
* 上一页面url
|
||||
*/
|
||||
private String backUrl;
|
||||
|
||||
//需要返回页面链接
|
||||
//需要返回页面链接
|
||||
private String lastUrl;
|
||||
|
||||
/**
|
||||
* 贷款金额
|
||||
* 贷款金额
|
||||
*/
|
||||
private double amount;
|
||||
|
||||
/**
|
||||
* 资产类型
|
||||
* 资产类型
|
||||
*/
|
||||
private String assetType;
|
||||
|
||||
/**
|
||||
* 短信类型
|
||||
* 短信类型
|
||||
*/
|
||||
private String type;
|
||||
|
||||
//渠道名称
|
||||
//渠道名称
|
||||
private String leads_source;
|
||||
|
||||
//广告名称
|
||||
//广告名称
|
||||
private String campaign;
|
||||
|
||||
//渠道类型
|
||||
//渠道类型
|
||||
private String leads_type;
|
||||
|
||||
private String loanCity;
|
||||
|
||||
|
||||
//来源
|
||||
//来源
|
||||
private String comefrom;
|
||||
|
||||
//是否返回
|
||||
//是否返回
|
||||
private String back;
|
||||
|
||||
public String getLoanType() {
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.fangjia.loan.model;
|
||||
|
||||
public class Message {
|
||||
/**
|
||||
* 短信验证码的使用类型(登录,注册,绑定号码)
|
||||
* 短信验证码的使用类型(登录,注册,绑定号码)
|
||||
*/
|
||||
public static final String SMS_CODE_TYPE_LOGIN = "login";
|
||||
public static final String SMS_CODE_TYPE_REG = "register";
|
||||
@@ -17,37 +17,37 @@ public class Message {
|
||||
|
||||
public static final String RESULT_SUCCESS = "success";
|
||||
|
||||
public static final String PARAM_NOT_NULL = "请将信息输入完整";
|
||||
public static final String PARAM_NOT_NULL = "请将信息输入完整";
|
||||
|
||||
public static final String SMS_CODE_SEND_FAIL = "短信验证码发送失败";
|
||||
public static final String SMS_CODE_SEND_FAIL = "短信验证码发送失败";
|
||||
|
||||
public static final String SMS_CODE_SEND_FAIL_TIME = "操作太频繁";
|
||||
public static final String SMS_CODE_SEND_FAIL_TIME = "操作太频繁";
|
||||
|
||||
public static final String MIBILE_FORMAT = "手机号码不正确";
|
||||
public static final String MIBILE_FORMAT = "手机号码不正确";
|
||||
|
||||
public static final String PASS_REPEAT = "2次密码输入不一致";
|
||||
public static final String PASS_REPEAT = "2次密码输入不一致";
|
||||
|
||||
public static final String MOBILE_NOT_SEND_CODE = "此号码没发过验证码";
|
||||
public static final String MOBILE_NOT_SEND_CODE = "此号码没发过验证码";
|
||||
|
||||
public static final String CODE_ERROR = "输入的验证码不正确,请重新输入";
|
||||
public static final String CODE_ERROR = "输入的验证码不正确,请重新输入";
|
||||
|
||||
public static final String ACCOUNT_EXISTS = "该账户已存在";
|
||||
public static final String ACCOUNT_EXISTS = "该账户已存在";
|
||||
|
||||
public static final String ACCOUNT_NOT_EXISTS = "该账户不存在,请先注册";
|
||||
public static final String ACCOUNT_NOT_EXISTS = "该账户不存在,请先注册";
|
||||
|
||||
public static final String ACCOUNT_SAVE_FAIL = "用户信息保存失败";
|
||||
public static final String ACCOUNT_SAVE_FAIL = "用户信息保存失败";
|
||||
|
||||
public static final String LOGIN_FAIL = "账号/密码错误";
|
||||
public static final String LOGIN_FAIL = "账号/密码错误";
|
||||
|
||||
public static final String NOT_BIND_MOBILE = "没有绑定手机";
|
||||
public static final String NOT_BIND_MOBILE = "没有绑定手机";
|
||||
|
||||
public static final String IMG_CODE_ERROR = "输入的图形码不正确,请重新输入";
|
||||
public static final String IMG_CODE_ERROR = "输入的图形码不正确,请重新输入";
|
||||
|
||||
public static final String NOT_SET_PAY_PASSWORD = "未设置支付密码";
|
||||
public static final String NOT_SET_PAY_PASSWORD = "未设置支付密码";
|
||||
|
||||
public static final String PAY_PASSWORD_ERROR = "支付密码错误,请重新输入";
|
||||
public static final String PAY_PASSWORD_ERROR = "支付密码错误,请重新输入";
|
||||
|
||||
public static final String NOT_LOGIN = "请先进行登录";
|
||||
public static final String NOT_LOGIN = "请先进行登录";
|
||||
|
||||
public static final String MOBILE_EXISTS_ERROR = "该号码已经存在于我们的系统中";
|
||||
public static final String MOBILE_EXISTS_ERROR = "该号码已经存在于我们的系统中";
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@ package com.fangjia.loan.model;
|
||||
|
||||
import org.sothis.web.mvc.ModelAndViewSupport;
|
||||
/**
|
||||
* Óû§×¢²á·µ»ØJSON
|
||||
* 用户注册返回JSON
|
||||
* @author yinjihuan
|
||||
* @date 2016Äê3ÔÂ11ÈÕ
|
||||
* @date 2016年3月11日
|
||||
*
|
||||
*/
|
||||
public class UserRegJsonModel extends ModelAndViewSupport {
|
||||
|
||||
@@ -44,7 +44,7 @@ public class LoginUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* ¹ÜÀíÔ±ÊÇ·ñµÇ¼
|
||||
* 管理员是否登录
|
||||
*
|
||||
* @param req
|
||||
* @return
|
||||
|
||||
@@ -28,10 +28,10 @@ public class SourceUtils {
|
||||
}else if(!isContainsSites(s) && !referer.contains("utm_medium")){
|
||||
value = "Referral";
|
||||
}else{
|
||||
value = "ÆäËü";
|
||||
value = "其它";
|
||||
}
|
||||
} else{
|
||||
value = "ÆäËü";
|
||||
value = "其它";
|
||||
}
|
||||
return value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user