zhangyuewww 4 년 전
부모
커밋
50277e4c71

+ 2 - 2
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/ContractManagementInfoServiceImpl.java

@@ -510,7 +510,7 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
         // 详情信息
         if (CollectionUtils.isNotEmpty(contractManagementInfos)) {
             for (int i = 0; i < contractManagementInfos.size(); i++) {
-                ContractManagementInfo contractManagementInfo = contractManagementInfos.get(0);
+                ContractManagementInfo contractManagementInfo = contractManagementInfos.get(i);
                 HSSFRow rowx = sheet.createRow((int) rownum);
                 rowx.setHeightInPoints(20);
                 cell = rowx.createCell(1);
@@ -547,7 +547,7 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
                 cell.setCellValue(editString(contractManagementInfo.getStatus()));
                 cell.setCellStyle(styleDetail);
                 cell = rowx.createCell(12);
-                cell.setCellValue(contractManagementInfo.getSigningDate());
+                cell.setCellValue(DateUtil.formatDate(contractManagementInfo.getSigningDate()!=null?contractManagementInfo.getSigningDate():new Date(), DateUtils.DATE_FMT_YYYY_MM_DD));
                 cell.setCellStyle(styleDetail);
                 cell = rowx.createCell(13);
                 cell.setCellValue(editFloat(contractManagementInfo.getMildewGrain()));