public async Task <_Tablename_DeleteManyQueryDTO> Handle(_Tablename_DeleteManyQuery request, CancellationToken cancellationToken)
        {
            SqlTranExtensions STE = new SqlTranExtensions();

            foreach (var id in request.ids)
            {
                var item = await _Tablename_.GetModel(id);

                await item.Delete(STE);
            }
            if (await STE.ExecuteSqlTran())
            {
                return(new _Tablename_DeleteManyQueryDTO()
                {
                    ids = request.ids
                });
            }
            else
            {
                throw new MyException("删除出错");
            }
        }
        public async Task <_tablename_ResetOrderNumQueryDTO> Handle(_tablename_ResetOrderNumQuery request, CancellationToken cancellationToken)
        {
            SqlTranExtensions STE = new SqlTranExtensions();

            foreach (var id in request.ids)
            {
                var item = await _tablename_.GetModel(id);

                item.ordernum = request.ordernum;
                await item.Update(STE);
            }
            if (await STE.ExecuteSqlTran())
            {
                return(new _tablename_ResetOrderNumQueryDTO()
                {
                    ids = request.ids
                });
            }
            else
            {
                throw new MyException("保存出错");
            }
        }