更改项目总数统计逻辑
This commit is contained in:
@@ -60,7 +60,7 @@ public class projectDao {
|
|||||||
try {
|
try {
|
||||||
Connection conn = JdbcUtils.getConnection();
|
Connection conn = JdbcUtils.getConnection();
|
||||||
QueryRunner runner = new QueryRunner();
|
QueryRunner runner = new QueryRunner();
|
||||||
String sql = "select count(*) as projectId from project";
|
String sql = "select count(*) as num from project";
|
||||||
p = runner.query(conn, sql, new BeanHandler<>(projectEntity.class));
|
p = runner.query(conn, sql, new BeanHandler<>(projectEntity.class));
|
||||||
count = p.getProjectId();
|
count = p.getProjectId();
|
||||||
conn.close();
|
conn.close();
|
||||||
|
@@ -141,4 +141,14 @@ public class projectEntity {
|
|||||||
public void setCategoryName(String categoryName) {
|
public void setCategoryName(String categoryName) {
|
||||||
this.categoryName = categoryName;
|
this.categoryName = categoryName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long num=0;
|
||||||
|
|
||||||
|
public long getNum() {
|
||||||
|
return num;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNum(long num) {
|
||||||
|
this.num = num;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user