package com.bank.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import com.bank.model.FundChange;
/**
* 存款业务Dao
* @author Administrator
*
*/
public class FundChangeDao {
/**
* 客户资金变更表添加(存款)
* @param con
* @param bookType
* @return
* @throws Exception
*/
public int add(Connection con,FundChange fundChange)throws Exception{
String sql="insert into fund_change (fu_cName,fu_cIDCard,fu_cAccount,"
+ "fu_cTAccount,fu_cMoney,fu_cOperationcode,fu_cState,fu_cRemark)"
+ " values(?,?,?,?,?,?,?,?)";
PreparedStatement pstmt=con.prepareStatement(sql);
pstmt.setString(1, fundChange.getFu_cName());
pstmt.setString(2, fundChange.getFu_cIDCard());
pstmt.setString(3, fundChange.getFu_cAccount());
pstmt.setString(4, null);
pstmt.setDouble(5, fundChange.getFu_cMoney());
pstmt.setString(6, "CK500");
pstmt.setString(7, "成功");
pstmt.setString(8, fundChange.getFu_cRemark());
return pstmt.executeUpdate();
}
/**
* 客户资金变更表添加(存款)
* @param con
* @param bookType
* @return
* @throws Exception
*/
public int qkadd(Connection con,FundChange fundChange)throws Exception{
String sql="insert into fund_change (fu_cName,fu_cIDCard,fu_cAccount,"
+ "fu_cTAccount,fu_cMoney,fu_cOperationcode,fu_cState,fu_cRemark)"
+ " values(?,?,?,?,?,?,?,?)";
PreparedStatement pstmt=con.prepareStatement(sql);
pstmt.setString(1, fundChange.getFu_cName());
pstmt.setString(2, fundChange.getFu_cIDCard());
pstmt.setString(3, fundChange.getFu_cAccount());
pstmt.setString(4, null);
pstmt.setDouble(5, fundChange.getFu_cMoney());
pstmt.setString(6, "QK500");
pstmt.setString(7, "成功");
pstmt.setString(8, fundChange.getFu_cRemark());
return pstmt.executeUpdate();
}
}
最近下载更多
WDWDWD123 LV2
6月18日
胡棋俊 LV4
2024年11月17日
zvcbnlk LV2
2024年9月24日
baowanhong LV2
2023年6月11日
微信网友_6212133351690240 LV2
2022年12月27日
做你的景天 LV7
2022年11月23日
罗清晨 LV13
2022年9月27日
qwqiwiw LV4
2022年9月19日
testuser1234567 LV24
2022年5月31日
微信网友_5981140928106496 LV5
2022年5月30日
最近浏览更多
1059186419
7月15日
暂无贡献等级
WDWDWD123 LV2
6月18日
DoustrongWU LV5
3月7日
ma406805131 LV19
1月31日
ybbydwf LV2
1月8日
微信网友_7306808533962752
2024年12月22日
暂无贡献等级
yimaoermao LV1
2024年11月28日
胡棋俊 LV4
2024年11月17日
zwn258000
2024年10月24日
暂无贡献等级
zvcbnlk LV2
2024年9月16日

