| | |
| | | @Override |
| | | public void execute(Business business, List<Business> businesses) throws Exception{ |
| | | 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); |
| | |
| | | JSONObject businessCommunity = businessCommunitys.getJSONObject(bMachineIndex); |
| | | doAddCommunity(business, businessCommunity); |
| | | } |
| | | }else { |
| | | if (data instanceof JSONObject) { |
| | | businessCommunitys = new JSONArray(); |
| | | businessCommunitys.add(data); |
| | | } |
| | | } |
| | | } |
| | | |