请领单:各操作节点增加成功返回提示信息
This commit is contained in:
parent
06db4d1739
commit
5fa6c07ed3
|
|
@ -1,6 +1,7 @@
|
|||
package com.nu.modules.pad.invoicing.api;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.nu.entity.*;
|
||||
import com.nu.modules.invoicing.api.IQinglingApi;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
|
@ -270,7 +271,10 @@ public class InvoicingQldApi {
|
|||
}
|
||||
boolean result = qinglingApi.cancellation(dto);
|
||||
if (result) {
|
||||
return Result.OK(qinglingApi.queryQldByQldNo(dto.getQldNo()));
|
||||
Map<String, Object> r_ = Maps.newHashMap();
|
||||
r_.put("result", qinglingApi.queryQldByQldNo(dto.getQldNo()));
|
||||
r_.put("message","作废成功");
|
||||
return Result.OK(r_);
|
||||
} else {
|
||||
return Result.error("作废失败");
|
||||
}
|
||||
|
|
@ -312,7 +316,10 @@ public class InvoicingQldApi {
|
|||
}
|
||||
boolean result = qinglingApi.confirmReceipt(dto);
|
||||
if (result) {
|
||||
return Result.OK(qinglingApi.queryQldByQldNo(dto.getQldNo()));
|
||||
Map<String, Object> r_ = Maps.newHashMap();
|
||||
r_.put("result", qinglingApi.queryQldByQldNo(dto.getQldNo()));
|
||||
r_.put("message","收货成功");
|
||||
return Result.OK(r_);
|
||||
} else {
|
||||
return Result.error("收货失败");
|
||||
}
|
||||
|
|
@ -333,7 +340,10 @@ public class InvoicingQldApi {
|
|||
}
|
||||
boolean result = qinglingApi.orderReturn(dto);
|
||||
if (result) {
|
||||
return Result.OK(qinglingApi.queryQldByQldNo(dto.getQldNo()));
|
||||
Map<String, Object> r_ = Maps.newHashMap();
|
||||
r_.put("result", qinglingApi.queryQldByQldNo(dto.getQldNo()));
|
||||
r_.put("message","回退成功");
|
||||
return Result.OK(r_);
|
||||
} else {
|
||||
return Result.error("回退失败");
|
||||
}
|
||||
|
|
@ -353,7 +363,8 @@ public class InvoicingQldApi {
|
|||
return Result.error("缺少参数");
|
||||
}
|
||||
Map<String, Object> result = qinglingApi.outbound(dto);
|
||||
if("success".equals(result.get("status"))){
|
||||
if ("success".equals(result.get("status"))) {
|
||||
result.put("message","出库成功");
|
||||
result.put("result", qinglingApi.queryQldByQldNo(dto.getQldNo()));
|
||||
}
|
||||
return Result.ok(result);
|
||||
|
|
|
|||
|
|
@ -297,6 +297,7 @@ public class QingLingServiceImpl implements IQinglingApi {
|
|||
invoicingQldMainService.updateById(one);
|
||||
|
||||
result.put("status", "success");
|
||||
result.put("message", "提交成功");
|
||||
result.put("result",ownService.queryQldByQldNo(dto.getQldNo()));
|
||||
return result;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue