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
e21d8faf
Commit
e21d8faf
authored
Jan 13, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
3bad1f9d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
2 deletions
+53
-2
xggsve-order/app/base/api/impl/op/action.js
+0
-0
xggsve-order/app/base/db/models/order/obusinessmen.js
+2
-0
xggsve-order/app/base/db/models/order/oorder.js
+2
-2
xggsve-order/app/base/service/impl/order/obusinessmenSve.js
+49
-0
No files found.
xggsve-order/app/base/api/impl/op/action.js
View file @
e21d8faf
This diff is collapsed.
Click to expand it.
xggsve-order/app/base/db/models/order/obusinessmen.js
View file @
e21d8faf
...
...
@@ -49,6 +49,8 @@ module.exports = function (db, DataTypes) {
sign_notes
:
{
type
:
DataTypes
.
STRING
,
field
:
'sign_notes'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'签约备注'
},
sign_time
:
{
type
:
DataTypes
.
DATE
,
field
:
'sign_time'
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
'签约时间'
},
is_create_account
:
{
type
:
DataTypes
.
BOOLEAN
,
field
:
'is_create_account'
,
allowNull
:
true
,
defaultValue
:
false
,
comment
:
'是否建帐'
},
bd_id
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'bd_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员id'
},
bd_path
:
{
type
:
DataTypes
.
STRING
,
field
:
'bd_path'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员权限路径'
},
created_at
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated_at
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted_at
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
...
...
xggsve-order/app/base/db/models/order/oorder.js
View file @
e21d8faf
...
...
@@ -15,8 +15,8 @@ module.exports = function (db, DataTypes) {
assign_user_id
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'assign_user_id'
,
allowNull
:
true
,
defaultValue
:
'0'
,
comment
:
'分配人id'
},
deliver_id
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商id common微服务下'
},
desc
:
{
type
:
DataTypes
.
STRING
,
field
:
'desc'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'订单信息'
},
bd_id
:
{
type
:
DataTypes
.
STRING
,
field
:
'bd_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员id'
},
bd_path
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'bd_path'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员权限路径'
},
bd_id
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'bd_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员id'
},
bd_path
:
{
type
:
DataTypes
.
STRING
,
field
:
'bd_path'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员权限路径'
},
service_items
:
{
type
:
DataTypes
.
STRING
,
field
:
'service_items'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'服务项json'
},
service_remark
:
{
type
:
DataTypes
.
STRING
,
field
:
'service_remark'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'服务信息备注'
},
source_id
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'source_id'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'来源id'
},
...
...
xggsve-order/app/base/service/impl/order/obusinessmenSve.js
View file @
e21d8faf
...
...
@@ -23,6 +23,54 @@ class ObusinessmenService extends ServiceBase {
}
}
async
businessmenPage
(
params
)
{
let
currentPage
=
Number
(
params
.
currentPage
||
1
);
let
pageSize
=
Number
(
params
.
pageSize
||
10
);
let
bd_id
=
this
.
trim
(
params
.
bd_id
);
let
bd_path
=
this
.
trim
(
params
.
bd_path
);
let
bdPath
=
this
.
trim
(
params
.
bdPath
);
let
ostatuses
=
params
.
ostatuses
;
var
where
=
{};
var
orderby
=
[
[
"id"
,
'desc'
]
];
if
(
bdId
)
{
where
.
merchant_id
=
bdId
;
}
if
(
bdPath
&&
bdPath
.
length
>
0
)
{
where
.
id
=
{
[
this
.
db
.
Op
.
like
]:
bdPath
+
"%"
}
}
if
(
userId
)
{
where
.
userId
=
userId
;
}
if
(
ostatuses
&&
ostatuses
.
length
>
0
)
{
where
.
ostatus
=
{
[
this
.
db
.
Op
.
in
]:
ostatuses
}
}
this
.
addWhereTime
(
where
,
'created_at'
,
params
.
createdBegin
,
params
.
createdEnd
);
var
page
=
await
this
.
getPageList
(
currentPage
,
pageSize
,
where
,
orderby
,
null
);
if
(
page
&&
page
.
rows
)
{
for
(
var
row
of
page
.
rows
)
{
await
this
.
dao
.
setRowCodeName
(
row
,
"status"
);
await
this
.
dao
.
setRowCodeName
(
row
,
"ostatus"
);
await
this
.
dao
.
setRowCodeName
(
row
,
"deliverType"
);
this
.
handleDate
(
row
,
[
"created_at"
,
"assignTime"
],
null
,
-
8
);
}
}
return
system
.
getResultSuccess
(
page
);
}
}
module
.
exports
=
ObusinessmenService
;
\ No newline at end of file
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