Commit 73b1dbf9 by 孙亚楠

dd

parent 4d77723e
......@@ -65,8 +65,11 @@ class ManagerCtl extends CtlBase {
// 交付商统计
async deliverStatTransData(pobj, pobj2, req) {
if (!pobj.current_date) {
return system.getResult(null, `参数错误 当前时间不能为空`);
if(!params.current_date){
let nowTime =new Date();
let month = nowTime.getMonth() + 1;
month = month<10?"0"+month:month;
params.current_date = nowTime.getFullYear()+"-"+month;
}
pobj.deliver_id = req.query.deliver_id;
try {
......@@ -79,8 +82,11 @@ class ManagerCtl extends CtlBase {
// 业务办理
async businessManagement(pobj, pobj2, req) {
if (!pobj.current_date) {
return system.getResult(null, `参数错误 当前时间不能为空`);
if(!params.current_date){
let nowTime =new Date();
let month = nowTime.getMonth() + 1;
month = month<10?"0"+month:month;
params.current_date = nowTime.getFullYear()+"-"+month;
}
pobj.deliver_id = req.query.deliver_id;
try {
......
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