This commit is contained in:
renjianbo0118
2021-03-15 10:44:58 +08:00
parent b5fb4c1a2b
commit 85ef7c568b
13 changed files with 745 additions and 10 deletions

View File

@@ -29,6 +29,28 @@ public class CommentBeanData extends DbBean implements Serializable {
@DatabaseField(columnName = "comment")
private String comment;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getPwd() {
return pwd;
}
public void setPwd(String pwd) {
this.pwd = pwd;
}
@DatabaseField(columnName = "code")
private String code;
@DatabaseField(columnName = "pwd")
private String pwd;
public String getType() {
return type;
}

View File

@@ -102,6 +102,21 @@ public class CommentDao {
}
return userAccountList;
}
public long deleteOne(CommentBeanData DATA){
int id = 0;
try {
try {
// id = userAccountDao.deleteById(DATA.getId());
// id = userAccountDao.deleteById(Integer.parseInt(DATA.getId()));
id = userAccountDao.delete(DATA);
} catch (java.sql.SQLException e) {
e.printStackTrace();
}
} catch (SQLException e) {
e.printStackTrace();
}
return id;
}
public long delete(List<CommentBeanData> DATA){
int id = 0;