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
d344d995
Commit
d344d995
authored
Dec 10, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
5b6a02a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
igirl-channel/app/base/api/impl/action/tmOrder.js
+1
-1
igirl-channel/app/base/service/impl/dborder/ordertmproductSve.js
+8
-3
No files found.
igirl-channel/app/base/api/impl/action/tmOrder.js
View file @
d344d995
...
...
@@ -136,7 +136,7 @@ class TmOrderAPI extends APIBase {
}
break
;
case
"getTmOrderList"
:
//商标交付列表
opResult
=
await
this
.
ordertmproductSve
.
getTmOrderList
(
action_body
,
req
);
opResult
=
await
this
.
ordertmproductSve
.
getTmOrderList
(
action_body
,
pobj
,
req
);
break
;
case
"getTmOrderInfo"
:
//商标交付信息
opResult
=
await
this
.
ordertmproductSve
.
getTmOrder
(
action_body
);
...
...
igirl-channel/app/base/service/impl/dborder/ordertmproductSve.js
View file @
d344d995
...
...
@@ -538,7 +538,7 @@ class OrderTmProductService extends ServiceBase {
* 商标交付列表
* @param {*} params 格式:{channelServiceNo:XX, app:{ appId:XX}}
*/
async
getTmOrderList
(
params
,
req
)
{
//商标交付列表
async
getTmOrderList
(
params
,
pobj
,
req
)
{
//商标交付列表
var
pageSize
=
Number
(
params
.
pageSize
||
20
);
var
pageInde
=
Number
(
params
.
pageInde
||
1
);
var
from
=
pageInde
==
1
?
0
:
Number
((
pageInde
-
1
)
*
pageSize
);
...
...
@@ -553,6 +553,11 @@ class OrderTmProductService extends ServiceBase {
var
sqlCount
=
"SELECT count(1) as dataCount FROM `b_order_tm_product` AS tm LEFT JOIN `b_order` AS o ON tm.`sourceOrderNo`=o.`orderNo` LEFT JOIN"
+
" `b_customerinfo` AS c ON tm.`deliveryOrderNo`=c.`deliveryOrderNo` where tm.deleted_at is null "
;
var
paramWhere
=
{};
if
([
"1688"
,
"jd"
].
indexOf
(
pobj
.
actionProcess
)
>=
0
)
{
sql
+=
" and o.orderPayStatus=:orderPayStatus"
;
sqlCount
+=
" and o.orderPayStatus=:orderPayStatus"
;;
paramWhere
.
orderPayStatus
=
"yfk"
;
}
if
(
req
.
user
)
{
sql
+=
" and tm.createuser_id=:createuser_id"
;
sqlCount
+=
" and tm.createuser_id=:createuser_id"
;
...
...
@@ -902,7 +907,7 @@ class OrderTmProductService extends ServiceBase {
// where: { id: beforeOtp.id },
// raw: true
// });
orderTm
=
orderProductObj
;
orderTm
=
orderProductObj
;
}
else
{
//创建服务单
orderTm
=
await
self
.
dao
.
create
(
orderProductObj
,
t
);
//创建商标订单
}
...
...
@@ -947,7 +952,7 @@ class OrderTmProductService extends ServiceBase {
nclSmallPrice
=
Number
(
nclSmallPrice
.
toFixed
(
2
));
var
self
=
this
;
var
returnTm
=
[];
await
this
.
trademarkDao
.
bulkDeleteByWhere
({
where
:
{
deliveryOrderNo
:
orderTm
.
deliveryOrderNo
}
},
t
);
await
this
.
trademarkDao
.
bulkDeleteByWhere
({
where
:
{
deliveryOrderNo
:
orderTm
.
deliveryOrderNo
}
},
t
);
for
(
var
i
=
0
;
i
<
nclones
.
length
;
i
++
)
{
var
tbcode
=
await
self
.
getBusUid
(
"tb"
);
var
nclone
=
nclones
[
i
];
...
...
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