package cn.xwkj.dao; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import cn.xwkj.entity.Msoxq; public class MsoxqDao extends BaseDao{ // 查询方法(返回结果用集合存储) public List<Msoxq> list(String sql, String msoid){ List<Msoxq> list=new ArrayList<Msoxq>(); ResultSet rs=executeQuery(sql, msoid); try { while(rs.next()) { Msoxq m=new Msoxq(); m.setpImg(rs.getString("pImg")); m.setpSn(rs.getString("pSn")); m.setpNum(rs.getInt("count")); m.setpPrice(rs.getDouble("subtotal")); list.add(m); } return list; } catch (SQLException e) { e.printStackTrace(); } finally { closeAll(); } return null; } }
最近下载更多
zhangxinqing1 LV6
2022年10月6日
17693282606 LV11
2022年7月12日
fangen0005 LV25
2022年5月30日
天马行空 LV3
2022年2月7日
dy123123 LV8
2022年1月2日
Tiffany & Co. LV5
2021年12月20日
mwk545924364 LV4
2021年12月9日
凯文 LV5
2021年12月6日
lwp011 LV27
2021年11月5日
maozi0802 LV4
2021年8月6日