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