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
35f235c4
Commit
35f235c4
authored
Nov 12, 2021
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6a5d5649
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
zhiquanquan/app/base/controller/impl/trademark/trademarkCtl.js
+17
-13
No files found.
zhiquanquan/app/base/controller/impl/trademark/trademarkCtl.js
View file @
35f235c4
...
...
@@ -363,22 +363,26 @@ class TrademarkCtl extends CtlBase {
async
notify
(
p
,
q
,
req
)
{
console
.
log
(
"=====================>接受队列消息"
,
p
);
let
upload_id
=
p
.
actionBody
.
messageBody
.
upload_id
;
if
(
upload_id
)
{
//excel上传人物更新任务数据
let
upload
=
await
this
.
uploadSve
.
findOne
({
id
:
upload_id
});
upload
.
success
+=
p
.
actionBody
.
resultInfo
.
data
.
successCount
||
0
;
upload
.
fail
+=
p
.
actionBody
.
resultInfo
.
data
.
failCount
||
0
;
if
(
upload
.
total
<=
upload
.
success
+
upload
.
fail
)
upload
.
status
=
1
;
await
upload
.
save
();
}
this
.
service
.
db
.
transaction
(
async
(
t
)
=>
{
if
(
upload_id
)
{
//excel上传人物更新任务数据
let
upload
=
await
this
.
service
.
db
.
models
.
upload
.
findOne
({
where
:
{
id
:
upload_id
},
lock
:
t
.
LOCK
.
UPDATE
,
transaction
:
t
});
upload
.
success
+=
p
.
actionBody
.
resultInfo
.
data
.
successCount
||
0
;
upload
.
fail
+=
p
.
actionBody
.
resultInfo
.
data
.
failCount
||
0
;
if
(
upload
.
total
<=
upload
.
success
+
upload
.
fail
)
upload
.
status
=
1
;
await
upload
.
save
({
transaction
:
t
});
}
})
let
tradedb
=
p
.
actionBody
.
resultInfo
.
data
.
tm
;
tradedb
.
map
(
async
db
=>
{
await
this
.
service
.
dao
.
model
.
update
({
tradedb
.
map
(
db
=>
{
this
.
service
.
dao
.
model
.
update
({
trademark_id
:
db
.
id
,
tm_code
:
db
.
code
},
{
where
:
{
tm_code
:
db
.
code
}});
},
{
where
:
{
tm_code
:
db
.
code
}})
.
catch
(
e
=>
{})
;
});
return
{
status
:
1
,
...
...
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