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
1e5e63bd
Commit
1e5e63bd
authored
Jan 18, 2021
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下单钉钉通知
parent
371a084c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
jiaxiya/app/base/service/impl/transfer/tradetransferSve.js
+22
-0
jiaxiya/app/base/utils/dingClient.js
+18
-0
No files found.
jiaxiya/app/base/service/impl/transfer/tradetransferSve.js
View file @
1e5e63bd
...
...
@@ -8,6 +8,7 @@ var moment = require("moment");
class
TradetransferService
extends
ServiceBase
{
constructor
()
{
super
(
"transfer"
,
ServiceBase
.
getDaoName
(
TradetransferService
));
this
.
dingClient
=
system
.
getObject
(
"util.dingClient"
);
}
//订单创建
...
...
@@ -90,6 +91,8 @@ class TradetransferService extends ServiceBase {
}
var
rtn
=
await
this
.
create
(
source
);
if
(
rtn
)
{
let
content
=
`商标有新订单:注册号【
${
obj
.
RegisterNumber
}
】`
;
this
.
dingClient
.
tmNotify
(
content
)
return
{
"status"
:
0
,
"msg"
:
"success"
,
...
...
@@ -510,6 +513,25 @@ class TradetransferService extends ServiceBase {
return
await
self
.
aliclient
(
gobj
);
}
/**
* 买家状态 BuyerStatus
0:"预付款已支付"
1:"用户已取消订单"
2:"服务商已确认订单"
3:"合作方拒绝订单"
10:"合作方已提交转让文件"
11:"用户已支付尾款,已确认资料"
20:"合作方已邮寄转让文件,用户待接收"
21:"用户已邮寄转让资料"
22:"阿里云资料已收到"
23:"审核资料"
30:"递交到商标局"
31:"商标局已接收"
32:"转让失败"
33:"转让成功"
40:"交易成功"
41:"交易失败"
*/
async
uppaymentstatus
()
{
var
selsql
=
"select * from trade_transfer where transfer_status='PROVIDE_MATERIAL' or transfer_status='BUYER_EXPRESS'"
;
var
transferinfos
=
await
this
.
dao
.
customQuery
(
selsql
);
...
...
jiaxiya/app/base/utils/dingClient.js
0 → 100644
View file @
1e5e63bd
const
system
=
require
(
"../system"
);
class
dingClient
{
constructor
()
{
this
.
execClient
=
system
.
getObject
(
'util.execClient'
);
this
.
dingurl
=
"https://oapi.dingtalk.com/robot/send?access_token=ff86b791b66e41380a5e2f108ed95024fcc37002093f97d3ffa8c4df1f336f1a"
}
//推送订单提醒
async
tmNotify
(
content
)
{
let
t
=
new
Date
().
toLocaleString
()
var
rtn
=
await
this
.
execClient
.
execPost
({
"msgtype"
:
"text"
,
"text"
:
{
"content"
:
t
+
content
},
},
this
.
dingurl
);
console
.
log
(
rtn
)
return
rtn
}
}
module
.
exports
=
dingClient
;
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