Commit 758f4cbc by 王昆

gsb

parent 46b2b035
......@@ -5,11 +5,20 @@ var settings = require("../../../../config/settings");
const CtlBase = require("../../ctlms.base");
var cacheBaseComp = null;
class BusinessmenCtl extends CtlBase {
constructor() {
super();
this.businessmenSve = system.getObject("service.business.businessmenSve");
}
async info(pobj, pobj2, req) {
try {
return await this.businessmenSve.info(pobj);
} catch (error) {
console.log(error);
return system.getResultFail(500, "接口异常:" + error.message);
}
}
async allPage(pobj, pobj2, req) {
......@@ -58,7 +67,7 @@ class BusinessmenCtl extends CtlBase {
}
}
async signNames (pobj, pobj2, req) {
async signNames(pobj, pobj2, req) {
return system.getResultSuccess([]);
}
......@@ -86,7 +95,6 @@ class BusinessmenCtl extends CtlBase {
}
/**
* 个体户签约
* @param {*} params
......@@ -171,4 +179,5 @@ class BusinessmenCtl extends CtlBase {
// }
// }
}
module.exports = BusinessmenCtl;
\ No newline at end of file
......@@ -7,6 +7,11 @@ class BusinessmenService extends ServiceBase {
constructor() {
super();
}
async info(params) {
let rs = await this.callms("order", "queryObusinessmen", params);
this.transField([rs.data]);
return rs;
}
async allPage(params) {
let rs = await this.callms("order", "businessmenPage", params);
......@@ -80,6 +85,9 @@ class BusinessmenService extends ServiceBase {
}
for (var row of rows) {
if(!row) {
continue;
}
row.costRate = system.f2y(row.costRate);
row.taxRate = system.f2y(row.taxRate);
row.serviceRate = system.f2y(row.serviceRate);
......
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