管理办法代码问题修复

This commit is contained in:
yujh_java 2025-10-28 13:33:31 +08:00
parent a565b16fa8
commit 8c5aad4aa5

View File

@ -3155,8 +3155,11 @@ public class OutputWordUtil {
public static void mergeMRWord(String filePath, String uuid,JSONObject dataMap) {
Map<String, JSONObject> stringJSONObjectMap = PALRepositoryQueryAPIManager.queryRepositoryAttributeById(uuid);
JSONObject attrJson = stringJSONObjectMap.get("management_requirements_Location");
if(null == attrJson){
return;
}
String text = attrJson.getString("text");
if ("不显示管理要求".equals(text)) {
if ("不显示管理要求".equals(text) || UtilString.isEmpty(text)) {
return;
}
BO mrBO = SDK.getBOAPI().getByKeyField("BO_EU_PROCESS_MR", "FILEUUID", uuid);