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
ebc1c880
Commit
ebc1c880
authored
Dec 13, 2019
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
5159d87e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
bpo-stat/app/base/controller/impl/all/merchantCtl.js
+0
-2
bpo-stat/app/base/db/models/auth/user.js
+3
-4
bpo-stat/app/base/service/impl/all/merchantSve.js
+4
-4
No files found.
bpo-stat/app/base/controller/impl/all/merchantCtl.js
View file @
ebc1c880
...
...
@@ -4,12 +4,10 @@ const CtlBase = require("../../ctl.base");
class
MerchantCtl
extends
CtlBase
{
constructor
()
{
super
(
"all"
,
CtlBase
.
getServiceName
(
MerchantCtl
));
this
.
body
=
"智薪云公司1"
;
}
async
allList
(
qobj
){
var
params
=
qobj
.
search
||
{};
params
.
sign_body
=
this
.
body
;
this
.
doTimeCondition
(
params
,
[
"signBegin"
,
"signEnd"
]);
try
{
var
page
=
await
this
.
service
.
signPage
(
params
);
...
...
bpo-stat/app/base/db/models/auth/user.js
View file @
ebc1c880
...
...
@@ -5,10 +5,9 @@ module.exports = (db, DataTypes) => {
return
db
.
define
(
"user"
,
{
userName
:
DataTypes
.
STRING
,
password
:
DataTypes
.
STRING
,
mobile
:
DataTypes
.
INTEGER
,
nickName
:
DataTypes
.
INTEGER
,
mobile
:
DataTypes
.
INTEGER
,
mobile
:
DataTypes
.
INTEGER
,
nickName
:
DataTypes
.
STRING
,
mobile
:
DataTypes
.
STRING
,
sign_body
:
DataTypes
.
STRING
,
isAdmin
:
{
type
:
DataTypes
.
BOOLEAN
,
defaultValue
:
false
...
...
bpo-stat/app/base/service/impl/all/merchantSve.js
View file @
ebc1c880
...
...
@@ -8,7 +8,7 @@ class MerchantService extends ServiceBase {
}
async
signPage
(
params
)
{
var
currentPage
=
Number
(
params
.
currentPage
||
0
);
var
currentPage
=
Number
(
params
.
currentPage
||
1
);
var
pageSize
=
Number
(
params
.
pageSize
||
10
);
var
where
=
{};
...
...
@@ -17,9 +17,9 @@ class MerchantService extends ServiceBase {
[
this
.
db
.
Op
.
like
]:
"%"
+
params
.
company_name
+
"%"
};
}
where
.
sign_body
=
{
[
this
.
db
.
Op
.
eq
]:
params
.
sign_body
}
;
if
(
params
.
sign_body
)
{
where
.
sign_body
=
params
.
sign_body
}
this
.
addWhereTime
(
where
,
'begin_time'
,
params
.
signBegin
,
params
.
signEnd
,
true
);
var
orderby
=
[
[
"id"
,
'desc'
]
...
...
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