|
|
|
@ -40,6 +40,10 @@ namespace DS.WMS.Core.Sys.Method
|
|
|
|
|
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
|
|
|
|
|
var data = db.Queryable<SysPrintModule>()
|
|
|
|
|
.Select<SysPrintModuleRes>()
|
|
|
|
|
.Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.TemplateCount = db.Queryable<SysPrintTemplate>().Where(x => x.ModuleId == it.Id && x.Disable == false).Count();
|
|
|
|
|
})
|
|
|
|
|
.Where(whereList).ToQueryPage(request.PageCondition);
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|