This commit is contained in:
qianhao.xu 2024-07-17 15:23:18 +08:00
parent 1c8ac996d2
commit c4a3a17573
2 changed files with 5 additions and 0 deletions

View File

@ -208,6 +208,10 @@ namespace DOAN.Admin.WebApi.Controllers
[AllowAnonymous]
public IActionResult WorkOrderExport([FromQuery] DateTime extportDate)
{
if(extportDate==DateTime.MinValue)
{
return SUCCESS(null);
}
var list = _ProWorkorderService.WorkOrderExport(extportDate, new PagerInfo(1, 10000));
var result = ExportExcelMini(list.Result, "workorder", "工单列表");

View File

@ -502,6 +502,7 @@ namespace DOAN.Service.MES.product
/// <returns></returns>
public PagedInfo<ProWorkorder> WorkOrderExport(DateTime exportTime, PagerInfo pager)
{
exportTime = exportTime.Date;
return Context.Queryable<ProWorkorder>().Where(it => it.WorkorderDate == exportTime).ToPage(pager);
}