Commit d3047bc7 by 赵庆

gsb

parent 35bf5a0b
...@@ -243,6 +243,19 @@ class ServiceBase { ...@@ -243,6 +243,19 @@ class ServiceBase {
} }
} }
doTimeCondition(params, fields) {
if (!params || !fields || fields.length == 0) {
return;
}
for (var f of fields) {
if (params[f]) {
var suffix = this.endWith(f, 'Begin') ? " 00:00:00" : " 23:59:59";
params[f] = params[f] + suffix;
}
}
}
addWhereTime(where, field, begin, end) { addWhereTime(where, field, begin, end) {
if (!begin && !end) { if (!begin && !end) {
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment