Commit 9f0b91a1 by linboxuan

update getResultFail msg

parent 7ffdf05b
......@@ -213,10 +213,10 @@ class TrademarktransactionService extends ServiceBase {
*/
async tmBatchUpload(pobj, actionbody) {
if (!pobj || !actionbody) {
return system.getResultFail(-101, "参数错误");
return system.getResultFail(-101, "actionBody is empty");
}
if (!actionbody.tm) {
return system.getResultFail(-102, "请检查商标数据");
return system.getResultFail(-102, "actionBody.tm is empty");
}
// console.log("-------------------------")
// console.log(actionbody.tm)
......@@ -359,7 +359,7 @@ class TrademarktransactionService extends ServiceBase {
*/
async tmInfo(pobj, actionBody) {
if (!pobj || !pobj.actionBody) {
return system.getResultFail(-103, "参数错误");
return system.getResultFail(-103, "actionBody is empty");
}
var ab = pobj.actionBody;
// 2020 0914 lin 修改 channle_coode为非必填
......@@ -489,7 +489,7 @@ class TrademarktransactionService extends ServiceBase {
*/
async tmDetail(pobj, actionBody) {
if (!actionBody.tmId) {
return system.getResultFail(-105, "标源id为空");
return system.getResultFail(-105, "actionBody.tmId is empty");
}
var tmDetail = await this.dao.findById(actionBody.tmId);
return system.getResultSuccess(tmDetail);
......@@ -559,10 +559,10 @@ class TrademarktransactionService extends ServiceBase {
*/
async tmStatusUpdate(pobj, actionBody) {
if (!pobj || !pobj.actionBody || !pobj.actionBody.tm) {
return system.getResultFail(-103, "参数错误");
return system.getResultFail(-103, "actionBody is empty");
}
if(actionBody.tm.length == 0) {
return system.getResultFail(-110, "标源为空");
return system.getResultFail(-110, "actionBody.tm is empty");
}
switch (actionBody.status) {
// 如果下架 全部下架
......@@ -660,7 +660,7 @@ class TrademarktransactionService extends ServiceBase {
*/
async tmInfoUpdate(pobj, actionBody) {
if (!pobj || !pobj.actionBody) {
return system.getResultFail(-106, "参数错误");
return system.getResultFail(-106, "actionBody is empty");
}
var res = await this.dao.update(actionBody)
return system.getResultSuccess(res);
......@@ -690,7 +690,7 @@ class TrademarktransactionService extends ServiceBase {
*/
async tmTrademarkTypeUpdate(pobj, actionBody) {
if (!pobj || !pobj.actionBody) {
return system.getResultFail(-106, "参数错误");
return system.getResultFail(-106, "actionBody is empty");
}
var res = [];
for(var i = 0;i < actionBody.length;i++) {
......@@ -716,7 +716,7 @@ class TrademarktransactionService extends ServiceBase {
*/
async tmInfoDelete(pobj, actionBody) {
if (!pobj || !pobj.actionBody) {
return system.getResultFail(-106, "参数错误");
return system.getResultFail(-106, "actionBody is empty");
}
var res = this.dao.delete(actionBody)
return system.getResultSuccess(res);
......@@ -916,7 +916,7 @@ class TrademarktransactionService extends ServiceBase {
async tmStatusCheck(pobj, actionBody) {
if (!pobj || !pobj.actionBody) {
return system.getResultFail(-103, "参数错误");
return system.getResultFail(-103, "actionBody is empty");
}
var tmInfo = await this.dao.model.findOne({
where: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment