Commit bc2e958c by 王昆

gsb

parent 86c3b647
......@@ -23,6 +23,9 @@ class OrderService extends ServiceBase {
async page(params) {
var rs = await this.callms("order", "saasOrderPage", params);
if (rs && rs.data && rs.data.rows) {
this.transOrderField(rs.data.rows);
}
return rs;
}
async audit(params) {
......@@ -35,5 +38,14 @@ class OrderService extends ServiceBase {
return rs;
}
transOrderField(rows) {
if (!rows || rows.length == 0) {
return;
}
for (let row of rows) {
row.price = system.f2y(row.price);
}
}
}
module.exports = OrderService;
\ No newline at end of file
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