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
80a18b79
Commit
80a18b79
authored
Sep 24, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tx-fi-tax' of gitlab.gongsibao.com:jiangyong/zhichan into tx-fi-tax
parents
caf364e7
0ee887ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
tx-fi-tax/app/base/controller/impl/bizchance/deliverybillCtl.js
+4
-1
tx-fi-tax/app/base/db/impl/bizchance/deliverybillDao.js
+8
-2
No files found.
tx-fi-tax/app/base/controller/impl/bizchance/deliverybillCtl.js
View file @
80a18b79
...
@@ -294,10 +294,13 @@ class DeliverybillCtl extends CtlBase {
...
@@ -294,10 +294,13 @@ class DeliverybillCtl extends CtlBase {
pobj
.
taxpayerName
=
"小规模纳税人"
;
pobj
.
taxpayerName
=
"小规模纳税人"
;
}
}
var
obj
=
{
var
obj
=
{
"delivery_code"
:
pobj
.
orderId
+
"_book"
,
//
"delivery_code": pobj.orderId + "_book",
"delivery_info"
:
pobj
,
"delivery_info"
:
pobj
,
"biz_id"
:
pobj
.
bizId
"biz_id"
:
pobj
.
bizId
};
};
if
(
pobj
.
orderId
&&
pobj
.
orderId
!=
'undefined'
){
obj
.
delivery_code
=
pobj
.
orderId
+
"_book"
;
}
const
rs
=
await
this
.
service
.
updateServer
(
obj
);
const
rs
=
await
this
.
service
.
updateServer
(
obj
);
console
.
log
(
"更新融易算服务返回结果--------------------------"
,
JSON
.
stringify
(
rs
));
console
.
log
(
"更新融易算服务返回结果--------------------------"
,
JSON
.
stringify
(
rs
));
if
(
rs
)
{
if
(
rs
)
{
...
...
tx-fi-tax/app/base/db/impl/bizchance/deliverybillDao.js
View file @
80a18b79
...
@@ -137,12 +137,18 @@ class DeliverybillDao extends Dao {
...
@@ -137,12 +137,18 @@ class DeliverybillDao extends Dao {
async
updateServer
(
qobj
,
t
)
{
async
updateServer
(
qobj
,
t
)
{
var
setobj
=
{
"delivery_info"
:
qobj
.
delivery_info
};
var
setobj
=
{
"delivery_info"
:
qobj
.
delivery_info
};
var
whereobj
=
{
"delivery_code"
:
qobj
.
delivery_code
,
"biz_id"
:
qobj
.
biz_id
};
var
whereobj
=
{
"biz_id"
:
qobj
.
biz_id
};
if
(
qobj
.
delivery_code
&&
qobj
.
delivery_code
!=
'undefined'
){
whereobj
.
delivery_code
=
qobj
.
delivery_code
;
}
return
await
this
.
updateByWhere
(
setobj
,
whereobj
,
t
);
return
await
this
.
updateByWhere
(
setobj
,
whereobj
,
t
);
}
}
async
findOneByDeliveryCodeAndBizId
(
qobj
)
{
async
findOneByDeliveryCodeAndBizId
(
qobj
)
{
var
qcwhere
=
{
"delivery_code"
:
qobj
.
delivery_code
,
"biz_id"
:
qobj
.
biz_id
};
var
qcwhere
=
{
"biz_id"
:
qobj
.
biz_id
};
if
(
qobj
.
delivery_code
&&
qobj
.
delivery_code
!=
'undefined'
){
qcwhere
.
delivery_code
=
qobj
.
delivery_code
;
}
return
await
this
.
findOne
(
qcwhere
);
return
await
this
.
findOne
(
qcwhere
);
}
}
/**
/**
...
...
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