1.excel公共导出模板调整,解决下拉框最大字符255问题,才用隐藏表单来设置下拉框
2.解决冀北试运行报告bug部分 3.解决数据完整性,小数点问题 4.终端监测导出模板和导入功能编写,
This commit is contained in:
@@ -1233,11 +1233,13 @@ public class ExportModelController extends BaseController {
|
||||
String reportFileUrl = "";
|
||||
try {
|
||||
String fileName = name + formatter.format(currentTime) + ".docx";
|
||||
if (isUrl) {
|
||||
reportFileUrl = wordUtil2.getReportFileUrl(rtfPath, name + formatter.format(currentTime) + ".docx",null ,reportmap);
|
||||
} else {
|
||||
wordUtil2.getWord(rtfPath, reportmap, fileName,null, response);
|
||||
if(ObjectUtil.isNotNull(isUrl)){
|
||||
if (isUrl) {
|
||||
reportFileUrl = wordUtil2.getReportFileUrl(rtfPath, name + formatter.format(currentTime) + ".docx",null ,reportmap);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, reportFileUrl, methodDescribe);
|
||||
}
|
||||
}
|
||||
wordUtil2.getWord(rtfPath, reportmap, fileName,null, response);
|
||||
} catch (Exception e) {
|
||||
log.error("获取报告发生异常,异常是" + e.getMessage());
|
||||
}
|
||||
|
||||
@@ -488,8 +488,8 @@ public class ExportModelJBController extends BaseController {
|
||||
String strTime = String.format("%s——%s。",
|
||||
new String[]{DateUtil.format(startDate, "yyyy年MM月dd日 HH时mm分ss秒"),
|
||||
DateUtil.format(endDate, "yyyy年MM月dd日 HH时mm分ss秒")});
|
||||
reportmap.put("$number$", reportNumber); // 报告编号
|
||||
reportmap.put("$titlePoint$", crmName); // 客户名称
|
||||
reportmap.put("$number$", StrUtil.isBlank(reportNumber)?"":reportNumber); // 报告编号
|
||||
reportmap.put("$titlePoint$",StrUtil.isBlank(crmName)?"":crmName); // 客户名称
|
||||
|
||||
reportmap.put("$TitleTime$", formatter.format(currentTime)); // 报告生成时间
|
||||
reportmap.put("$ReportTitle$",
|
||||
@@ -1503,11 +1503,13 @@ public class ExportModelJBController extends BaseController {
|
||||
String reportFileUrl = "";
|
||||
try {
|
||||
String fileName = name + formatter.format(currentTime) + ".docx";
|
||||
if (isUrl) {
|
||||
reportFileUrl = wordUtil2.getReportFileUrl(rtfPath, name + formatter.format(currentTime) + ".docx",tableList, reportmap);
|
||||
} else {
|
||||
wordUtil2.getWord(rtfPath, reportmap, fileName,tableList, response);
|
||||
if(ObjectUtil.isNotNull(isUrl)){
|
||||
if (isUrl) {
|
||||
reportFileUrl = wordUtil2.getReportFileUrl(rtfPath, name + formatter.format(currentTime) + ".docx",tableList, reportmap);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, reportFileUrl, methodDescribe);
|
||||
}
|
||||
}
|
||||
wordUtil2.getWord(rtfPath, reportmap, fileName,tableList, response);
|
||||
} catch (Exception e) {
|
||||
log.error("获取报告发生异常,异常是" + e.getMessage());
|
||||
}
|
||||
|
||||
@@ -416,9 +416,9 @@ public class ReportServiceImpl implements ReportService {
|
||||
* @return
|
||||
*/
|
||||
private List<Float> reflectDataInV(List<RStatDataInharmVDPO> value, String name, String attribute) {
|
||||
Field field = null;
|
||||
Field field;
|
||||
try {
|
||||
field = RStatDataVD.class.getDeclaredField(attribute);
|
||||
field = RStatDataInharmVDPO.class.getDeclaredField(attribute);
|
||||
} catch (NoSuchFieldException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
@@ -426,9 +426,9 @@ public class ReportServiceImpl implements ReportService {
|
||||
|
||||
Field finalField = field;
|
||||
return value.stream().filter(x -> x.getValueType().equals(name)).map(temp -> {
|
||||
BigDecimal o = null;
|
||||
Double o;
|
||||
try {
|
||||
o = (BigDecimal) finalField.get(temp);
|
||||
o = (Double) finalField.get(temp);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user