Commit 2ef423b3 by 王昆

gsb

parent 3095eda2
...@@ -23,11 +23,15 @@ module.exports = (db, DataTypes) => { ...@@ -23,11 +23,15 @@ module.exports = (db, DataTypes) => {
businessScope: DataTypes.STRING(500), businessScope: DataTypes.STRING(500),
regDate: DataTypes.DATE, regDate: DataTypes.DATE,
businessImg: DataTypes.STRING(300), businessImg: DataTypes.STRING(300),
gongshangFile: DataTypes.STRING(300),
gongzhang: DataTypes.STRING(300), gongzhang: DataTypes.STRING(300),
caiwuzhang: DataTypes.STRING(300), caiwuzhang: DataTypes.STRING(300),
fapiaozhang: DataTypes.STRING(300), fapiaozhang: DataTypes.STRING(300),
hetongzhang: DataTypes.STRING(300), hetongzhang: DataTypes.STRING(300),
farenzhang: DataTypes.STRING(300), farenzhang: DataTypes.STRING(300),
kezhangFile: DataTypes.STRING(300),
isBank: { isBank: {
type: DataTypes.BOOLEAN, type: DataTypes.BOOLEAN,
defaultValue: false defaultValue: false
...@@ -36,9 +40,13 @@ module.exports = (db, DataTypes) => { ...@@ -36,9 +40,13 @@ module.exports = (db, DataTypes) => {
bankNo: DataTypes.STRING(30), bankNo: DataTypes.STRING(30),
bank: DataTypes.STRING(100), bank: DataTypes.STRING(100),
bankImg: DataTypes.STRING(300), bankImg: DataTypes.STRING(300),
kaihuFile: DataTypes.STRING(300),
caImg: DataTypes.STRING(300), caImg: DataTypes.STRING(300),
taxRegDay: DataTypes.DATE, taxRegDay: DataTypes.DATE,
taxOrg: DataTypes.STRING(100), taxOrg: DataTypes.STRING(100),
shuiwuFile: DataTypes.STRING(100),
courierNo: DataTypes.STRING(100), courierNo: DataTypes.STRING(100),
courierImg: DataTypes.STRING(100), courierImg: DataTypes.STRING(100),
contractStartData: DataTypes.DATE, contractStartData: DataTypes.DATE,
......
...@@ -2,6 +2,7 @@ const system = require("../../../system"); ...@@ -2,6 +2,7 @@ const system = require("../../../system");
const ServiceBase = require("../../sve.base") const ServiceBase = require("../../sve.base")
const settings = require("../../../../config/settings") const settings = require("../../../../config/settings")
const moment = require("moment"); const moment = require("moment");
class IborderService extends ServiceBase { class IborderService extends ServiceBase {
constructor() { constructor() {
super("order", ServiceBase.getDaoName(IborderService)); super("order", ServiceBase.getDaoName(IborderService));
...@@ -120,6 +121,7 @@ class IborderService extends ServiceBase { ...@@ -120,6 +121,7 @@ class IborderService extends ServiceBase {
return system.getResult(null, "接口异常"); return system.getResult(null, "接口异常");
} }
} }
async apiCloseById(params) { async apiCloseById(params) {
try { try {
return await this.closeById(params); return await this.closeById(params);
...@@ -155,6 +157,7 @@ class IborderService extends ServiceBase { ...@@ -155,6 +157,7 @@ class IborderService extends ServiceBase {
return system.getResult(null, "接口异常"); return system.getResult(null, "接口异常");
} }
} }
async apiStatBusinessData(params) { async apiStatBusinessData(params) {
try { try {
return await this.statBusinessData(params); return await this.statBusinessData(params);
...@@ -169,8 +172,6 @@ class IborderService extends ServiceBase { ...@@ -169,8 +172,6 @@ class IborderService extends ServiceBase {
async createOrder(params, t) { async createOrder(params, t) {
// 处理注册订单 // 处理注册订单
let productType = Number(params.productType || 1);
} }
...@@ -288,11 +289,11 @@ class IborderService extends ServiceBase { ...@@ -288,11 +289,11 @@ class IborderService extends ServiceBase {
addStatCount(statusMap, statuses) { addStatCount(statusMap, statuses) {
var count = 0; var count = 0;
if(!statuses) { if (!statuses) {
return count; return count;
} }
for(var status of statuses) { for (var status of statuses) {
count = count + Number(statusMap[status] || 0); count = count + Number(statusMap[status] || 0);
} }
return count; return count;
...@@ -779,6 +780,7 @@ class IborderService extends ServiceBase { ...@@ -779,6 +780,7 @@ class IborderService extends ServiceBase {
return system.getResultSuccess(); return system.getResultSuccess();
} }
} }
module.exports = IborderService; module.exports = IborderService;
// var task=new UserService(); // var task=new UserService();
// task.getUserStatisticGroupByApp().then(function(result){ // task.getUserStatisticGroupByApp().then(function(result){
......
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