bug
This commit is contained in:
parent
aa52eee7b6
commit
24d5f29126
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user