public async Task <IActionResult> DisabledAccount([FromBody] BaseInput input)
        {
            var entity = await _infectionApp.GetForm(input.KeyValue);

            entity.F_EnabledMark = false;
            await _infectionApp.UpdateForm(entity);

            return(Success("禁用成功。"));
        }
        public IActionResult SubmitData([FromBody] SubmitDataInput input)
        {
            var             userId = _usersService.GetCurrentUserId();
            InfectionEntity entity = null;

            if (string.IsNullOrEmpty(input.id))//新建
            {
                entity = new InfectionEntity
                {
                    F_Id            = Common.GuId(),
                    F_RecordPerson  = userId,
                    F_CreatorTime   = DateTime.Now,
                    F_CreatorUserId = userId,
                    F_EnabledMark   = true
                };
            }
            else//修改
            {
                entity = new InfectionEntity
                {
                    F_Id               = input.id,
                    F_LastModifyTime   = DateTime.Now,
                    F_LastModifyUserId = userId
                };
            }
            entity.F_Item1 = input.item1;
            entity.F_Item2 = input.item2;
            entity.F_Item3 = input.item3;
            entity.F_Item4 = input.item4;
            entity.F_Item5 = input.item5;
            entity.F_Item6 = input.item6;
            entity.F_Item7 = input.item7;

            if (string.IsNullOrEmpty(input.id))
            {
                _infectionApp.InsertForm(entity);
            }
            else
            {
                _infectionApp.UpdateForm(entity);
            }
            var data = new
            {
                id = entity.F_Id
            };

            return(Ok(data));
        }