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")