添加一个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}")
// public void deleteManager(String managerNum);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save