public string GetDefChart() { string token = TokenHelper.GetTokenJson(HttpContext.Request.Headers["Authorization"]);//利用这个进行数据按部门进行隔离 TokenInfo tokenInfo = JSONHelper.JSONToObject <TokenInfo>(token); int WorkcellId = tokenInfo.workCell; TongsDefinition definition = new TongsDefinition(); definition.WorkcellId = WorkcellId; List <TongsDefinition> tongsDefinitionList = fixtureService.getAllTongsDefinitions(definition); return(JSONHelper.ObjectToJSON(ResponseUtil.Ok(tongsDefinitionList))); }