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
a41ada32
Commit
a41ada32
authored
Aug 15, 2020
by
DESKTOP-7Q3CA17\86137
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
d95a7899
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
67 deletions
+69
-67
bpo-stat/app/base/controller/impl/all/merchantTransferCtl.js
+3
-10
bpo-stat/app/base/db/models/all/merchanttransfer.js
+48
-45
bpo-stat/app/base/db/models/all/recruit.js
+1
-0
bpo-stat/app/base/service/impl/all/merchantTransferSve.js
+7
-5
bpo-stat/app/base/service/impl/all/recruitSve.js
+3
-0
bpo-stat/app/config/localsettings.js
+7
-7
No files found.
bpo-stat/app/base/controller/impl/all/merchantTransferCtl.js
View file @
a41ada32
...
...
@@ -2,13 +2,12 @@ var system = require("../../../system")
const
CtlBase
=
require
(
"../../ctl.base"
);
//商户信息
class
MerchantTransferCtl
extends
CtlBase
{
constructor
()
{
super
(
"all"
,
CtlBase
.
getServiceName
(
MerchantTransferCtl
));
}
//商户
列表
//商户
转账
async
transferList
(
qobj
)
{
var
params
=
qobj
||
{};
this
.
doTimeCondition
(
params
,
[
"signBegin"
,
"signEnd"
]);
...
...
@@ -20,14 +19,9 @@ class MerchantTransferCtl extends CtlBase {
return
system
.
getErrResult2
(
"您的网络不稳, 请稍后重试"
);
}
}
async
test
(){
var
page
=
await
this
.
service
.
test
();
return
system
.
getResult2
(
page
);
}
}
module
.
exports
=
MerchantTransferCtl
;
\ No newline at end of file
module
.
exports
=
MerchantTransferCtl
;
bpo-stat/app/base/db/models/all/merchanttransfer.js
View file @
a41ada32
/* jshint indent: 2 */
module
.
exports
=
function
(
sequelize
,
DataTypes
)
{
return
sequelize
.
define
(
'merchanttransfer'
,
{
merchant_name
:
DataTypes
.
STRING
,
amt
:
DataTypes
.
STRING
,
transfer_at
:
DataTypes
.
DATE
,
},
{
tableName
:
'merchant_transfer'
,
paranoid
:
true
,
//假的删除
underscored
:
true
,
version
:
false
,
freezeTableName
:
true
,
//freezeTableName: true,
// define the table's name
validate
:
{},
indexes
:
[
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
});
return
sequelize
.
define
(
'merchanttransfer'
,
{
merchant_name
:
DataTypes
.
STRING
,
amt
:
DataTypes
.
STRING
,
transfer_at
:
DataTypes
.
DATE
,
sign_body_id
:
DataTypes
.
INTEGER
,
sign_body
:
DataTypes
.
STRING
,
receipt_url
:
DataTypes
.
STRING
,
},
{
tableName
:
'merchant_transfer'
,
paranoid
:
true
,
//假的删除
underscored
:
true
,
version
:
false
,
freezeTableName
:
true
,
//freezeTableName: true,
// define the table's name
validate
:
{},
indexes
:
[
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
});
};
bpo-stat/app/base/db/models/all/recruit.js
View file @
a41ada32
...
...
@@ -12,6 +12,7 @@ module.exports = function (sequelize, DataTypes) {
work_address
:
DataTypes
.
STRING
,
sign_body_id
:
DataTypes
.
INTEGER
,
sign_body
:
DataTypes
.
STRING
,
status
:
DataTypes
.
INTEGER
,
redundance_1
:
DataTypes
.
STRING
,
redundance_2
:
DataTypes
.
STRING
,
redundance_3
:
DataTypes
.
STRING
,
...
...
bpo-stat/app/base/service/impl/all/merchantTransferSve.js
View file @
a41ada32
...
...
@@ -2,9 +2,7 @@ const system = require("../../../system");
const
ServiceBase
=
require
(
"../../sve.base"
);
const
settings
=
require
(
"../../../../config/settings"
);
/**
* 发票列表
*/
class
MerchantTransferService
extends
ServiceBase
{
constructor
()
{
super
(
"all"
,
ServiceBase
.
getDaoName
(
MerchantTransferService
));
...
...
@@ -21,6 +19,11 @@ class MerchantTransferService extends ServiceBase {
[
this
.
db
.
Op
.
like
]:
"%"
+
params
.
merchant_name
+
"%"
};
}
if
(
params
.
merchant_name
)
{
where
.
merchant_name
=
{
[
this
.
db
.
Op
.
like
]:
"%"
+
params
.
merchant_name
+
"%"
};
}
this
.
addWhereTime
(
where
,
'transfer_at'
,
params
.
signBegin
,
params
.
signEnd
,
true
);
...
...
@@ -38,4 +41,4 @@ class MerchantTransferService extends ServiceBase {
}
}
module
.
exports
=
MerchantTransferService
;
\ No newline at end of file
module
.
exports
=
MerchantTransferService
;
bpo-stat/app/base/service/impl/all/recruitSve.js
View file @
a41ada32
...
...
@@ -20,6 +20,9 @@ class RecruitService extends ServiceBase {
if
(
params
.
sign_body_id
){
where
.
sign_body_id
=
params
.
sign_body_id
;
}
if
(
params
.
status
){
where
.
status
=
params
.
status
;
}
this
.
addWhereTime
(
where
,
'publish_date'
,
params
.
signBegin
,
params
.
signEnd
,
true
);
var
orderby
=
[
[
"id"
,
'desc'
]
...
...
bpo-stat/app/config/localsettings.js
View file @
a41ada32
...
...
@@ -6,19 +6,19 @@ var settings = {
db
:
10
,
},
database
:
{
dbname
:
"
bpo_
stat"
,
user
:
"
write
"
,
password
:
"
write
"
,
dbname
:
"stat"
,
user
:
"
root
"
,
password
:
"
!@#Qaz741
"
,
config
:
{
//
host: 'rm-2ze5muw8tb37i3ig4lo.mysql.rds.aliyuncs.com',
host
:
'rm-2ze5muw8tb37i3ig4lo.mysql.rds.aliyuncs.com'
,
// dbname : "bpo_stat",
// user: "write",
// password: "write",
// config: {
// host: '192.168.18.237',
//
port: 3306,
host
:
'43.247.184.35'
,
port
:
8899
,
port
:
3306
,
//
host: '43.247.184.35',
//
port: 8899,
dialect
:
'mysql'
,
operatorsAliases
:
false
,
pool
:
{
...
...
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