Browse Source

转日期

zhuang 8 tháng trước cách đây
mục cha
commit
a7efc5b29a

+ 4 - 1
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxProjectManageServiceImpl.java

@@ -2162,7 +2162,10 @@ public class ZhcxProjectManageServiceImpl extends ServiceImpl<ZhcxProjectManageD
                 cells.get(rowIndex, colIndex + 2).putValue(rectifyMachineVo.getSubcontractorname());
                 cells.get(rowIndex, colIndex + 3).putValue(rectifyMachineVo.getDutydeptname());
                 cells.get(rowIndex, colIndex + 4).putValue(rectifyMachineVo.getDutysubcontractorname());
-                cells.get(rowIndex, colIndex + 5).putValue(rectifyMachineVo.getFinishdate());
+                String formattedDate = rectifyMachineVo.getFinishdate() != null
+                        ? DateUtil.format(rectifyMachineVo.getFinishdate(), "yyyy.MM.dd")
+                        : "";
+                cells.get(rowIndex, colIndex + 5).putValue(formattedDate);
                 // 设置颜色
                 for (int j = colIndex; j < colIndex + 6; j++) {
                     Style cellStyle = cells.get(rowIndex, j).getStyle();