Commit ce77c6c9 authored by 竹天卫's avatar 竹天卫

111

parent bc48fae4
...@@ -184,7 +184,6 @@ public class CommonServiceImpl { ...@@ -184,7 +184,6 @@ public class CommonServiceImpl {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("name",entry.getKey()); jsonObject.put("name",entry.getKey());
jsonObject.put("value",entry.getValue()); jsonObject.put("value",entry.getValue());
jsonObject.put("retain",entry.getValue());
jsonArray.add(jsonObject); jsonArray.add(jsonObject);
} }
//如果包含滴定度,直接更新检测组配置的校核元素值,下次校核直接带过来 //如果包含滴定度,直接更新检测组配置的校核元素值,下次校核直接带过来
...@@ -196,7 +195,7 @@ public class CommonServiceImpl { ...@@ -196,7 +195,7 @@ public class CommonServiceImpl {
//输入的值 根据检测组中的输入值位数进行放入,用于前端展示 //输入的值 根据检测组中的输入值位数进行放入,用于前端展示
if(jsonArray != null && jsonArray.size()>0){ if(jsonArray != null && jsonArray.size()>0){
for(int j=0;j<jsonArray.size();j++){ for(int j=0;j<jsonArray.size();j++){
JSONObject jsonObjectInput = jsonArray.getJSONObject(i); JSONObject jsonObjectInput = jsonArray.getJSONObject(j);
if(jsonObjectInput.get("name").equals(jsonObjectGroup.get("name"))){ if(jsonObjectInput.get("name").equals(jsonObjectGroup.get("name"))){
jsonObjectInput.put("retain",jsonObjectGroup.getString("retain")); jsonObjectInput.put("retain",jsonObjectGroup.getString("retain"));
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment