wanghaiwu 1 өдөр өмнө
parent
commit
525c989f87

+ 2 - 1
code/jyyy/nckd-jimin-jyyy-bd/src/main/java/nckd/jimin/jyyy/bd/plugin/msg/ecology/ChangeMessageStatePlugin.java

@@ -293,10 +293,11 @@ public class ChangeMessageStatePlugin implements IEventServicePlugin {
             return null;
         }
 
+
         String content = StringUtils.isEmpty(info.getString("content")) ?
                                 info.getString("content_summary") : info.getString("content");
         if(content == null){
-            content = "";
+            content = info.getString("title") == null ? "" : info.getString("title");
         }
 
         //发送人员

+ 10 - 2
code/jyyy/nckd-jimin-jyyy-bd/src/main/java/nckd/jimin/jyyy/bd/plugin/msg/ecology/FanweiCommonUtil.java

@@ -631,7 +631,12 @@ public final class FanweiCommonUtil {
         Long userId = Long.valueOf(params.get("userId"));
         String isremark = params.get("isremark").toString();
         String viewtype = params.get("viewtype").toString();
-        String content = info.getContent() == null ? "" : info.getContent();
+        String content = info.getContent() == null ? info.getTitle() : info.getContent();
+
+        if(content == null){
+            content = info.getMessageTitle() == null ? "" : info.getMessageTitle().getLocaleValue_zh_CN();
+        }
+
 
         //发送人员
         Long createUserId = 0L;
@@ -642,7 +647,10 @@ public final class FanweiCommonUtil {
         DynamicObject createUser = BusinessDataServiceHelper.loadSingleFromCache(createUserId, "bos_user");
         String creator = createUser == null ? "" : createUser.getString("number");
 
-        String requestname = info.getTitle() + ", 发送人:" + creator + ", " + content;
+//        String requestname = info.getTitle() + ", 发送人:" + creator + ", " + content;
+
+        String requestname = content;
+
         String nodename = info.getOperation() == null ? "circulation" : info.getOperation();
         String workflowname = "费控人力审批流";
         String workflowcode = "nobill";