From 39d6919db3eda93933774089d89fbdda0ba0c0ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Wed, 29 May 2024 10:28:39 +0800 Subject: [PATCH] =?UTF-8?q?pos=E9=A6=96=E9=A1=B5=E5=89=8D=E4=B8=89?= =?UTF-8?q?=E4=B8=AA=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/AllOrderInfoController.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java index fe3d01050..7afddb0e4 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java @@ -13,6 +13,7 @@ import com.fuint.common.util.TokenUtil; import com.fuint.framework.web.BaseController; import com.fuint.framework.web.ResponseObject; import com.fuint.system.dept.vo.SysDeptVo; +import org.apache.commons.lang3.ObjectUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -51,6 +52,23 @@ public class AllOrderInfoController extends BaseController { return getSuccessResult(list); } + @GetMapping("getPageListByPosRecentThree") + public ResponseObject getPageListByPosRecentThree(AllOrderInfo allOrderInfo, + @RequestParam(value = "page",defaultValue = "1") Integer pageNo, + @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){ + Page page =new Page(pageNo,pageSize); + + IPage list = allOrderInfoService.getPageListByPos(page, allOrderInfo); + if (ObjectUtils.isNotEmpty(list)){ + List records = list.getRecords(); + if (ObjectUtils.isNotEmpty(records) && records.size()>2){ + List allOrderInfoVos = records.subList(0, 3); + list.setRecords(allOrderInfoVos); + } + } + return getSuccessResult(list); + } + @GetMapping("sumPayMoney")