2
This commit is contained in:
parent
1c8ac996d2
commit
c4a3a17573
@ -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", "工单列表");
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user