diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendSourceController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendSourceController.java index 734ee4276..831331d6c 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendSourceController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendSourceController.java @@ -17,6 +17,7 @@ import com.fuint.repository.model.TSource; import com.fuint.utils.StringUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; +import org.apache.commons.lang3.ObjectUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -254,6 +255,11 @@ public class BackendSourceController extends BaseController { @ApiOperation(value = "获取菜单下拉树列表") @RequestMapping(value = "/treeselect", method = RequestMethod.GET) public ResponseObject treeselect(HttpServletRequest request, TAccount account) { + if (ObjectUtils.isNotEmpty(account.getDeptType()) && account.getDeptType().equals("3")){ + account.setMerchantId(2); + }else { + account.setMerchantId(3); + } String token = request.getHeader("Access-Token"); AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token); if (accountInfo == null) {