mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-22 14:17:21 +08:00
【优化】移除2个orderBy使用的sql组合方法参数,移除4个仓储基类的所有sql组合方法,全部使用参数化提交,防止出现可能存在的sql注入。
This commit is contained in:
@@ -190,7 +190,7 @@ namespace CoreCms.Net.Services
|
||||
|
||||
var dtoData = new List<GroupPurchaseSeckillDTO>();
|
||||
|
||||
var promotions = await _dal.QueryListByClauseAsync(p => p.isEnable == true && p.isDel == false && promotionIds.Contains(p.id), promotionIds.Length, "", true, true);
|
||||
var promotions = await _dal.QueryListByClauseAsync(p => p.isEnable == true && p.isDel == false && promotionIds.Contains(p.id), promotionIds.Length, p => p.id, OrderByType.Desc, true, true);
|
||||
if (promotions != null && promotions.Any())
|
||||
{
|
||||
//获取团购序列
|
||||
|
||||
Reference in New Issue
Block a user