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
f6e0ba54
Commit
f6e0ba54
authored
Dec 31, 2019
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
c9933661
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
2 deletions
+38
-2
bpo-stat/app/base/db/models/all/transactionin.js
+4
-0
bpo-stat/app/base/service/impl/all/invoiceSve.js
+10
-0
bpo-stat/app/base/service/impl/all/loadSve.js
+3
-1
bpo-stat/app/base/service/impl/all/merchantSve.js
+3
-0
bpo-stat/app/base/service/impl/all/taxinfoSve.js
+7
-0
bpo-stat/app/base/service/impl/all/transactioninSve.js
+11
-1
No files found.
bpo-stat/app/base/db/models/all/transactionin.js
View file @
f6e0ba54
...
...
@@ -8,6 +8,10 @@ module.exports = function(sequelize, DataTypes) {
primaryKey
:
true
,
autoIncrement
:
true
},
invoiceId
:
{
type
:
DataTypes
.
INTEGER
(
11
),
field
:
'invoice_id'
,
},
company_name
:
{
type
:
DataTypes
.
STRING
(
255
),
allowNull
:
true
...
...
bpo-stat/app/base/service/impl/all/invoiceSve.js
View file @
f6e0ba54
...
...
@@ -2,6 +2,9 @@ const system = require("../../../system");
const
ServiceBase
=
require
(
"../../sve.base"
);
const
settings
=
require
(
"../../../../config/settings"
);
/**
* 发票列表
*/
class
InvoiceService
extends
ServiceBase
{
constructor
()
{
super
(
"all"
,
ServiceBase
.
getDaoName
(
InvoiceService
));
...
...
@@ -18,6 +21,10 @@ class InvoiceService extends ServiceBase {
};
}
if
(
params
.
id_no
){
where
.
id_no
=
this
.
trim
(
params
.
id_no
);
}
if
(
params
.
invoiceType
)
{
where
.
invoiceType
=
Number
(
params
.
invoiceType
);
}
...
...
@@ -26,6 +33,9 @@ class InvoiceService extends ServiceBase {
where
.
sign_body
=
params
.
sign_body
;
}
if
(
params
.
invoiceId
)
{
where
.
id
=
this
.
trim
(
params
.
invoiceId
);
}
this
.
addWhereTime
(
where
,
'invoice_time'
,
params
.
signBegin
,
params
.
signEnd
);
var
orderby
=
[
...
...
bpo-stat/app/base/service/impl/all/loadSve.js
View file @
f6e0ba54
const
system
=
require
(
"../../../system"
);
const
ServiceBase
=
require
(
"../../sve.base"
);
const
settings
=
require
(
"../../../../config/settings"
);
/**
* 工作量确认单
*/
class
LoadService
extends
ServiceBase
{
constructor
()
{
super
(
"all"
,
ServiceBase
.
getDaoName
(
LoadService
));
...
...
bpo-stat/app/base/service/impl/all/merchantSve.js
View file @
f6e0ba54
...
...
@@ -31,6 +31,9 @@ class MerchantService extends ServiceBase {
if
(
params
.
sign_body
)
{
where
.
sign_body
=
params
.
sign_body
;
}
if
(
params
.
id_no
){
where
.
id_no
=
params
.
id_no
;
}
this
.
addWhereTime
(
where
,
'begin_time'
,
params
.
signBegin
,
params
.
signEnd
,
true
);
var
orderby
=
[
[
"id"
,
'desc'
]
...
...
bpo-stat/app/base/service/impl/all/taxinfoSve.js
View file @
f6e0ba54
...
...
@@ -12,6 +12,13 @@ class TaxinfoService extends ServiceBase {
var
pageSize
=
Number
(
params
.
pageSize
||
10
);
var
where
=
{};
if
(
params
.
company_name
)
{
where
.
company_name
=
{
[
this
.
db
.
Op
.
like
]:
"%"
+
params
.
company_name
+
"%"
};
}
if
(
params
.
sign_body
){
where
.
sign_body
=
params
.
sign_body
;
}
...
...
bpo-stat/app/base/service/impl/all/transactioninSve.js
View file @
f6e0ba54
const
system
=
require
(
"../../../system"
);
const
ServiceBase
=
require
(
"../../sve.base"
);
const
settings
=
require
(
"../../../../config/settings"
);
/**
* 发薪列表
*/
class
TransactioninService
extends
ServiceBase
{
constructor
()
{
super
(
"all"
,
ServiceBase
.
getDaoName
(
TransactioninService
));
}
/**
* @param {int} invoiceId 发票ID
* @param {*} params
*
*/
async
signPage
(
params
)
{
var
currentPage
=
Number
(
params
.
currentPage
||
0
);
var
pageSize
=
Number
(
params
.
pageSize
||
10
);
...
...
@@ -23,6 +30,9 @@ class TransactioninService extends ServiceBase {
if
(
params
.
id_no
){
where
.
id_no
=
params
.
id_no
}
if
(
params
.
invoiceId
){
where
.
invoiceId
=
this
.
trim
(
params
.
invoiceId
);
}
this
.
addWhereTime
(
where
,
'transaction_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