java110
2022-06-08 bf4bab696aeaaf94b6d95781e7607f17771f3d5c
service-job/src/main/java/com/java110/job/adapt/hcIot/community/DeleteCommunityToIotAdapt.java
@@ -57,9 +57,10 @@
    @Override
    public void execute(Business business, List<Business> businesses) {
        JSONObject data = business.getData();
        JSONArray businessCommunitys = null;
        if (data.containsKey(CommunityPo.class.getSimpleName())) {
            Object bObj = data.get(CommunityPo.class.getSimpleName());
            JSONArray businessCommunitys = null;
            if (bObj instanceof JSONObject) {
                businessCommunitys = new JSONArray();
                businessCommunitys.add(bObj);
@@ -72,6 +73,11 @@
                JSONObject businessCommunity = businessCommunitys.getJSONObject(bMachineIndex);
                doDeleteCommunity(business, businessCommunity);
            }
        }else {
            if (data instanceof JSONObject) {
                businessCommunitys = new JSONArray();
                businessCommunitys.add(data);
            }
        }
    }