制度模型增加默认附件

This commit is contained in:
zhal 2024-08-29 14:42:29 +08:00
parent 2a08379fa6
commit 4a6c560244
2 changed files with 23 additions and 15 deletions

View File

@ -9176,6 +9176,16 @@ public class CoeProcessLevelWeb extends ActionWeb {
break;
}
}
}else{
for (String key : elements.keySet()) {
JSONObject shape1 = elements.getJSONObject(key);
if ("regulation".equals(shape1.getString("name"))) {
shpId = key;
break;
}
}
}
int lastDotIndex = formFile.getFileName().lastIndexOf(".");
String name = formFile.getFileName().substring(0, lastDotIndex);
@ -9191,8 +9201,6 @@ public class CoeProcessLevelWeb extends ActionWeb {
boolean write = SDK.getDCAPI().write(originfile, dcContextpdf);
System.out.println("write = " + write);
}
ro.put("result", "ok");