Commit 36134080 by liuyang

2024-10-24 文档库变更优化

parent 47e283c8
...@@ -284,7 +284,7 @@ public class ServiceHGWD001 extends ServiceEPBase { ...@@ -284,7 +284,7 @@ public class ServiceHGWD001 extends ServiceEPBase {
strFileName.append("本次上传文件名称:"); strFileName.append("本次上传文件名称:");
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
HGWD001 hgwd001 = HGWDTools.HgWd001.get(inInfo.getCellStr(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGWD001.FIELD_FILE_ID)); HGWD001 hgwd001 = HGWDTools.HgWd001.get(inInfo.getCellStr(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGWD001.FIELD_FILE_ID));
List<HGWD099> hgwd099List = HGWDTools.HgWd099.queryByBiz("WD"); List<HGWD099> hgwd099List = HGWDTools.HgWd099.queryByBiz("WD", hgwd001.getFileId());
for (Map resultRow : resultRows) { for (Map resultRow : resultRows) {
String ndocId = resultRow.get("ndocId").toString(); String ndocId = resultRow.get("ndocId").toString();
List<HGWD099> hgwd099s = hgwd099List.stream().filter(hgwd099 -> hgwd099.getDocId().equals(ndocId)).collect(Collectors.toList()); List<HGWD099> hgwd099s = hgwd099List.stream().filter(hgwd099 -> hgwd099.getDocId().equals(ndocId)).collect(Collectors.toList());
......
...@@ -804,8 +804,13 @@ function uploadFileCallback(data) { ...@@ -804,8 +804,13 @@ function uploadFileCallback(data) {
EiCommunicator.send(serviceName, methodName, inEiInfo, { EiCommunicator.send(serviceName, methodName, inEiInfo, {
onSuccess(response) { onSuccess(response) {
if (response.getStatus() == 1){
NotificationUtil(ei, "error");
}else {
JSColorbox.close(); JSColorbox.close();
resultGrid.dataSource.page(1); resultGrid.dataSource.page(1);
}
}, },
onFail(errorMessage, status, e) { onFail(errorMessage, status, e) {
NotificationUtil("执行失败!", "error"); NotificationUtil("执行失败!", "error");
......
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