public string getEntity(string code, int seq) { string token = TokenHelper.GetTokenJson(HttpContext.Request.Headers["Authorization"]);//利用这个进行数据按部门进行隔离 TokenInfo tokenInfo = JSONHelper.JSONToObject <TokenInfo>(token); int WorkcellId = tokenInfo.workCell; TongsEntity tongsEntity = new TongsEntity(); tongsEntity.WorkcellId = WorkcellId; tongsEntity.Code = code; tongsEntity.SeqId = seq; TongsEntityVo result = fixtureService.GetTongsEntity(tongsEntity); return(JSONHelper.ObjectToJSON(ResponseUtil.Ok(result))); }