Commit 95395ff6 by 王昆

gsb

parent ff55dfee
......@@ -5,6 +5,7 @@ var settings = require("../../../../config/settings");
const CtlBase = require("../../ctlms.base");
var cacheBaseComp = null;
class BusinessmenCtl extends CtlBase {
constructor() {
super();
......@@ -14,12 +15,37 @@ class BusinessmenCtl extends CtlBase {
async allPage(pobj, pobj2, req) {
try {
var condition = {
let condition = {
currentPage: pobj.currentPage,
pageSize: pobj.pageSize,
order_id: this.trim(pobj.order_id),
name: this.trim(pobj.name),
legal_name: this.trim(pobj.legal_name),
legal_mobile: this.trim(pobj.legal_mobile),
legal_idcard: this.trim(pobj.legal_idcard),
credit_code: this.trim(pobj.credit_code)
}
return await this.businessmenSve.allPage(condition);
} catch (error) {
console.log(error);
return system.getResultFail(500, "接口异常:" + error.message);
}
}
async myPage(pobj, pobj2, req) {
try {
let condition = {
currentPage: pobj.currentPage,
pageSize: pobj.pageSize,
merchantId: pobj.merchantId,
orderId: this.trim(pobj.orderId),
bstatus: pobj.status,
order_id: this.trim(pobj.order_id),
name: this.trim(pobj.name),
bd_path: this.trim(req.loginUser.orgpath),
legal_name: this.trim(pobj.legal_name),
legal_mobile: this.trim(pobj.legal_mobile),
legal_idcard: this.trim(pobj.legal_idcard),
credit_code: this.trim(pobj.credit_code)
}
return await this.businessmenSve.allPage(condition);
} catch (error) {
......@@ -141,4 +167,5 @@ class BusinessmenCtl extends CtlBase {
// }
// }
}
module.exports = BusinessmenCtl;
\ No newline at end of file
......@@ -147,6 +147,9 @@ class OrderCtl extends CtlBase {
return system.getResult(null, `参数错误 工商官方文件不能为空`);
}
pobj.bd_id = req.loginUser.id;
pobj.bd_path = req.loginUser.orgpath;
try {
return await this.orderSve.handleStatus(pobj);
} catch (error) {
......
......@@ -11,7 +11,6 @@ class BusinessmenService extends ServiceBase {
if (rs.status != 0 || !rs.data || !rs.data.rows) {
return rs;
}
await this.setMerchant(rs.data.rows);
this.transField(rs.data.rows);
return rs;
}
......
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