Commit 5171a554 by DESKTOP-7Q3CA17\86137

gsb

parent ae7b0e9e
...@@ -25,10 +25,6 @@ class MerchantCtl extends CtlBase { ...@@ -25,10 +25,6 @@ class MerchantCtl extends CtlBase {
var params = qobj || {}; var params = qobj || {};
try { try {
var page = await this.service.merchantInfo(params); var page = await this.service.merchantInfo(params);
if (page) {
this.handleDate(page, ["begin_time", "invalid_time"], "YYYY-MM-DD");
}
return system.getResult2(page); return system.getResult2(page);
} catch (e) { } catch (e) {
console.log(e); console.log(e);
......
...@@ -57,7 +57,11 @@ class MerchantService extends ServiceBase { ...@@ -57,7 +57,11 @@ class MerchantService extends ServiceBase {
if (!params.id) { if (!params.id) {
return system.getResultFail(-1, "id不能为空"); return system.getResultFail(-1, "id不能为空");
} }
return await this.dao.merchantInfo({id: params.id, sign_body_id: params.sign_body_id}); var page = await this.dao.merchantInfo({id: params.id, sign_body_id: params.sign_body_id});
if (page) {
this.handleDate(page, ["begin_time", "invalid_time"], "YYYY-MM-DD");
}
return page;
} }
......
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