|
@@ -25,9 +25,11 @@ import com.uas.sso.util.AccountUtils;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.StringUtils;
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -47,6 +49,8 @@ public class EnterpriseServiceImpl implements EnterpriseService{
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private StoreInDao storeInDao;
|
|
private StoreInDao storeInDao;
|
|
|
|
|
|
|
|
|
|
+ @Resource(name = "v2.EnterpriseService")
|
|
|
|
|
+ private com.uas.platform.b2c.common.account.v2.service.EnterpriseService v2EnterpriserService;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public Enterprise getEnterpriseInfo(Long uu) {
|
|
public Enterprise getEnterpriseInfo(Long uu) {
|
|
@@ -257,10 +261,12 @@ public class EnterpriseServiceImpl implements EnterpriseService{
|
|
|
String userSpa = data.toJSONString();
|
|
String userSpa = data.toJSONString();
|
|
|
// 调用账户中心的接口注册企业
|
|
// 调用账户中心的接口注册企业
|
|
|
detail = AccountUtils.register(detail, userView);
|
|
detail = AccountUtils.register(detail, userView);
|
|
|
|
|
+ v2EnterpriserService.update(detail);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
return new ResultMap(CodeType.SYSTEM_ERROR, e.getMessage());
|
|
return new ResultMap(CodeType.SYSTEM_ERROR, e.getMessage());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
// 将新注册的企业UU号返回
|
|
// 将新注册的企业UU号返回
|
|
|
Map<String, Object> result = new HashMap<String, Object>();
|
|
Map<String, Object> result = new HashMap<String, Object>();
|
|
|
result.put("enuu", detail.getSpaceUU());
|
|
result.put("enuu", detail.getSpaceUU());
|