merged private server and console to private-cloud

This commit is contained in:
strawmanbobi
2020-01-12 19:15:08 +08:00
parent 15d977ccd6
commit 90f2d17331
176 changed files with 220265 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/*
* Created by Strawmanbobi
* 2014-08-30
*/
function objectMemberCount(conditions) {
var memberCount = 0;
for(var f in conditions) {
memberCount++;
}
var whereClause = "";
var index = 0;
for(var field in conditions) {
whereClause += field + " = '" + conditions[field] + "'";
if(index < memberCount - 1) {
whereClause += " AND ";
}
}
return whereClause;
}
module.exports = objectMemberCount;