• R/O
  • SSH
  • HTTPS

jinrousiki: Commit


Commit MetaInfo

Revision2282 (tree)
Time2018-12-07 02:33:10
Authorumethyl

Log Message

RoomDB::GetVote()

Change Summary

Incremental Difference

--- trunk/include/database/room_db_class.php (revision 2281)
+++ trunk/include/database/room_db_class.php (revision 2282)
@@ -128,11 +128,11 @@
128128 default:
129129 return null;
130130 }
131- $select = Query::SetSelect('vote', $column);
132- $where = Query::SetWhere(['room_no', 'date', 'scene', 'vote_count']);
133- $query = $select . $where;
134- $list = [DB::$ROOM->id, DB::$ROOM->date, DB::$ROOM->scene, DB::$ROOM->vote_count];
135- DB::Prepare($query, $list);
131+
132+ $query = Query::Init()->Table('vote')->Select($column);
133+ $query->Where(['room_no', 'date', 'scene', 'vote_count']);
134+ $list = [DB::$ROOM->id, DB::$ROOM->date, DB::$ROOM->scene, DB::$ROOM->vote_count];
135+ DB::Prepare($query->Build(), $list);
136136 return DB::FetchAssoc();
137137 }
138138
Show on old repository browser