Beispiel #1
0
        public string getAllEntity()
        {
            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;
            List <TongsEntityVo> tongsEntities = fixtureService.GetTongsEntities(tongsEntity);

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