pad接口-请领单-请领车提交:返回成功失败提示语
This commit is contained in:
parent
41b3b9f73a
commit
2996cb6844
|
|
@ -311,6 +311,7 @@ public class QingLingServiceImpl implements IQinglingApi {
|
||||||
//请购车未添加物料
|
//请购车未添加物料
|
||||||
if (CollectionUtils.isEmpty(gwcList)) {
|
if (CollectionUtils.isEmpty(gwcList)) {
|
||||||
result.put("status", "empty");
|
result.put("status", "empty");
|
||||||
|
result.put("message", "请选择请领物料");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -326,11 +327,19 @@ public class QingLingServiceImpl implements IQinglingApi {
|
||||||
|
|
||||||
// 过滤disabledWlList,只保留在gwcList中也存在的wlId
|
// 过滤disabledWlList,只保留在gwcList中也存在的wlId
|
||||||
disabledWlList = disabledWlList.stream()
|
disabledWlList = disabledWlList.stream()
|
||||||
|
.filter(item -> item != null && item.getWlId() != null)
|
||||||
.filter(item -> gwcWlIds.contains(item.getWlId()))
|
.filter(item -> gwcWlIds.contains(item.getWlId()))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
if (!CollectionUtils.isEmpty(disabledWlList)) {
|
if (!CollectionUtils.isEmpty(disabledWlList)) {
|
||||||
result.put("status", "exist");
|
result.put("status", "exist");
|
||||||
result.put("existList", disabledWlList);
|
result.put("existList", disabledWlList);
|
||||||
|
|
||||||
|
// 将materialName用顿号拼接
|
||||||
|
String materialNames = disabledWlList.stream()
|
||||||
|
.map(InvoicingQldInfoEntity::getMaterialName)
|
||||||
|
.collect(Collectors.joining("、"));
|
||||||
|
result.put("message", "以下物料请领中,请勿重复请领:" + materialNames);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -419,6 +428,7 @@ public class QingLingServiceImpl implements IQinglingApi {
|
||||||
invoicingQldLogMapper.insert(logData);
|
invoicingQldLogMapper.insert(logData);
|
||||||
|
|
||||||
result.put("status", "success");
|
result.put("status", "success");
|
||||||
|
result.put("message", "提交成功");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue