package cn.parking.DAO; import cn.parking.DBUtil.SQLUtil; import java.util.List; /* * @Author:cxs * @Date:2020/12/26 16:10 * @Version 1.0 * */ public class Message { //添加留言 public int addmessage(String user_id,String text){ String sqlCmd = "insert into message values(null,'"+user_id+"','"+text+"')"; return SQLUtil.executeNonQuery(sqlCmd, null); } //修改留言 public int updatemessage(int message_id,String text){ String sqlCmd = "update message set text = '"+text+"' where message_id = '"+message_id+"'"; return SQLUtil.executeNonQuery(sqlCmd, null); } //删除留言 public int deletebyid(int message_id){ String sqlCmd = "delete from message where message_id = '"+message_id+"'"; return SQLUtil.executeNonQuery(sqlCmd, null); } //查询留言 public List<Object> queryall(){ String sqlCmd = "select *from message"; return SQLUtil.executeQuery(sqlCmd, null); } //根据id查询 public List<Object> queryallbyid(int id){ String sqlCmd = "select *from message where message_id = '"+id+"'"; return SQLUtil.executeQuery(sqlCmd, null); } }

陈小灏 LV18
1月4日
shunlun8855 LV1
2024年10月15日
wanglinddad LV55
2024年4月8日
zolscy LV24
2024年3月24日
huangzy LV12
2023年12月13日
另类清晨 LV8
2023年9月22日
komice1992 LV3
2023年7月1日
hongdongdong LV14
2023年6月17日
lvdong2023 LV10
2023年5月17日
1613619109 LV6
2023年5月2日

renjunyou LV10
6月2日
jisiyongheng LV1
5月15日
ryadmin123 LV2
2月7日
yizhicxy LV1
2024年12月10日
shunlun8855 LV1
2024年10月14日
15719908287 LV10
2024年9月27日
绝对零度 LV4
2024年8月23日
ma406805131 LV19
2024年6月18日
kkKKKKp
2024年6月11日
暂无贡献等级
微信网友_7000012089643008 LV4
2024年5月26日