| | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.common.constant.AttrCdConstant; |
| | | import com.java110.common.constant.CredentialsConstant; |
| | | import com.java110.common.constant.ServiceConstant; |
| | | import com.java110.common.util.Assert; |
| | | import com.java110.utils.constant.AttrCdConstant; |
| | | import com.java110.utils.constant.CredentialsConstant; |
| | | import com.java110.utils.constant.ServiceConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.web.core.BaseComponentSMO; |
| | | import com.java110.web.smo.ICompanyServiceSMO; |
| | |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.client.RestTemplate; |
| | | import springfox.documentation.spring.web.json.Json; |
| | | |
| | | /** |
| | | * 初始化公司实现类 |
| | |
| | | |
| | | reqJson.put("businessStoreCerdentials",businessStoreCerdentials); |
| | | |
| | | |
| | | |
| | | responseEntity = this.callCenterService(restTemplate,pd,reqJson.toJSONString(), ServiceConstant.SERVICE_API_URL+"/api/save.store.info", HttpMethod.POST); |
| | | |
| | | if(responseEntity.getStatusCode() != HttpStatus.OK){ |
| | | /* if(responseEntity.getStatusCode() != HttpStatus.OK){ |
| | | return responseEntity; |
| | | } |
| | | |
| | | JSONObject resStoreInfo = JSONObject.parseObject(responseEntity.getBody().toString()); |
| | | //将现用户添加为商户管理员 |
| | | JSONObject staffInfo = new JSONObject(); |
| | | staffInfo.put("userId",pd.getUserId()); |
| | | staffInfo.put("storeId",pd.getUserId()); |
| | | |
| | | staffInfo.put("storeId",resStoreInfo.getString("storeId")); |
| | | responseEntity = this.callCenterService(restTemplate,pd,staffInfo.toJSONString(), ServiceConstant.SERVICE_API_URL+"/api/user.staff.add", HttpMethod.POST); |
| | | */ |
| | | |
| | | return responseEntity; |
| | | } |