Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
2ef423b3
Commit
2ef423b3
authored
Dec 07, 2019
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
3095eda2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
xggsve-order/app/base/db/models/business/businessmen.js
+8
-0
xggsve-order/app/base/service/impl/order/iborderSve.js
+6
-4
No files found.
xggsve-order/app/base/db/models/business/businessmen.js
View file @
2ef423b3
...
...
@@ -23,11 +23,15 @@ module.exports = (db, DataTypes) => {
businessScope
:
DataTypes
.
STRING
(
500
),
regDate
:
DataTypes
.
DATE
,
businessImg
:
DataTypes
.
STRING
(
300
),
gongshangFile
:
DataTypes
.
STRING
(
300
),
gongzhang
:
DataTypes
.
STRING
(
300
),
caiwuzhang
:
DataTypes
.
STRING
(
300
),
fapiaozhang
:
DataTypes
.
STRING
(
300
),
hetongzhang
:
DataTypes
.
STRING
(
300
),
farenzhang
:
DataTypes
.
STRING
(
300
),
kezhangFile
:
DataTypes
.
STRING
(
300
),
isBank
:
{
type
:
DataTypes
.
BOOLEAN
,
defaultValue
:
false
...
...
@@ -36,9 +40,13 @@ module.exports = (db, DataTypes) => {
bankNo
:
DataTypes
.
STRING
(
30
),
bank
:
DataTypes
.
STRING
(
100
),
bankImg
:
DataTypes
.
STRING
(
300
),
kaihuFile
:
DataTypes
.
STRING
(
300
),
caImg
:
DataTypes
.
STRING
(
300
),
taxRegDay
:
DataTypes
.
DATE
,
taxOrg
:
DataTypes
.
STRING
(
100
),
shuiwuFile
:
DataTypes
.
STRING
(
100
),
courierNo
:
DataTypes
.
STRING
(
100
),
courierImg
:
DataTypes
.
STRING
(
100
),
contractStartData
:
DataTypes
.
DATE
,
...
...
xggsve-order/app/base/service/impl/order/iborderSve.js
View file @
2ef423b3
...
...
@@ -2,6 +2,7 @@ const system = require("../../../system");
const
ServiceBase
=
require
(
"../../sve.base"
)
const
settings
=
require
(
"../../../../config/settings"
)
const
moment
=
require
(
"moment"
);
class
IborderService
extends
ServiceBase
{
constructor
()
{
super
(
"order"
,
ServiceBase
.
getDaoName
(
IborderService
));
...
...
@@ -120,6 +121,7 @@ class IborderService extends ServiceBase {
return
system
.
getResult
(
null
,
"接口异常"
);
}
}
async
apiCloseById
(
params
)
{
try
{
return
await
this
.
closeById
(
params
);
...
...
@@ -155,6 +157,7 @@ class IborderService extends ServiceBase {
return
system
.
getResult
(
null
,
"接口异常"
);
}
}
async
apiStatBusinessData
(
params
)
{
try
{
return
await
this
.
statBusinessData
(
params
);
...
...
@@ -169,8 +172,6 @@ class IborderService extends ServiceBase {
async
createOrder
(
params
,
t
)
{
// 处理注册订单
let
productType
=
Number
(
params
.
productType
||
1
);
}
...
...
@@ -288,11 +289,11 @@ class IborderService extends ServiceBase {
addStatCount
(
statusMap
,
statuses
)
{
var
count
=
0
;
if
(
!
statuses
)
{
if
(
!
statuses
)
{
return
count
;
}
for
(
var
status
of
statuses
)
{
for
(
var
status
of
statuses
)
{
count
=
count
+
Number
(
statusMap
[
status
]
||
0
);
}
return
count
;
...
...
@@ -779,6 +780,7 @@ class IborderService extends ServiceBase {
return
system
.
getResultSuccess
();
}
}
module
.
exports
=
IborderService
;
// var task=new UserService();
// task.getUserStatisticGroupByApp().then(function(result){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment