修改代码字符编码
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>fangjia-loan-service</name>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>GBK</project.build.sourceEncoding>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<build>
|
||||
<finalName>fangjia-loan-service</finalName>
|
||||
@@ -19,7 +19,7 @@
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
<encoding>GBK</encoding>
|
||||
<encoding>UTF-8</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
+5
-5
@@ -122,7 +122,7 @@ public class LoanOfficerServiceImpl implements LoanOfficerService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 激活用户账户
|
||||
* 激活用户账户
|
||||
*/
|
||||
@Override
|
||||
public void activeLoanOfficer(String id) {
|
||||
@@ -140,7 +140,7 @@ public class LoanOfficerServiceImpl implements LoanOfficerService {
|
||||
}
|
||||
loanUser.setName(loanOfficer.getMobile());
|
||||
loanUser.setOfficerId(loanOfficer.getId());
|
||||
loanUser.setPassword(DigestUtils.md5Hex("888888"));// 默认密码
|
||||
loanUser.setPassword(DigestUtils.md5Hex("888888"));// 默认密码
|
||||
loanUser.setStatus(0);
|
||||
loanUserDao.save(loanUser);
|
||||
} else {
|
||||
@@ -154,7 +154,7 @@ public class LoanOfficerServiceImpl implements LoanOfficerService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消用户账户的激活状态
|
||||
* 取消用户账户的激活状态
|
||||
*/
|
||||
@Override
|
||||
public void unActiveLoanOfficer(String id) {
|
||||
@@ -173,8 +173,8 @@ public class LoanOfficerServiceImpl implements LoanOfficerService {
|
||||
}
|
||||
loanUser.setName(loanOfficer.getMobile());
|
||||
loanUser.setOfficerId(loanOfficer.getId());
|
||||
loanUser.setPassword(DigestUtils.md5Hex("888888"));// 默认密码
|
||||
loanUser.setStatus(1);// 取消激活状态
|
||||
loanUser.setPassword(DigestUtils.md5Hex("888888"));// 默认密码
|
||||
loanUser.setStatus(1);// 取消激活状态
|
||||
loanUserDao.save(loanUser);
|
||||
} else {
|
||||
Map<String, Object> data = new HashMap<String, Object>();
|
||||
|
||||
+16
-16
@@ -21,7 +21,7 @@ import com.fangjia.loan.service.model.HouseLoanForm;
|
||||
public interface LoanService {
|
||||
|
||||
/**
|
||||
* 按ID查找购房贷款产品
|
||||
* 按ID查找购房贷款产品
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
@@ -29,7 +29,7 @@ public interface LoanService {
|
||||
HouseLoan findHouseLoanById(String id);
|
||||
|
||||
/**
|
||||
* 消费贷款
|
||||
* 消费贷款
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
@@ -37,7 +37,7 @@ public interface LoanService {
|
||||
ConsumptionLoan findConsumptionLoanById(String id);
|
||||
|
||||
/**
|
||||
* 购车贷款
|
||||
* 购车贷款
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
@@ -45,7 +45,7 @@ public interface LoanService {
|
||||
CarLoan findCarLoanById(String id);
|
||||
|
||||
/**
|
||||
* 经营贷款
|
||||
* 经营贷款
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
@@ -53,7 +53,7 @@ public interface LoanService {
|
||||
BusinessLoan findBusinessLoanById(String id);
|
||||
|
||||
/**
|
||||
* 按ID查找购房贷款产品
|
||||
* 按ID查找购房贷款产品
|
||||
*
|
||||
* @param id
|
||||
* @param loanForm
|
||||
@@ -62,7 +62,7 @@ public interface LoanService {
|
||||
HouseLoanBo findHouseLoanBoById(String id, double amount, int loanMonth);
|
||||
|
||||
/**
|
||||
* 经营贷款
|
||||
* 经营贷款
|
||||
*
|
||||
* @param id
|
||||
* @param amount
|
||||
@@ -72,7 +72,7 @@ public interface LoanService {
|
||||
BusinessLoanBo findBusinessLoanBoById(String id, double amount, int loanMonth);
|
||||
|
||||
/**
|
||||
* 消费贷款
|
||||
* 消费贷款
|
||||
*
|
||||
* @param id
|
||||
* @param amount
|
||||
@@ -82,7 +82,7 @@ public interface LoanService {
|
||||
ConsumptionLoanBo findConsumptionLoanBoById(String id, double amount, int loanMonth);
|
||||
|
||||
/**
|
||||
* 购车贷款
|
||||
* 购车贷款
|
||||
*
|
||||
* @param id
|
||||
* @param amount
|
||||
@@ -92,7 +92,7 @@ public interface LoanService {
|
||||
CarLoanBo findCarLoanBoById(String id, double amount, int loanMonth);
|
||||
|
||||
/**
|
||||
* 购房贷款
|
||||
* 购房贷款
|
||||
*
|
||||
* @param loanForm
|
||||
* @return
|
||||
@@ -100,7 +100,7 @@ public interface LoanService {
|
||||
List<HouseLoanBo> findHouseLoan(HouseLoanForm loanForm);
|
||||
|
||||
/**
|
||||
* 经营性贷款
|
||||
* 经营性贷款
|
||||
*
|
||||
* @param loanForm
|
||||
* @return
|
||||
@@ -108,7 +108,7 @@ public interface LoanService {
|
||||
List<BusinessLoanBo> findBusinessLoan(BusinessLoanForm loanForm);
|
||||
|
||||
/**
|
||||
* 购车贷款
|
||||
* 购车贷款
|
||||
*
|
||||
* @param loanForm
|
||||
* @return
|
||||
@@ -116,7 +116,7 @@ public interface LoanService {
|
||||
List<CarLoanBo> findCarLoan(CarLoanForm loanForm);
|
||||
|
||||
/**
|
||||
* 消费贷款
|
||||
* 消费贷款
|
||||
*
|
||||
* @param loanForm
|
||||
* @return
|
||||
@@ -124,7 +124,7 @@ public interface LoanService {
|
||||
List<ConsumptionLoanBo> findConsumptionLoan(ConsumptionLoanForm loanForm);
|
||||
|
||||
/**
|
||||
* 根据贷款月份份计算真实利率
|
||||
* 根据贷款月份份计算真实利率
|
||||
*
|
||||
* @param loanMonth
|
||||
* @param loanRate
|
||||
@@ -133,7 +133,7 @@ public interface LoanService {
|
||||
double calculateRealRate(int loanMonth, LoanRate loanRate);
|
||||
|
||||
/**
|
||||
* 计算总利息
|
||||
* 计算总利息
|
||||
*
|
||||
* @param loanAmount
|
||||
* @param monthPay
|
||||
@@ -143,7 +143,7 @@ public interface LoanService {
|
||||
double calculateTotalInterest(double loanAmount, double monthPay, int loanMonth);
|
||||
|
||||
/**
|
||||
* 计算月供
|
||||
* 计算月供
|
||||
*
|
||||
* @param loanAmount
|
||||
* @param rate
|
||||
@@ -153,7 +153,7 @@ public interface LoanService {
|
||||
double calculateMonthPay(double loanAmount, double rate, int loanMonth);
|
||||
|
||||
/**
|
||||
* 计算其他费用
|
||||
* 计算其他费用
|
||||
*
|
||||
* @param loanAmount
|
||||
* @param otherCost
|
||||
|
||||
+7
-7
@@ -156,7 +156,7 @@ public class LoanServiceImpl implements LoanService {
|
||||
ret.add(convertToBo(businessLoan, loanForm.getAmount(), loanForm.getLoanMonth()));
|
||||
}
|
||||
|
||||
// 条件过滤
|
||||
// 条件过滤
|
||||
ret = CollectionUtils.collectSome(ret, new Closure<BusinessLoanBo, BusinessLoanBo>() {
|
||||
@Override
|
||||
public BusinessLoanBo execute(BusinessLoanBo o) {
|
||||
@@ -220,7 +220,7 @@ public class LoanServiceImpl implements LoanService {
|
||||
ret.add(convertToBo(carLoan, loanForm.getAmount(), loanForm.getLoanMonth()));
|
||||
}
|
||||
|
||||
// 条件过滤
|
||||
// 条件过滤
|
||||
ret = CollectionUtils.collectSome(ret, new Closure<CarLoanBo, CarLoanBo>() {
|
||||
@Override
|
||||
public CarLoanBo execute(CarLoanBo o) {
|
||||
@@ -301,7 +301,7 @@ public class LoanServiceImpl implements LoanService {
|
||||
ret.add(convertToBo(consumptionLoan, loanForm.getAmount(), loanForm.getLoanMonth()));
|
||||
}
|
||||
|
||||
// 条件过滤
|
||||
// 条件过滤
|
||||
ret = CollectionUtils.collectSome(ret, new Closure<ConsumptionLoanBo, ConsumptionLoanBo>() {
|
||||
@Override
|
||||
public ConsumptionLoanBo execute(ConsumptionLoanBo o) {
|
||||
@@ -398,12 +398,12 @@ public class LoanServiceImpl implements LoanService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据实际利率,计算利率的浮动值
|
||||
* 根据实际利率,计算利率的浮动值
|
||||
*
|
||||
* @param realRate
|
||||
* 实际利率
|
||||
* 实际利率
|
||||
* @param loanMonth
|
||||
* 贷款月数
|
||||
* 贷款月数
|
||||
* @return
|
||||
*/
|
||||
private double calculateFloatRate(double realRate, int loanMonth, LoanRate loanRate) {
|
||||
@@ -527,7 +527,7 @@ public class LoanServiceImpl implements LoanService {
|
||||
}
|
||||
|
||||
private void fillMonthlyPay(LoanBo bo, LoanRate loanRate, BaseLoan loan, Double loanAmount, Integer loanMonth) {
|
||||
// 每月还息算法
|
||||
// 每月还息算法
|
||||
if (loanRate.isUseMonthRate()) {
|
||||
bo.setUseMonthRate(loanRate.isUseMonthRate());
|
||||
bo.setMonthRate(loanRate.getMonthRate());
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ public class HouseLoanBo extends LoanBo {
|
||||
*/
|
||||
private static final long serialVersionUID = 3256088172271086913L;
|
||||
private HouseLoan houseLoan;
|
||||
private double floatRate; // ¸¡¶¯ÀûÂÊ
|
||||
private double floatRate; // 浮动利率
|
||||
|
||||
public HouseLoanBo(HouseLoan houseLoan) {
|
||||
this.houseLoan = houseLoan;
|
||||
|
||||
@@ -10,9 +10,9 @@ public class LoanBo implements Serializable {
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -7136849361899629291L;
|
||||
private double rate; // 实际利率
|
||||
private double interest; // 总利息
|
||||
private double payMonth; // 月供
|
||||
private double rate; // 实际利率
|
||||
private double interest; // 总利息
|
||||
private double payMonth; // 月供
|
||||
|
||||
private String smallLogo;
|
||||
private String largeLogo;
|
||||
@@ -24,10 +24,10 @@ public class LoanBo implements Serializable {
|
||||
|
||||
private List<LoanOfficer> loanOfficers;
|
||||
|
||||
private boolean useMonthRate; // 是否以月息计算
|
||||
private double monthRate; // 月利率
|
||||
private double monthInterest; // 月息
|
||||
private double monthlyTotalInterest; // 月息计算的总费用
|
||||
private boolean useMonthRate; // 是否以月息计算
|
||||
private double monthRate; // 月利率
|
||||
private double monthInterest; // 月息
|
||||
private double monthlyTotalInterest; // 月息计算的总费用
|
||||
|
||||
public List<LoanOfficer> getLoanOfficers() {
|
||||
return loanOfficers;
|
||||
|
||||
+10
-10
@@ -58,13 +58,13 @@ public class LoanerInfoItem implements Serializable {
|
||||
public void setProductType(String productType) {
|
||||
this.productType = productType;
|
||||
if("business".equals(productType)){
|
||||
productTypeDes = "商业贷款";
|
||||
productTypeDes = "商业贷款";
|
||||
}else if ("car".equals(productType)) {
|
||||
productTypeDes = "购车贷款";
|
||||
productTypeDes = "购车贷款";
|
||||
}else if ("consumption".equals(productType)) {
|
||||
productTypeDes = "消费贷款";
|
||||
productTypeDes = "消费贷款";
|
||||
}else {
|
||||
productTypeDes = "购房贷款";
|
||||
productTypeDes = "购房贷款";
|
||||
}
|
||||
}
|
||||
public String getCompanyName() {
|
||||
@@ -127,13 +127,13 @@ public class LoanerInfoItem implements Serializable {
|
||||
public void setLoanStatus(int loanStatus) {
|
||||
this.loanStatus = loanStatus;
|
||||
if(loanStatus == 0){
|
||||
statusDes="申请中";
|
||||
statusDes="申请中";
|
||||
}else if (loanStatus == 1) {
|
||||
statusDes = "审核中";
|
||||
statusDes = "审核中";
|
||||
}else if (loanStatus == 2) {
|
||||
statusDes = "审核通过";
|
||||
statusDes = "审核通过";
|
||||
}else if (loanStatus == 4) {
|
||||
statusDes = "审核失败";
|
||||
statusDes = "审核失败";
|
||||
}
|
||||
}
|
||||
public int getOriginalSite() {
|
||||
@@ -142,9 +142,9 @@ public class LoanerInfoItem implements Serializable {
|
||||
public void setOriginalSite(int originalSite) {
|
||||
this.originalSite = originalSite;
|
||||
if(originalSite == 0){
|
||||
oriSiteDes = "融时代";
|
||||
oriSiteDes = "融时代";
|
||||
}else if (originalSite == 1) {
|
||||
oriSiteDes = "房价通";
|
||||
oriSiteDes = "房价通";
|
||||
}
|
||||
}
|
||||
public String getStatusDes() {
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ public class HouseLoanForm extends LoanForm {
|
||||
*/
|
||||
private static final long serialVersionUID = -192832634135719233L;
|
||||
private LoanHouseTypeEnum houseType;
|
||||
private int houseFundStatus; // 是否提供公积金贷款 0:不限;1:提供;2:不提供
|
||||
private int houseFundStatus; // 是否提供公积金贷款 0:不限;1:提供;2:不提供
|
||||
|
||||
public LoanHouseTypeEnum getHouseType() {
|
||||
return houseType;
|
||||
|
||||
+2
-2
@@ -8,8 +8,8 @@ public class LoanForm implements Serializable {
|
||||
*/
|
||||
private static final long serialVersionUID = 4935695705741389402L;
|
||||
private String city;
|
||||
private Double amount; // 贷款金额(万元)
|
||||
private Integer loanMonth; // 贷款期限(月)
|
||||
private Double amount; // 贷款金额(万元)
|
||||
private Integer loanMonth; // 贷款期限(月)
|
||||
private String sort;
|
||||
private Integer status;
|
||||
|
||||
|
||||
+4
-4
@@ -57,11 +57,11 @@ public class Feedback2ServiceImpl implements Feedback2Service {
|
||||
private void sendMail(Feedback2 fb) {
|
||||
Mail mail = new Mail();
|
||||
mail.setReceiver(new MailUser(fb.getContact()));
|
||||
mail.setSubject("【回复】融时代反馈");
|
||||
mail.setSubject("【回复】融时代反馈");
|
||||
StringBuffer emailMsg = new StringBuffer();
|
||||
emailMsg.append("尊敬的" + fb.getName() + ",您好!首先感谢您对我们提出的宝贵建议!<br />")
|
||||
.append("  根据您在" + new SimpleDateFormat("yyyy年MM月dd日").format(fb.getCreationDate()) + "的反馈,我们客服已为您做出相关解答,内容如下:<br />")
|
||||
.append("    ").append(fb.getResponse()).append("<br /><br />  希望我们的回复能够令您满意,我们将竭力为您提供更优质的服务!您还可拨打客服热线400-816-8815转888进行咨询和建议。");
|
||||
emailMsg.append("尊敬的" + fb.getName() + ",您好!首先感谢您对我们提出的宝贵建议!<br />")
|
||||
.append("  根据您在" + new SimpleDateFormat("yyyy年MM月dd日").format(fb.getCreationDate()) + "的反馈,我们客服已为您做出相关解答,内容如下:<br />")
|
||||
.append("    ").append(fb.getResponse()).append("<br /><br />  希望我们的回复能够令您满意,我们将竭力为您提供更优质的服务!您还可拨打客服热线400-816-8815转888进行咨询和建议。");
|
||||
mail.setContent(emailMsg.toString());
|
||||
mail.setImportant(true);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user