|
@@ -549,7 +549,12 @@ public class ZxtdReportServiceImpl implements ZxtdReportService {
|
|
|
String parentDentryUuid = "ZX6GRezwJlRgBQmQCGE54DMQWdqbropQ";//知行同德
|
|
|
String year = DateUtil.year(new Date()) + "";
|
|
|
|
|
|
- exportCash(response, year + "0" + month);
|
|
|
+ //如果月份小于10,则在年份前面加0
|
|
|
+ if (month.length() == 1) {
|
|
|
+ month = "0" + month;
|
|
|
+ }
|
|
|
+
|
|
|
+ exportCash(response, year + month);
|
|
|
|
|
|
//文件
|
|
|
File file = new File(reportPath + "现金流量表-" + year + "0" + month + ".xlsx");
|
|
@@ -823,7 +828,8 @@ public class ZxtdReportServiceImpl implements ZxtdReportService {
|
|
|
for (Map manual : manualList) {
|
|
|
Map formData = (Map) manual.get("formData");
|
|
|
|
|
|
- String month = formData.get("textField_lxl8322m").toString().substring(6);
|
|
|
+ String month = formData.get("textField_lxl8322m").toString().substring(5).replaceFirst("^0+(?!$)", "");
|
|
|
+// String month = formData.get("textField_lxl8322m").toString().substring(6);
|
|
|
if (month.substring(0,1).equals("0")){
|
|
|
month = month.substring(1);
|
|
|
}
|