Commit d4ea4bdd by guojuxing

自有商户详情接口修改

parent 890dac63
......@@ -277,8 +277,10 @@ public class UnionEnterpriseAuthController {
* @return
*/
@RequestMapping("/user-area")
public RestResponse channelResource(Integer resourceGroupId, Integer enterpriseId) {
Integer ownEnterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
public RestResponse channelResource(Integer resourceGroupId, Integer enterpriseId, Integer ownEnterpriseId) {
if (ownEnterpriseId == null) {
ownEnterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
}
UnionEnterpriseAuthDTO old = checkUnionEnterpriseAuth(ownEnterpriseId, enterpriseId);
if (old.getResourceGroupId() != null && !old.getResourceGroupId().equals(resourceGroupId)) {
......@@ -608,7 +610,7 @@ public class UnionEnterpriseAuthController {
//用户域数据
Map<Integer, Object> areaMap = new HashMap<>();
RestResponse userArea = channelResource(old.getResourceGroupId(), unionEnterpriseId);
RestResponse userArea = channelResource(old.getResourceGroupId(), unionEnterpriseId, ownEnterpriseId);
if ("0000".equals(userArea.getCode())) {
areaMap = (Map<Integer, Object>) userArea.getResult();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment