schangxiang@126.com
2025-05-18 7a361430f4088048d367e191195798f12c5955f3
Weben_CMS专用代码生成器/Code/Templete/Controller模板.txt
@@ -62,6 +62,30 @@
            return _$EntityInstanceName$AppService.GetListAsync(input);
        }
        /// <summary>
        /// 鏍规嵁鏉′欢鑾峰彇$ChinaComment$
        /// </summary>
        /// <param name="input">鏌ヨ鍙傛暟</param>
        /// <returns></returns>
        [HttpPost]
        [Route("FindListByFilter")]
        public virtual async Task<List<$EntityName$Dto>> FindListByFilterAsync([FromBody]Get$EntityName$Input input)
        {
            return await _$EntityInstanceName$AppService.FindListByFilterAsync(input);
        }
        /// <summary>
        /// 鏍规嵁鏉′欢鑾峰彇鍗曚釜$ChinaComment$
        /// </summary>
        /// <param name="input">鏌ヨ鍙傛暟</param>
        /// <returns></returns>
        [HttpPost]
        [Route("FindSingleByFilter")]
        public virtual async Task<$EntityName$Dto> FindSingleByFilterAsync([FromBody]Get$EntityName$Input input)
        {
            return await _$EntityInstanceName$AppService.FindSingleByFilterAsync(input);
        }
        /// <summary>
        /// 鍒涘缓$ChinaComment$
        /// </summary>
@@ -124,7 +148,7 @@
                UserId = _currentUser.UserId
            };
            //return _wmsMaterialAppService.DeleteAsync(id,myCurrentUser);//閫昏緫鍒犻櫎
            return _wmsMaterialAppService.DeletePermanentlyAsync(id, myCurrentUser);//鐗╃悊鍒犻櫎
            return _$EntityInstanceName$AppService.DeletePermanentlyAsync(id, myCurrentUser);//鐗╃悊鍒犻櫎
        }
        /// <summary>
@@ -142,7 +166,7 @@
                UserId = _currentUser.UserId
            };
            // return _wmsMaterialAppService.DeleteManyAsync(ids,myCurrentUser);//閫昏緫鍒犻櫎
            return _wmsMaterialAppService.BatchDeletePermanentlyAsync(ids, myCurrentUser);//鐗╃悊鍒犻櫎
            return _$EntityInstanceName$AppService.BatchDeletePermanentlyAsync(ids, myCurrentUser);//鐗╃悊鍒犻櫎
        }
        /// <summary>