/// <summary>
        /// 创建一道工序/日常任务类别
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public override async Task <ProcedureStepDto> Create(CreateProcedureStepInput input)
        {
            CheckCreatePermission();
            // 如果procedureId没有值则是日常任务分类创建
            if (!input.ProcedureId.HasValue)
            {
                return(MapToEntityDto(await _procedureManager.CreateRoutineCategory(MapToEntity(input))));
            }
            // 先插入取得实体,即id
            var entity = await _procedureManager.CreateOrUpdateProcedureStepAsync(MapToEntity(input));

            return(MapToEntityDto(entity));
        }