1
This commit is contained in:
@@ -4,6 +4,9 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ruoyi.common.core.page.PageDomain;
|
||||
import com.ruoyi.common.core.page.TableSupport;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
@@ -46,11 +49,17 @@ public class OrderRowsController extends BaseController
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, OrderRows orderRows)
|
||||
{
|
||||
// 判断是否需要分页
|
||||
PageDomain pageDomain = TableSupport.buildPageRequest();
|
||||
if (pageDomain.getPageNum() != null && pageDomain.getPageSize() != null) {
|
||||
startPage();
|
||||
}
|
||||
List<OrderRows> list = orderRowsService.selectOrderRowsList(orderRows);
|
||||
ExcelUtil<OrderRows> util = new ExcelUtil<OrderRows>(OrderRows.class);
|
||||
util.exportExcel(response, list, "京粉订单数据");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取京粉订单详细信息
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user