导出纳新
This commit is contained in:
@@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.Map;
|
||||
@@ -154,6 +155,19 @@ public class LbPurchaseApplyController {
|
||||
return ResponseEntity.badRequest().body(result);
|
||||
}
|
||||
|
||||
@GetMapping("/export")
|
||||
@Operation(summary = "导出进货申请Excel", description = "按租户ID与申请日期范围导出,按申请日分组并合并首列")
|
||||
public void export(
|
||||
@Parameter(description = "申请开始日期(yyyy-MM-dd)", required = true)
|
||||
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate applyDateStart,
|
||||
@Parameter(description = "申请结束日期(yyyy-MM-dd)", required = true)
|
||||
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate applyDateEnd,
|
||||
@Parameter(description = "租户ID", required = true)
|
||||
@RequestParam String tenantId,
|
||||
HttpServletResponse response) {
|
||||
lbPurchaseApplyService.exportExcel(applyDateStart, applyDateEnd, tenantId, response);
|
||||
}
|
||||
|
||||
@GetMapping("/needPrivilegeRecommenders")
|
||||
@Operation(summary = "按日期范围查询需要添加特权的推荐人")
|
||||
public ResponseEntity<Map<String, Object>> needPrivilegeRecommenders(
|
||||
|
||||
Reference in New Issue
Block a user