wuxw
2020-01-25 5a89e575ed8f6a2629cd002f0ba1452b8c8e39fe
WebService/src/main/java/com/java110/web/smo/org/impl/AddOrgSMOImpl.java
@@ -2,10 +2,11 @@
import com.alibaba.fastjson.JSONObject;
import com.java110.core.context.IPageData;
import com.java110.entity.component.ComponentValidateResult;
import com.java110.utils.constant.PrivilegeCodeConstant;
import com.java110.utils.constant.ServiceConstant;
import com.java110.utils.util.Assert;
import com.java110.web.core.AbstractComponentSMO;
import com.java110.core.component.AbstractComponentSMO;
import com.java110.web.smo.org.IAddOrgSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
@@ -33,7 +34,8 @@
        Assert.hasKeyAndValue(paramIn, "orgName", "必填,请填写组织名称");
        Assert.hasKeyAndValue(paramIn, "orgLevel", "必填,请填写报修人名称");
        Assert.hasKeyAndValue(paramIn, "parentOrgId", "必填,请选择上级ID");
        Assert.hasKeyAndValue(paramIn, "description", "必填,请填写描述");
        Assert.hasKeyAndValue(paramIn, "belongCommunityId", "必填,请选择隶属小区");
        //Assert.hasKeyAndValue(paramIn, "description", "必填,请填写描述");
        super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.LIST_ORG);
@@ -43,8 +45,9 @@
    @Override
    protected ResponseEntity<String> doBusinessProcess(IPageData pd, JSONObject paramIn) {
        ResponseEntity<String> responseEntity = null;
        super.validateStoreStaffCommunityRelationship(pd, restTemplate);
        ComponentValidateResult result = super.validateStoreStaffCommunityRelationship(pd, restTemplate);
        paramIn.put("storeId", result.getStoreId());
        responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(),
                ServiceConstant.SERVICE_API_URL + "/api/org.saveOrg",
                HttpMethod.POST);