|
@@ -161,6 +161,11 @@ public class PlanYearsController extends BaseController {
|
|
|
public void exportPlan(HttpServletResponse response, @RequestBody PlanYearsStandardVo yearsStandardVo, HttpServletRequest request) throws Exception {
|
|
|
LoginUser loginUser = tokenService.getLoginUser(request);
|
|
|
List<PlanYearsResponseVo> list = planYearsService.selectPlanYearsListEXP(yearsStandardVo, loginUser);
|
|
|
+ Long num = 1L;
|
|
|
+ for(PlanYearsResponseVo li:list){
|
|
|
+ li.setPlanYearId(num);
|
|
|
+ num++;
|
|
|
+ }
|
|
|
InputStream resourceAsStream = this.getClass().getResourceAsStream("/template/plan_year.xlsx");
|
|
|
OutputStream outputStream = null;
|
|
|
try {
|