|
|
@ -568,29 +568,4 @@ public class SeaExportController : ApiController
|
|
|
|
return res;
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 导出
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="id">业务Id</param>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
|
|
|
[Route("ExportOrder")]
|
|
|
|
|
|
|
|
public async Task<DataResult<string>> ExportOrder([FromQuery] long id)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
List<SeaExportRes> list = new List<SeaExportRes> {
|
|
|
|
|
|
|
|
new SeaExportRes{
|
|
|
|
|
|
|
|
Id = 1,
|
|
|
|
|
|
|
|
MBLNO = "TEST",
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dictionary<string, string> colDicts = new Dictionary<string, string> {
|
|
|
|
|
|
|
|
{ "Id","主键"}, { "MBLNO","提单号"}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExportFileHelper.Export<SeaExportRes>(list, colDicts, "text");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return DataResult<string>.Success("");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|