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
4c48824b
Commit
4c48824b
authored
Apr 09, 2020
by
zhaoxiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
1292d3ce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
4 deletions
+29
-4
xggsve-invoice/app/base/api/impl/op/action.js
+5
-2
xggsve-invoice/app/base/db/impl/invoice/saasinvoiceDao.js
+3
-1
xggsve-invoice/app/base/service/impl/invoice/saasinvoiceSve.js
+21
-1
No files found.
xggsve-invoice/app/base/api/impl/op/action.js
View file @
4c48824b
...
...
@@ -56,8 +56,11 @@ class ActionAPI extends APIBase {
case
"uploadDetail"
:
// 查询发票详细信息
opResult
=
await
this
.
iinvoiceSve
.
uploadDetailSve
(
action_body
);
break
;
case
"saasinvoicePage"
:
//发票列表
opResult
=
await
this
.
saasinvoiceSve
.
saasinvoicePage
(
action_body
);
case
"merchantinvoicePage"
:
//发票列表(商户)
opResult
=
await
this
.
saasinvoiceSve
.
merchantinvoicePage
(
action_body
);
break
;
case
"platforminvoicePage"
:
//发票列表(商户)
opResult
=
await
this
.
saasinvoiceSve
.
merchantinvoicePage
(
action_body
);
break
;
...
...
xggsve-invoice/app/base/db/impl/invoice/saasinvoiceDao.js
View file @
4c48824b
...
...
@@ -32,7 +32,9 @@ class SaasinvoiceDao extends Dao {
}
setCondition
(
params
,
sql
)
{
sql
.
push
(
"AND t1.`saas_merchant_id` = :saas_merchant_id"
);
if
(
params
.
saas_merchant_id
){
sql
.
push
(
"AND t1.`saas_merchant_id` = :saas_merchant_id"
);
}
if
(
params
.
apply_no
)
{
sql
.
push
(
"AND t1.`apply_no` = :apply_no"
);
}
...
...
xggsve-invoice/app/base/service/impl/invoice/saasinvoiceSve.js
View file @
4c48824b
...
...
@@ -12,7 +12,27 @@ class SaasinvoiceService extends ServiceBase {
}
async
saasinvoicePage
(
params
)
{
async
merchantinvoicePage
(
params
)
{
params
.
currentPage
=
Number
(
params
.
currentPage
||
1
);
params
.
pageSize
=
Number
(
params
.
pageSize
||
10
);
params
.
startRow
=
Number
((
params
.
currentPage
-
1
)
*
params
.
pageSize
);
let
total
=
await
this
.
dao
.
countByParams
(
params
);
if
(
total
==
0
)
{
return
system
.
getResult
({
count
:
0
,
rows
:
[]});
}
let
list
=
await
this
.
dao
.
pageByParams
(
params
);
if
(
list
)
{
for
(
var
item
of
list
)
{
this
.
handleDate
(
item
,
[
'updated_at'
,
'created_at'
],
'YYYY-MM-DD HH:mm:ss'
);
this
.
handleDate
(
item
,
[
'invoice_time'
],
'YYYY-MM-DD'
);
}
}
return
system
.
getResultSuccess
({
count
:
total
,
rows
:
list
});
}
async
platforminvoicePage
(
params
)
{
params
.
currentPage
=
Number
(
params
.
currentPage
||
1
);
params
.
pageSize
=
Number
(
params
.
pageSize
||
10
);
params
.
startRow
=
Number
((
params
.
currentPage
-
1
)
*
params
.
pageSize
);
...
...
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