添加一个bean和dao类,添加了每月还款并存储信息,保证数据库的及时更新,包括等额本金的提前还款

master
jyx 7 years ago
parent ebf4ba56d3
commit 725e51d919

@ -21,4 +21,5 @@ public interface managerMapper {
// @Delete("delete from manager where managerNum=#{managerNum}") // @Delete("delete from manager where managerNum=#{managerNum}")
// public void deleteManager(String managerNum); // public void deleteManager(String managerNum);
} }

@ -13,4 +13,5 @@ public interface paymentMapper {
@Update("update repayment set repAmount = {#repAmount} ,repSum = {#repSum} where checkNum = {#checkNum}") @Update("update repayment set repAmount = {#repAmount} ,repSum = {#repSum} where checkNum = {#checkNum}")
public void updateRepayment(Repayment repayment); public void updateRepayment(Repayment repayment);
} }

@ -27,6 +27,7 @@ public interface productMapper {
"productDescription=#{productDescription},pictureAddress=#{pictureAddress}") "productDescription=#{productDescription},pictureAddress=#{pictureAddress}")
public void updateProduct(Product products); public void updateProduct(Product products);
@Delete("delete from product where productNum=#{productNum}") @Delete("delete from product where productNum=#{productNum}")
public void deleteProduct(int productNum); public void deleteProduct(int productNum);
} }

@ -26,4 +26,5 @@ public interface transMapper {
@Delete("delete from audit where transactionNum=#{transactionNum}") @Delete("delete from audit where transactionNum=#{transactionNum}")
public void deleteTransaction(long transactionNum); public void deleteTransaction(long transactionNum);
} }

@ -27,4 +27,5 @@ public interface usageDateMapper {
@Delete("delete from usagedate where checkNum=#{checkNum}") @Delete("delete from usagedate where checkNum=#{checkNum}")
public void deleteUsageDate(long checkNum); public void deleteUsageDate(long checkNum);
} }

@ -24,5 +24,6 @@ public class Audit {
private int year; private int year;
private int equation; private int equation;
public Audit(){}; public Audit(){};
} }

@ -14,5 +14,6 @@ public class Bank {
private String bankName; private String bankName;
private String contact;//联系方式 private String contact;//联系方式
public Bank(){}; public Bank(){};
} }

@ -20,6 +20,7 @@ public class Manager {
private String managerRight; private String managerRight;
private String telephoneNum; private String telephoneNum;
public Manager(){}; public Manager(){};
public long getManagerNum() { public long getManagerNum() {

@ -80,3 +80,4 @@ public class Product {
this.productNum = productNum; this.productNum = productNum;
} }
} }

@ -52,6 +52,7 @@ public class ProductHistroy {
this.alterTime = alterTime; this.alterTime = alterTime;
} }
public String getDeleteTime() { public String getDeleteTime() {
return deleteTime; return deleteTime;
} }

@ -12,4 +12,5 @@ public class Repayment {
private long checkNum; private long checkNum;
private double repAmount; private double repAmount;
private double repSum; private double repSum;
} }

@ -28,5 +28,6 @@ public class Transaction {
this.payer = payer; this.payer = payer;
this.payee = payee; this.payee = payee;
this.transactionAmount=transactionNum; this.transactionAmount=transactionNum;
} }
} }

@ -20,4 +20,5 @@ public class UsageDate {
public UsageDate(){}; public UsageDate(){};
private int equation; private int equation;
} }

@ -25,5 +25,6 @@ public class User {
private String isIdentify; private String isIdentify;
private String registerTime; private String registerTime;
public User(){}; public User(){};
} }

@ -10,4 +10,5 @@ public class UserBankIdentify {
private String userName; private String userName;
private String bankAccount; private String bankAccount;
private short bankAccountIdentify; private short bankAccountIdentify;
} }

@ -36,6 +36,7 @@ public class EPAIR_CirService extends CirService{
e.printStackTrace(); e.printStackTrace();
}finally { }finally {
} }
return -1; return -1;
} }

@ -37,6 +37,7 @@ public class EPR_CirService extends CirService{
e.printStackTrace(); e.printStackTrace();
}finally { }finally {
} }
return -1; return -1;
} }

@ -34,6 +34,7 @@ public class PayCirService {
e.printStackTrace(); e.printStackTrace();
}finally { }finally {
} }
return 0; return 0;
} }

@ -34,6 +34,7 @@ public class NextCirController {
request.setAttribute("next",next_principal_and_intrate); request.setAttribute("next",next_principal_and_intrate);
}else{ }else{
return "/计算失败"; return "/计算失败";
} }
return "/next"; return "/next";

@ -15,6 +15,7 @@ public class PayCirController {
return "/还款成功"; return "/还款成功";
}else{ }else{
return"/还款失败"; return"/还款失败";
} }
} }

@ -39,6 +39,7 @@ public class SumCirController {
return "/计算失败"; return "/计算失败";
} }
return "/circulator"; return "/circulator";
} }
} }

Loading…
Cancel
Save