Commit 59692f7c authored by nie'hong's avatar nie'hong

完善工时统计

parent fa1da5aa
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
<facet type="web" name="Web"> <facet type="web" name="Web">
<configuration> <configuration>
<webroots /> <webroots />
<sourceRoots>
<root url="file://$MODULE_DIR$/src/main/java" />
<root url="file://$MODULE_DIR$/src/main/resources" />
</sourceRoots>
</configuration> </configuration>
</facet> </facet>
</component> </component>
...@@ -16,6 +20,7 @@ ...@@ -16,6 +20,7 @@
<content url="file://$MODULE_DIR$"> <content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" /> <excludeFolder url="file://$MODULE_DIR$/target" />
</content> </content>
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
......
...@@ -1016,9 +1016,7 @@ public class StatisticsServiceImpl implements StatisticsService { ...@@ -1016,9 +1016,7 @@ public class StatisticsServiceImpl implements StatisticsService {
cell.setCellStyle(ordinaryCellStyle); cell.setCellStyle(ordinaryCellStyle);
} }
} }
projectStatisticsByMonths.clear();
projectStatisticsByMonths1.clear();
projectStatisticsByMonths2.clear();
} }
......
...@@ -153,6 +153,7 @@ public class StatisticsController extends BaseController { ...@@ -153,6 +153,7 @@ public class StatisticsController extends BaseController {
response.flushBuffer(); response.flushBuffer();
ServletOutputStream outputStream = response.getOutputStream(); ServletOutputStream outputStream = response.getOutputStream();
sheets.write(outputStream); sheets.write(outputStream);
outputStream.flush();
outputStream.close(); outputStream.close();
sheets.close(); sheets.close();
} catch (Exception e) { } catch (Exception e) {
......
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