Ver código fonte

中标候选人附件按时间隐藏

devops 1 dia atrás
pai
commit
31c68b9af8

+ 13 - 1
src/main/java/com/trs/ggzyexchange/schedul/GcBidcandidatePostSchedul.java

@@ -184,7 +184,19 @@ public class GcBidcandidatePostSchedul   implements Job {
 
                     List<GcAttachment> attachmentList = new ArrayList<GcAttachment>();
 
-                    if(record.getDataTimestamp()>20250324000000L){
+                    if(record.getDataTimestamp()>20251213000000L){
+                        //通过标包编号查询对应的附件信息
+                        QueryWrapper<GcAttachment> gcAttachmentQueryWrapper = new QueryWrapper<GcAttachment>();
+//                        gcAttachmentQueryWrapper.eq("ATTACHMENT_SET_CODE","PUBLICITY_DOC");//add
+                        gcAttachmentQueryWrapper.eq("ASSOCIATION_CODE", record.getSourceDataKey());
+                        List<GcAttachment> list = gcAttachmentService.list(gcAttachmentQueryWrapper);
+                        if (attachmentList.size() > 0) {
+                            break;
+                        }
+                        if (!ObjectUtils.isEmpty(list)) {
+                            attachmentList.addAll(list);
+                        }
+                    }else if(record.getDataTimestamp()>20250324000000L&&record.getDataTimestamp()<20251213000000L){
                         //通过标包编号查询对应的附件信息
                         QueryWrapper<GcAttachment> gcAttachmentQueryWrapper = new QueryWrapper<GcAttachment>();
 //                        gcAttachmentQueryWrapper.eq("ATTACHMENT_SET_CODE","PUBLICITY_DOC");//add