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
9f0b91a1
Commit
9f0b91a1
authored
Sep 24, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update getResultFail msg
parent
7ffdf05b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
center-tmtransaction/app/base/service/impl/tm/trademarktransactionSve.js
+10
-10
No files found.
center-tmtransaction/app/base/service/impl/tm/trademarktransactionSve.js
View file @
9f0b91a1
...
@@ -213,10 +213,10 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -213,10 +213,10 @@ class TrademarktransactionService extends ServiceBase {
*/
*/
async
tmBatchUpload
(
pobj
,
actionbody
)
{
async
tmBatchUpload
(
pobj
,
actionbody
)
{
if
(
!
pobj
||
!
actionbody
)
{
if
(
!
pobj
||
!
actionbody
)
{
return
system
.
getResultFail
(
-
101
,
"
参数错误
"
);
return
system
.
getResultFail
(
-
101
,
"
actionBody is empty
"
);
}
}
if
(
!
actionbody
.
tm
)
{
if
(
!
actionbody
.
tm
)
{
return
system
.
getResultFail
(
-
102
,
"
请检查商标数据
"
);
return
system
.
getResultFail
(
-
102
,
"
actionBody.tm is empty
"
);
}
}
// console.log("-------------------------")
// console.log("-------------------------")
// console.log(actionbody.tm)
// console.log(actionbody.tm)
...
@@ -359,7 +359,7 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -359,7 +359,7 @@ class TrademarktransactionService extends ServiceBase {
*/
*/
async
tmInfo
(
pobj
,
actionBody
)
{
async
tmInfo
(
pobj
,
actionBody
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
)
{
return
system
.
getResultFail
(
-
103
,
"
参数错误
"
);
return
system
.
getResultFail
(
-
103
,
"
actionBody is empty
"
);
}
}
var
ab
=
pobj
.
actionBody
;
var
ab
=
pobj
.
actionBody
;
// 2020 0914 lin 修改 channle_coode为非必填
// 2020 0914 lin 修改 channle_coode为非必填
...
@@ -489,7 +489,7 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -489,7 +489,7 @@ class TrademarktransactionService extends ServiceBase {
*/
*/
async
tmDetail
(
pobj
,
actionBody
)
{
async
tmDetail
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
tmId
)
{
if
(
!
actionBody
.
tmId
)
{
return
system
.
getResultFail
(
-
105
,
"
标源id为空
"
);
return
system
.
getResultFail
(
-
105
,
"
actionBody.tmId is empty
"
);
}
}
var
tmDetail
=
await
this
.
dao
.
findById
(
actionBody
.
tmId
);
var
tmDetail
=
await
this
.
dao
.
findById
(
actionBody
.
tmId
);
return
system
.
getResultSuccess
(
tmDetail
);
return
system
.
getResultSuccess
(
tmDetail
);
...
@@ -559,10 +559,10 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -559,10 +559,10 @@ class TrademarktransactionService extends ServiceBase {
*/
*/
async
tmStatusUpdate
(
pobj
,
actionBody
)
{
async
tmStatusUpdate
(
pobj
,
actionBody
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
||
!
pobj
.
actionBody
.
tm
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
||
!
pobj
.
actionBody
.
tm
)
{
return
system
.
getResultFail
(
-
103
,
"
参数错误
"
);
return
system
.
getResultFail
(
-
103
,
"
actionBody is empty
"
);
}
}
if
(
actionBody
.
tm
.
length
==
0
)
{
if
(
actionBody
.
tm
.
length
==
0
)
{
return
system
.
getResultFail
(
-
110
,
"
标源为空
"
);
return
system
.
getResultFail
(
-
110
,
"
actionBody.tm is empty
"
);
}
}
switch
(
actionBody
.
status
)
{
switch
(
actionBody
.
status
)
{
// 如果下架 全部下架
// 如果下架 全部下架
...
@@ -660,7 +660,7 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -660,7 +660,7 @@ class TrademarktransactionService extends ServiceBase {
*/
*/
async
tmInfoUpdate
(
pobj
,
actionBody
)
{
async
tmInfoUpdate
(
pobj
,
actionBody
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
)
{
return
system
.
getResultFail
(
-
106
,
"
参数错误
"
);
return
system
.
getResultFail
(
-
106
,
"
actionBody is empty
"
);
}
}
var
res
=
await
this
.
dao
.
update
(
actionBody
)
var
res
=
await
this
.
dao
.
update
(
actionBody
)
return
system
.
getResultSuccess
(
res
);
return
system
.
getResultSuccess
(
res
);
...
@@ -690,7 +690,7 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -690,7 +690,7 @@ class TrademarktransactionService extends ServiceBase {
*/
*/
async
tmTrademarkTypeUpdate
(
pobj
,
actionBody
)
{
async
tmTrademarkTypeUpdate
(
pobj
,
actionBody
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
)
{
return
system
.
getResultFail
(
-
106
,
"
参数错误
"
);
return
system
.
getResultFail
(
-
106
,
"
actionBody is empty
"
);
}
}
var
res
=
[];
var
res
=
[];
for
(
var
i
=
0
;
i
<
actionBody
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
actionBody
.
length
;
i
++
)
{
...
@@ -716,7 +716,7 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -716,7 +716,7 @@ class TrademarktransactionService extends ServiceBase {
*/
*/
async
tmInfoDelete
(
pobj
,
actionBody
)
{
async
tmInfoDelete
(
pobj
,
actionBody
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
)
{
return
system
.
getResultFail
(
-
106
,
"
参数错误
"
);
return
system
.
getResultFail
(
-
106
,
"
actionBody is empty
"
);
}
}
var
res
=
this
.
dao
.
delete
(
actionBody
)
var
res
=
this
.
dao
.
delete
(
actionBody
)
return
system
.
getResultSuccess
(
res
);
return
system
.
getResultSuccess
(
res
);
...
@@ -916,7 +916,7 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -916,7 +916,7 @@ class TrademarktransactionService extends ServiceBase {
async
tmStatusCheck
(
pobj
,
actionBody
)
{
async
tmStatusCheck
(
pobj
,
actionBody
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
)
{
return
system
.
getResultFail
(
-
103
,
"
参数错误
"
);
return
system
.
getResultFail
(
-
103
,
"
actionBody is empty
"
);
}
}
var
tmInfo
=
await
this
.
dao
.
model
.
findOne
({
var
tmInfo
=
await
this
.
dao
.
model
.
findOne
({
where
:
{
where
:
{
...
...
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