src/com/dao/hetongDao.java

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;




import com.bean.hetong;
import com.util.DBO;
import java.util.List;
import java.sql.ResultSet;
import java.util.ArrayList;
public class hetongDao {
	private DBO db=null;//
	 private hetong hetong=null;
	 public void  insert(hetong hetong) throws Exception{//添加合同
			db=new DBO();
		   db.open();
			
			String sql = "insert into hetong (bt,hth,nr,sj,htbd,jf,dw,dh,yfdh,lxr,zt ) values ('"+hetong.getBt()+"','"+hetong.getHth()+"','"+hetong.getNr()+"','"+hetong.getSj()+"','"+hetong.getHtbd()+"','"+hetong.getJf()+"','"+hetong.getDw()+"','"+hetong.getDh()+"','"+hetong.getYfdh()+"','"+hetong.getLxr()+"','"+hetong.getZt()+"')";
		
			
			db.update(sql);
			//db.commit();
			db.close();
		
		}
	 public void  modify(hetong hetong) throws Exception{//修改合同
			db=new DBO();
		   db.open();
			
			String sql = "update hetong set  bt='"+hetong.getBt()+"',hth='"+hetong.getHth()+"',nr='"+hetong.getNr()+"',sj='"+hetong.getSj()+"',htbd='"+hetong.getHtbd()+"',jf='"+hetong.getJf()+"',dw='"+hetong.getDw()+"',dh='"+hetong.getDh()+"',yfdh='"+hetong.getYfdh()+"',lxr='"+hetong.getLxr()+"',zt='"+hetong.getZt()+"' where htid ='"+hetong.getHtid()+"'";
		
			
			db.update(sql);
			//db.commit();
			db.close();
		
		}
	 public void  delete(String keyid) throws Exception{//删除合同
			db=new DBO();
		        db.open();
			
			String sql = "delete from hetong where htid='"+keyid+"'";
		
			
			db.update(sql);
			//db.commit();
			db.close();
		
		}
	 public ResultSet  qlist(String sl) throws Exception{//查询合同
		   db=new DBO();
		   db.open();
		   String sql="select * from hetong where  1=1 ";
		if(!sl.equals("")){
			sql+=sl;
			
		}
后面还有 89 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。