|
@@ -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
|