Commit fa1da5aa authored by nie'hong's avatar nie'hong

完善工时统计

parent 8366cd02
...@@ -1016,6 +1016,9 @@ public class StatisticsServiceImpl implements StatisticsService { ...@@ -1016,6 +1016,9 @@ public class StatisticsServiceImpl implements StatisticsService {
cell.setCellStyle(ordinaryCellStyle); cell.setCellStyle(ordinaryCellStyle);
} }
} }
projectStatisticsByMonths.clear();
projectStatisticsByMonths1.clear();
projectStatisticsByMonths2.clear();
} }
......
...@@ -21,6 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -21,6 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.net.URLEncoder; import java.net.URLEncoder;
import java.util.List; import java.util.List;
...@@ -150,7 +151,9 @@ public class StatisticsController extends BaseController { ...@@ -150,7 +151,9 @@ public class StatisticsController extends BaseController {
response.setHeader("Cache-Control", "No-cache"); response.setHeader("Cache-Control", "No-cache");
response.flushBuffer(); response.flushBuffer();
sheets.write(response.getOutputStream()); ServletOutputStream outputStream = response.getOutputStream();
sheets.write(outputStream);
outputStream.close();
sheets.close(); sheets.close();
} catch (Exception e) { } catch (Exception e) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.SERVER_ERROR); throw new BaseCustomException(BASE_RESP_CODE_ENUM.SERVER_ERROR);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment