Commit 0ac50d84 by 赵庆

gsb

parent d3047bc7
...@@ -23,7 +23,7 @@ class LoadService extends ServiceBase { ...@@ -23,7 +23,7 @@ class LoadService extends ServiceBase {
if(params.id_no){ if(params.id_no){
where.id_no = params.id_no where.id_no = params.id_no
} }
this.addWhereTime(where, 'begin_time', params.signBegin, params.signEnd, true); this.addWhereTime(where, 'affirm_time', params.signBegin, params.signEnd, true);
var orderby = [ var orderby = [
["id", 'desc'] ["id", 'desc']
]; ];
......
...@@ -255,6 +255,12 @@ class ServiceBase { ...@@ -255,6 +255,12 @@ class ServiceBase {
} }
} }
} }
endWith(source, str){
if(!str || !source || source.length == 0 || str.length > source.length) {
return false;
}
return source.substring(source.length - str.length) == str;
}
addWhereTime(where, field, begin, end) { addWhereTime(where, field, begin, end) {
if (!begin && !end) { if (!begin && !end) {
......
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