|
@@ -131,7 +131,7 @@ public class AccountUtils {
|
|
|
* @param businessCode 营业执照号
|
|
* @param businessCode 营业执照号
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- public List<UserSpaceView> findByBusinessCode(String businessCode) throws Exception {
|
|
|
|
|
|
|
+ public UserSpaceView findByBusinessCode(String businessCode) throws Exception {
|
|
|
String saveUrl = AccountConfig.getSpaceSaveUrl();
|
|
String saveUrl = AccountConfig.getSpaceSaveUrl();
|
|
|
if (!StringUtils.isEmpty(saveUrl)) {
|
|
if (!StringUtils.isEmpty(saveUrl)) {
|
|
|
ModelMap formData = new ModelMap();
|
|
ModelMap formData = new ModelMap();
|
|
@@ -145,7 +145,7 @@ public class AccountUtils {
|
|
|
if (!result.isSuccess()) {
|
|
if (!result.isSuccess()) {
|
|
|
throw new Exception(result.getErrMsg());
|
|
throw new Exception(result.getErrMsg());
|
|
|
} else if (result.getContent() != null){
|
|
} else if (result.getContent() != null){
|
|
|
- return JSON.parseArray(result.getContent().toString(), UserSpaceView.class);
|
|
|
|
|
|
|
+ return JSON.parseObject(result.getContent().toString(), UserSpaceView.class);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -157,7 +157,7 @@ public class AccountUtils {
|
|
|
* @param spaceName 营业执照号
|
|
* @param spaceName 营业执照号
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- public List<UserSpaceView> findBySpaceName(String spaceName) throws Exception {
|
|
|
|
|
|
|
+ public UserSpaceView findBySpaceName(String spaceName) throws Exception {
|
|
|
String saveUrl = AccountConfig.getSpaceSaveUrl();
|
|
String saveUrl = AccountConfig.getSpaceSaveUrl();
|
|
|
if (!StringUtils.isEmpty(saveUrl)) {
|
|
if (!StringUtils.isEmpty(saveUrl)) {
|
|
|
ModelMap formData = new ModelMap();
|
|
ModelMap formData = new ModelMap();
|
|
@@ -171,7 +171,7 @@ public class AccountUtils {
|
|
|
if (!result.isSuccess()) {
|
|
if (!result.isSuccess()) {
|
|
|
throw new Exception(result.getErrMsg());
|
|
throw new Exception(result.getErrMsg());
|
|
|
} else if (result.getContent() != null){
|
|
} else if (result.getContent() != null){
|
|
|
- return JSON.parseArray(result.getContent().toString(), UserSpaceView.class);
|
|
|
|
|
|
|
+ return JSON.parseObject(result.getContent().toString(), UserSpaceView.class);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|