Преглед на файлове

招标文件预公示附件

mycopy123@163.com преди 5 месеца
родител
ревизия
95e146b9bc

+ 16 - 0
src/main/java/com/trs/ggzyexchange/schedul/GcTenderbidfilepublicitySchedul.java

@@ -194,6 +194,22 @@ public class GcTenderbidfilepublicitySchedul implements Job {
                 e.printStackTrace();
             }
 
+            String finalNoticeContent = "";
+            String noticeContent = record.getNoticeContent();
+            if(!ObjectUtils.isEmpty(noticeContent)){
+                finalNoticeContent = noticeContent;
+            }
+            if(!ObjectUtils.isEmpty(record.getFile())){
+                String fileUrl = record.getFile();
+                String file = "";
+                if(!ObjectUtils.isEmpty(fileUrl)){
+                    file = "<br>附件:<br>";
+                    file += "<a  target='_blank' style='color: blue' href='"+ fileUrl +"'  rel='noreferrer noopener nofollow' >附件</a><br/>";
+                }
+                finalNoticeContent = finalNoticeContent + file;
+            }
+            record.setNoticeContent(finalNoticeContent);
+
             TenderDetailsVo aNull = TenderDetailsVoUtils.isNull(record);
             tenderDetailsVos.add(aNull);
         }

+ 2 - 1
src/main/resources/mapper/GcTenderbidfilepublicityMapper.xml

@@ -15,7 +15,8 @@
             nn.SEND_TIME noticeSendTime,
             nn.TITLE noticeName,
             nn.REGION_CODE regionCode,
-            nn.CREATE_DATE createDate
+            nn.CREATE_DATE createDate,
+            nn.URL file
             from
                 gc_tenderbidfilepublicity nn
         where