Browse Source

更新公告

suntianwu 2 năm trước cách đây
mục cha
commit
65d66761e0

+ 9 - 0
purchase-system/src/main/java/com/ozs/pm/service/impl/PmDemandServiceImpl.java

@@ -845,6 +845,9 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
                 if (baseNoticeType == null) {
                     throw new Exception("招标公告 公告类型不存在");
                 }
+                baseNotice.setDemandId(pmDemand.getDemandId());
+                baseNotice.setDeptId(pmDemand.getPurchaseDeptId());
+                baseNotice.setIsExcess(pmDemand.getIsExcess());
                 baseNotice.setType(baseNoticeType.getId());
                 baseNotice.setReleaseTime(pmReleaseAnnouncement.getReleaseTime());
                 return this.baseNoticeService.saveOrUpdate(baseNotice);
@@ -1201,6 +1204,9 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
                 if (baseNoticeType == null) {
                     throw new Exception("中标公告 公告类型不存在");
                 }
+                baseNotice.setDemandId(pmDemand.getDemandId());
+                baseNotice.setDeptId(pmDemand.getPurchaseDeptId());
+                baseNotice.setIsExcess(pmDemand.getIsExcess());
                 baseNotice.setType(baseNoticeType.getId());
                 baseNotice.setReleaseTime(pmBidWinningReqVo.getBidAnnouncementTime());
                 this.baseNoticeService.saveOrUpdate(baseNotice);
@@ -1334,6 +1340,9 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
             if (baseNoticeType == null) {
                 throw new Exception("流标公告 公告类型不存在");
             }
+            baseNotice.setDemandId(pmDemand.getDemandId());
+            baseNotice.setDeptId(pmDemand.getPurchaseDeptId());
+            baseNotice.setIsExcess(pmDemand.getIsExcess());
             baseNotice.setType(baseNoticeType.getId());
             baseNotice.setReleaseTime(pmBidFailureReqVo.getBidFailureTime());
             this.baseNoticeService.saveOrUpdate(baseNotice);