freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

客房信息管理系統(tǒng)-資料下載頁

2025-04-12 12:31本頁面
  

【正文】 c void closePst(Statement... psts){ for(Statement pst: psts){ if(pst != null){ try { ()。 } catch (SQLException e) { } } } } /** * 關(guān)閉數(shù)據(jù)庫所得到的多個鏈接 * @param cons */ public static void closeCon(Connection... cons){ for(Connection con: cons){ if(con != null) { try { ()。 } catch (SQLException e) { } } } } //修改 ,新增,刪除 public static int execute(String sql) { Connection conn=()。 if (conn!=null) { try { Statement stmt = ()。 int flag = (sql)。 return flag。 } catch (Exception e) { ()。 return 1。 } } else { return 1。 } } } 計費(fèi)代碼package 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class checkService { private Connection con。 private PreparedStatement pst = null。 private ResultSet rs = null。 public checkService() { con = ()。 } public checkInfo getEntityById(String search, String str) { String sql = select * from checkInfo where + search + =39。 + str + 39。 and isVisible=39。true39。 (sql)。 try { Statement statement = ()。 ResultSet resultSet = (sql)。 ListObject list = (resultSet, )。 if (() 0) { checkInfo entity = (checkInfo) (0)。 ()。 return entity。 } } catch (SQLException e) { ()。 } return null。 } public Object[][] getObjsByCondtion(String custid, String realname, String room) { String sql = SELECT ,, + FROM a, b + where = and =39。true39。 and =39。true39。 if (custid == all) { } else { sql += and like 39。% + custid + %39。 and like 39。% + room + %39。 and like 39。% + realname + %39。 } sql += order by 。 (sql)。 List list = null。 try { list = (con, sql)。 } catch (SQLException e) { ()。 } // Object[] head = { 入住編號, 證件號, 客房號, 入住時間, 入住天數(shù), 押金 }。 Object[][] result = new Object[()][10]。 for (int i = 0。 i ()。 i++) { HashMap hashMap = (HashMap) (i)。 result[i][0] = (checkId)。 result[i][1] = (customerId)。 result[i][2] = (realName)。 result[i][3] = (roomId)。 result[i][4] = (checkInTime)。 result[i][5] = (checkInDay)。 result[i][6] = (depositmoney)。 String s = (status).toString()。 String reString = 。 if ((0)) { reString = 在住狀態(tài)。 } else if ((1)) { reString = 續(xù)房狀態(tài)。 } else { reString = 已退房。 } result[i][7] = reString。 } ()。 return result。 } // 旅客入住本店,并將入住的房間的狀態(tài)置為1, public boolean insert(checkInfo entity) { (true)。 (0)。 date = new (().getTime())。 String sql = insert into checkInfo (customerId,roomId,checkInTime,checkInDay,depositmoney,isVisible,status) values(39。 + () + 39。,39。 + () + 39。,39。 + date + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。)。 String updatesql = update set roomStatus=1 where roomId =39。 + () + 39。 and isVisible=39。true39。 sql += updatesql。 (sql)。 int count = (sql)。 try { ()。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } if (count 0) { return true。 } else { return false。 } } // 退房,需要,將退房時間,結(jié)賬金額更新 public boolean updateBack(checkInfo entity) { dTimestamp = new (().getTime())。 String sql = update checkInfo set billmoney=39。 + () + 39。,Totalmoney=39。 + () + 39。,biller=39。 + () + 39。,status=39。 + () + 39。,checkoutTime=39。 + dTimestamp + 39。 where checkId=39。 + () + 39。 String updatesql = update roomBase set roomStatus=0 where roomId=39。 + () + 39。 and isVisible=39。true39。 sql += updatesql。 (sql)。 int count = (sql)。 try { ()。 } catch (SQLException e) { ()。 } if (count 0) { return true。 } else { return false。 } } // 刪除客戶信息,將isvisible置為false public boolean remove(String id) { String sql = update checkInfo set + isvisible=39。 + false + 39。 where checkId= + id。 (sql)。 int count = (sql)。 if (count 0) { return true。 } else { return false。 } } public boolean updateCont(checkInfo entity) { dTimestamp = new (().getTime())。 String sql = update checkInfo set continuedDay=39。 + () + 39。,status=39。 + () + 39。,continuedTime=39。 + dTimestamp + 39。 where checkId=39。 + () + 39。 (sql)。 int count = (sql)。 try { ()。 } catch (SQLException e) { ()。 } if (count 0) { return true。 } else { return false。 } }}
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1