src/com/dao/hwspDao.java
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import com.bean.hwsp;
import com.util.DBO;
import java.util.List;
import java.sql.ResultSet;
import java.util.ArrayList;
public class hwspDao {
private DBO db=null;//
private hwsp hwsp=null;
public void insert(hwsp hwsp) throws Exception{//添加货物索赔
db=new DBO();
db.open();
String sql = "insert into hwsp (bx,bt,spje,sj,sy,clr ) values ('"+hwsp.getBx()+"','"+hwsp.getBt()+"','"+hwsp.getSpje()+"','"+hwsp.getSj()+"','"+hwsp.getSy()+"','"+hwsp.getClr()+"')";
db.update(sql);
//db.commit();
db.close();
}
public void modify(hwsp hwsp) throws Exception{//修改货物索赔
db=new DBO();
db.open();
String sql = "update hwsp set bx='"+hwsp.getBx()+"',bt='"+hwsp.getBt()+"',spje='"+hwsp.getSpje()+"',sj='"+hwsp.getSj()+"',sy='"+hwsp.getSy()+"',clr='"+hwsp.getClr()+"' where hwspid ='"+hwsp.getHwspid()+"'";
db.update(sql);
//db.commit();
db.close();
}
public void delete(String keyid) throws Exception{//删除货物索赔
db=new DBO();
db.open();
String sql = "delete from hwsp where hwspid='"+keyid+"'";
db.update(sql);
//db.commit();
db.close();
}
public ResultSet qlist(String sl) throws Exception{//查询货物索赔
db=new DBO();
db.open();
String sql="select * from hwsp where 1=1 ";
if(!sl.equals("")){
sql+=sl;
}
后面还有 69 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。