wuxw
2019-10-17 4ff738f377504fe8f2296df18cf7d0123641cdd9
WebService/src/main/java/com/java110/web/smo/org/impl/AddOrgSMOImpl.java
@@ -2,6 +2,7 @@
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;
@@ -33,7 +34,7 @@
        Assert.hasKeyAndValue(paramIn, "orgName", "必填,请填写组织名称");
        Assert.hasKeyAndValue(paramIn, "orgLevel", "必填,请填写报修人名称");
        Assert.hasKeyAndValue(paramIn, "parentOrgId", "必填,请选择上级ID");
        Assert.hasKeyAndValue(paramIn, "description", "必填,请填写描述");
        //Assert.hasKeyAndValue(paramIn, "description", "必填,请填写描述");
        super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.LIST_ORG);
@@ -43,8 +44,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);