Commit a7f9e9f9 by 王昆

gsb

parent ab1d0e3e
...@@ -45,15 +45,15 @@ class SaasorderbusinessmenService extends ServiceBase { ...@@ -45,15 +45,15 @@ class SaasorderbusinessmenService extends ServiceBase {
for (let item of res) { for (let item of res) {
this.handleDate(item, ["created_at", "reg_date", "service_begin_time", "service_end_time", "sign_time","tax_reg_day"], "YYYY-MM-DD HH:mm:ss"); this.handleDate(item, ["created_at", "reg_date", "service_begin_time", "service_end_time", "sign_time","tax_reg_day"], "YYYY-MM-DD HH:mm:ss");
item.is_bank_name = item.is_bank ? "已开户" : "未开户"; item.is_bank_name = item.is_bank ? "已开户" : "未开户";
item.common_tax_ladder = JSON.parse(item.common_tax_ladder); item.common_tax_ladder = JSON.parse(item.common_tax_ladder || "[]");
item.common_other_ladder = JSON.parse(item.common_other_ladder); item.common_other_ladder = JSON.parse(item.common_other_ladder || "[]");
item.special_tax_ladder = JSON.parse(item.special_tax_ladder); item.special_tax_ladder = JSON.parse(item.special_tax_ladder || "[]");
item.special_other_ladder = JSON.parse(item.special_other_ladder); item.special_other_ladder = JSON.parse(item.special_other_ladder || "[]");
} }
return system.getResult({count: countRes.count, rows: res}); return system.getResult({count: countRes.count, rows: res});
} catch (e) { } catch (e) {
console.log(e); console.log(e);
return system.getResult(nul, `系统错误`); return system.getResult(null, `系统错误`);
} }
} }
......
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