java110
2021-09-04 576c52d8d8e6fb1e738380cc5fc101a6a2b0b3a8
service-job/src/main/java/com/java110/job/adapt/hcIot/community/AddCommunityToIotAdapt.java
old mode 100644 new mode 100755
@@ -54,7 +54,7 @@
     * @param businesses 所有业务信息
     */
    @Override
    public void execute(Business business, List<Business> businesses) {
    public void execute(Business business, List<Business> businesses) throws Exception{
        JSONObject data = business.getData();
        if (data.containsKey(CommunityPo.class.getSimpleName())) {
            Object bObj = data.get(CommunityPo.class.getSimpleName());
@@ -80,7 +80,7 @@
     * @param business
     * @param businessCommunity
     */
    private void doAddCommunity(Business business, JSONObject businessCommunity) {
    private void doAddCommunity(Business business, JSONObject businessCommunity) throws Exception{
        CommunityPo communityPo = BeanConvertUtil.covertBean(businessCommunity, CommunityPo.class);
        JSONObject postParameters = new JSONObject();
        postParameters.put("name", communityPo.getName());