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
52d0f93a
Commit
52d0f93a
authored
Nov 08, 2021
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add强制更新
parent
e18206a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
center-tmtransaction/app/base/api/impl/action/trademarktransaction.js
+3
-0
center-tmtransaction/app/base/service/impl/tm/trademarktransactionSve.js
+23
-0
center-tmtransaction/app/base/utils/aliClient.js
+2
-0
No files found.
center-tmtransaction/app/base/api/impl/action/trademarktransaction.js
View file @
52d0f93a
...
@@ -28,6 +28,9 @@ class ProductAPI extends APIBase {
...
@@ -28,6 +28,9 @@ class ProductAPI extends APIBase {
case
"tmInfo"
:
// 2020 0903 lin 新增 标原管理
case
"tmInfo"
:
// 2020 0903 lin 新增 标原管理
opResult
=
await
this
.
trademarkTransactionSve
.
tmInfo
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
trademarkTransactionSve
.
tmInfo
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
case
"forceUpdate"
:
opResult
=
await
this
.
trademarkTransactionSve
.
forceUpdate
(
pobj
,
pobj
.
actionBody
);
break
;
case
"tmListInfo"
:
// 2020 0903 lin 新增 标原管理
case
"tmListInfo"
:
// 2020 0903 lin 新增 标原管理
opResult
=
await
this
.
trademarkTransactionSve
.
tmListInfo
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
trademarkTransactionSve
.
tmListInfo
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
...
...
center-tmtransaction/app/base/service/impl/tm/trademarktransactionSve.js
View file @
52d0f93a
...
@@ -704,6 +704,29 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -704,6 +704,29 @@ class TrademarktransactionService extends ServiceBase {
}
}
}
}
}
}
async
forceUpdate
(
pobj
,
status
)
{
let
item
=
await
this
.
dao
.
model
.
findOne
({
id
:
pobj
.
id
})
item
.
platform_quoted_price
=
pobj
.
price
let
obj
=
buildobj
(
item
,
status
)
if
(
obj
)
{
let
err
=
await
reqbyget
({
action
:
"ForceUploadTrademarkOnsale"
,
reqbody
:
obj
})
if
(
err
){
item
.
fail_reason
=
err
item
.
publish_status
=
"fail"
item
.
publish_status_name
=
"发布失败"
item
.
save
()
return
system
.
getResultError
(
err
)
}
else
{
item
.
publish_status
=
"uppershelf"
item
.
publish_status_name
=
"在售"
item
.
save
()
}
return
system
.
getResultSuccess
()
}
}
/**
/**
* @api {post} /tmtransaction/action/trademarktransaction/springBoard 修改
* @api {post} /tmtransaction/action/trademarktransaction/springBoard 修改
* @apiGroup 标源管理
* @apiGroup 标源管理
...
...
center-tmtransaction/app/base/utils/aliClient.js
View file @
52d0f93a
...
@@ -38,6 +38,8 @@ exports.buildobj=(sqlobj,status)=>{
...
@@ -38,6 +38,8 @@ exports.buildobj=(sqlobj,status)=>{
try
{
try
{
if
(
!
sqlobj
.
tm_ncl_third
||
!
sqlobj
.
tm_group
)
if
(
!
sqlobj
.
tm_ncl_third
||
!
sqlobj
.
tm_group
)
return
null
return
null
if
(
sqlobj
.
ncl_one_code
.
length
===
1
)
sqlobj
.
ncl_one_code
=
"0"
+
sqlobj
.
ncl_one_code
return
{
return
{
"beginTime"
:
1574388139000
,
"beginTime"
:
1574388139000
,
"classificationCode"
:
sqlobj
.
ncl_one_code
,
"classificationCode"
:
sqlobj
.
ncl_one_code
,
...
...
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