Ejemplo n.º 1
0
        public string GetDefById(int id)
        {
            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;
            definition.Id         = id;
            TongsDefinition tongsDefinition = fixtureService.getTongsDefinitionById(definition);

            return(JSONHelper.ObjectToJSON(ResponseUtil.Ok(tongsDefinition)));
        }