打印模板修改

dev
cjy 2 months ago
parent c72a14768d
commit ca3b27fbca

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

@ -31,7 +31,7 @@ public class PrintTemplateController : ApiController
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
[Route("GetPrintModuleList")] [Route("GetPrintModuleList")]
public DataResult<List<SysPrintModuleRes>> GetPrintTemplateList([FromBody] PageRequest request) public DataResult<List<SysPrintModuleRes>> GetPrintModuleList([FromBody] PageRequest request)
{ {
var res = _invokeService.GetListByPage(request); var res = _invokeService.GetListByPage(request);
return res; return res;

Loading…
Cancel
Save