Commit 955c5e65 authored by 韩桐桐's avatar 韩桐桐

fix(jg):气瓶汇总表打印问题

parent 2d5fc8bc
...@@ -1653,6 +1653,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD ...@@ -1653,6 +1653,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
* @return * @return
*/ */
private static String timeToMonths(String originalDateStr) { private static String timeToMonths(String originalDateStr) {
if (StringUtils.isEmpty(originalDateStr)){
return "";
}
// 定义输入的日期格式 // 定义输入的日期格式
DateTimeFormatter inputFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); DateTimeFormatter inputFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
// 将字符串解析为LocalDate对象 // 将字符串解析为LocalDate对象
......
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