Explorar o código

Merge branch 'dev' of demon/patient-co-management into dev

lyr %!s(int64=8) %!d(string=hai) anos
pai
achega
7bc42e6f04

+ 2 - 2
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/record/InspectionService.java

@ -60,14 +60,14 @@ public class InspectionService extends BaseService {
        JSONArray check = getChecking(strSSID, startNum, endNum);
        JSONArray check = getChecking(strSSID, startNum, endNum);
        if (!check.isNull(0)) {
        if (!check.isNull(0)) {
            JSONObject jsonObject = check.getJSONObject(0);
            JSONObject jsonObject = check.getJSONObject(0);
            if (!StringUtils.isEmpty(jsonObject.get("error"))) {
            if (jsonObject.has("error")) {
                return jsonObject.get("error").toString();
                return jsonObject.get("error").toString();
            }
            }
        }
        }
        JSONArray inspect = getInspection(strSSID, startNum, endNum);
        JSONArray inspect = getInspection(strSSID, startNum, endNum);
        if (!inspect.isNull(0)) {
        if (!inspect.isNull(0)) {
            JSONObject jsonObject = inspect.getJSONObject(0);
            JSONObject jsonObject = inspect.getJSONObject(0);
            if (!StringUtils.isEmpty(jsonObject.get("error"))) {
            if (jsonObject.has("error")) {
                return jsonObject.get("error").toString();
                return jsonObject.get("error").toString();
            }
            }
        }
        }

+ 2 - 2
patient-co-wlyy/src/main/java/com/yihu/wlyy/util/XMLUtil.java

@ -585,7 +585,7 @@ public class XMLUtil {
                    for (Element element : elements2) {
                    for (Element element : elements2) {
                        Map<String, Object> tempMap1 = new HashMap<String, Object>();
                        Map<String, Object> tempMap1 = new HashMap<String, Object>();
                        ele2map(tempMap1, element);
                        ele2map(tempMap1, element);
                        setAttributes(tempMap1,element);
                        setAttributes(tempMap1,element);//属性值设置
                        list.add(tempMap1);
                        list.add(tempMap1);
                    }
                    }
@ -594,7 +594,7 @@ public class XMLUtil {
                    // 同名的数量不大于1则直接递归去
                    // 同名的数量不大于1则直接递归去
                    Map<String, Object> tempMap1 = new HashMap<String, Object>();
                    Map<String, Object> tempMap1 = new HashMap<String, Object>();
                    ele2map(tempMap1, elements2.get(0));
                    ele2map(tempMap1, elements2.get(0));
                    setAttributes(tempMap1,elements2.get(0));
                    setAttributes(tempMap1,elements2.get(0));//属性值设置
                    if (tempMap1.containsKey(string)) {
                    if (tempMap1.containsKey(string)) {
                        map.put(string, tempMap1.get(string));
                        map.put(string, tempMap1.get(string));
                    }else {
                    }else {