1 gadu atpakaļ
vecāks
revīzija
fd73c4f2eb

+ 8 - 0
platform-rest/src/main/java/com/platform/rest/controller/longyanpurchaseorder/LongYanPurchaseOrderController.java

@@ -187,6 +187,8 @@ public class LongYanPurchaseOrderController {
     ExcelUtil.exportResponseDict(response, LongYanPurchaseOrderReportVO.class, BeanConverterUtil.copyListProperties(list, LongYanPurchaseOrderReportVO.class), "龙岩采购单表");
   }
 
+
+
   /**
    * 龙岩采购单表导出
    *
@@ -205,6 +207,12 @@ public class LongYanPurchaseOrderController {
     ExcelUtil.exportResponseDict(response, ExportLongYanPurchaseOrderVO.class, BeanConverterUtil.copyListProperties(orderVOS, ExportLongYanPurchaseOrderVO.class), "龙岩采购单表");
   }
 
+  @GetMapping("/byType/time/query")
+  @SysLog("龙岩采购单根据时间查询")
+  public R purchaseByTimeQuery(HttpServletResponse response, LongYanPurchaseOrderDTO dto, @RequestParam(required = false) Integer year, @RequestParam(required = false) LocalDate startMonth, @RequestParam(required = false) LocalDate endMonth) {
+    return new R(longYanPurchaseOrderService.exportPurchaseByTime(dto, year, startMonth, endMonth)) ;
+  }
+
   /**
    *
    */