在 mysql中 查询语句 SELECT id,paidamount,paymentDeadline FROM CAgreementAmount;在jsp页面上 行显示一月,二月 到十二月 还有一个十二月总和
列显示的是主营收入 只要把paidamount的数值分别在行里显示出来。这是在dao层写的语句
public List getamountListByCAgreementAmount(CAgreementAmount agreementAmount){
String sql = "SELECT id,paidamount,paymentDeadline FROM CAgreementAmount";
List result = this.getHibernateTemplate().find(sql, agreementAmount);
if (result.size() == 0) {
return null;
}
return result;
}
不知道对不对 在action里面如何去写,在jsp里面如何去写。
主营收入对应着 paidamount 时间 是paymentDeadline 在jsp页面上显示的是一月到十二月 让后还有一个12个月的和
列显示的是主营收入 只要把paidamount的数值分别在行里显示出来。这是在dao层写的语句
public List getamountListByCAgreementAmount(CAgreementAmount agreementAmount){
String sql = "SELECT id,paidamount,paymentDeadline FROM CAgreementAmount";
List result = this.getHibernateTemplate().find(sql, agreementAmount);
if (result.size() == 0) {
return null;
}
return result;
}
不知道对不对 在action里面如何去写,在jsp里面如何去写。
主营收入对应着 paidamount 时间 是paymentDeadline 在jsp页面上显示的是一月到十二月 让后还有一个12个月的和
不然你也可以在页面上 直接用js把所有的数据叠加一下也可以的