数据库更新
This commit is contained in:
@@ -38,7 +38,8 @@ public class articleDao {
|
||||
int isvalid = rs.getInt(5);
|
||||
int readcount = rs.getInt(6);
|
||||
String articleTitle = rs.getString(7);
|
||||
articleEntity entity = new articleEntity(articleid, userid, articlecontent, datetime, isvalid, readcount,articleTitle);
|
||||
String articleIco = rs.getString(8);
|
||||
articleEntity entity = new articleEntity(articleid, userid, articlecontent, datetime, isvalid, readcount,articleTitle,articleIco);
|
||||
articleEntities.add(entity);
|
||||
}
|
||||
return articleEntities;
|
||||
@@ -77,7 +78,8 @@ public class articleDao {
|
||||
int isvalid = rs.getInt(5);
|
||||
int readcount = rs.getInt(6);
|
||||
String articleTitle = rs.getString(7);
|
||||
articleEntity entity = new articleEntity(articleid, userid, articlecontent, datetime, isvalid, readcount,articleTitle);
|
||||
String articleIco = rs.getString(8);
|
||||
articleEntity entity = new articleEntity(articleid, userid, articlecontent, datetime, isvalid, readcount,articleTitle,articleIco);
|
||||
articleEntities.add(entity);
|
||||
}
|
||||
return articleEntities;
|
||||
|
@@ -2,7 +2,7 @@ package com.hellogithub.entity;
|
||||
|
||||
public class articleEntity {
|
||||
public articleEntity(){} //无参构造函数
|
||||
public articleEntity(int articleId,int userId,String articleContent,String publishTime,int isValid,int readCount,String articleTitle){
|
||||
public articleEntity(int articleId,int userId,String articleContent,String publishTime,int isValid,int readCount,String articleTitle,String articleIco){
|
||||
this.articleId = articleId;
|
||||
this.userId = userId;
|
||||
this.articleContent = articleContent;
|
||||
@@ -10,6 +10,7 @@ public class articleEntity {
|
||||
this.isValid = isValid;
|
||||
this.readCount = readCount;
|
||||
this.articleTitle=articleTitle;
|
||||
this.articleIco=articleIco;
|
||||
}
|
||||
|
||||
int articleId;
|
||||
@@ -25,10 +26,20 @@ public class articleEntity {
|
||||
|
||||
String articleTitle;
|
||||
|
||||
String articleIco;
|
||||
|
||||
public String getArticleTitle() {
|
||||
return articleTitle;
|
||||
}
|
||||
|
||||
public String getArticleIco() {
|
||||
return articleIco;
|
||||
}
|
||||
|
||||
public void setArticleIco(String articleIco) {
|
||||
this.articleIco = articleIco;
|
||||
}
|
||||
|
||||
public void setArticleTitle(String articleTitle) {
|
||||
this.articleTitle = articleTitle;
|
||||
}
|
||||
|
Reference in New Issue
Block a user