Browse Source

表单发送接口

guarantee-lsq 7 months ago
parent
commit
73581e99bb

+ 1 - 11
platform-service/src/main/java/com/platform/service/workflow/impl/WorkflowTaskBomServiceImpl.java

@@ -282,18 +282,8 @@ public class WorkflowTaskBomServiceImpl extends BaseServiceImpl<WorkflowTaskBomM
      * @return
      */
     private String getPrimaryKey(String json,String fieldName){
-        String id = "";
         JSONObject jsonObject = JSONObject.parseObject(json);
-        String components = jsonObject.getString("components");
-        JSONArray array = JSONArray.parseArray(components);
-        for (int i = 0; i < array.size(); i++) {
-            JSONObject jsonItem = array.getJSONObject(i);
-            if(jsonItem.getString("fieldName").equals(fieldName)){
-                id = jsonItem.getString("id");
-                break;
-            }
-        }
-        return id;
+        return jsonObject.getString(fieldName);
     }
 
     @Override