瀏覽代碼

调整开标时间

ZC 4 周之前
父節點
當前提交
8be1a6d235

+ 1 - 0
ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/controller/BidCommitteeController.java

@@ -235,6 +235,7 @@ public class BidCommitteeController extends BaseController
 
 
     // 更新专家到场状态
+    @Log(title = "更新专家到场状态",businessType = BusinessType.UPDATE)
     @PutMapping("/updateExpertStatus")
     public AjaxResult updateExpertStatus(@RequestBody BidCommittee bidCommittee){
         return toAjax(bidCommitteeService.updateBidCommittee(bidCommittee));

+ 16 - 0
ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/controller/BidNoticeController.java

@@ -537,4 +537,20 @@ public class BidNoticeController extends BaseController {
         return error("获取虚拟子账户失败");
     }
 
+    @Log(title = "延后开标时间",businessType = BusinessType.UPDATE)
+    @PutMapping("/updateOpenTime")
+    public AjaxResult updateOpenTime(@RequestBody BidNotice bidNotice){
+        Long uid = bidNotice.getUid();
+        Date date = bidNotice.getuKaiTime();
+
+        BidNotice bidNotice1 = bidNoticeService.selectBidNoticeByUid(uid);
+        Date uKaiTime = bidNotice1.getuKaiTime();
+
+
+        if(date.compareTo(uKaiTime) < 0){
+            return toAjax(0);
+        }
+        return toAjax(bidNoticeService.updateOpenTime(bidNotice));
+    }
+
 }

+ 3 - 0
ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/mapper/BidNoticeMapper.java

@@ -168,4 +168,7 @@ public interface BidNoticeMapper
     // 查询定标前的公告
     public List<BidNotice> selectNoticeByState();
 
+    // 调整开标时间
+    public int updateOpenTime(BidNotice bidNotice);
+
 }

+ 3 - 0
ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/service/IBidNoticeService.java

@@ -164,4 +164,7 @@ public interface IBidNoticeService
 
     // 查询定标前的公告
     public List<BidNotice> selectNoticeByState();
+
+    // 调整开标时间
+    public int updateOpenTime(BidNotice bidNotice);
 }

+ 5 - 0
ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/service/impl/BidNoticeServiceImpl.java

@@ -214,4 +214,9 @@ public class BidNoticeServiceImpl implements IBidNoticeService
     public List<BidNotice> selectNoticeByState() {
         return bidNoticeMapper.selectNoticeByState();
     }
+
+    @Override
+    public int updateOpenTime(BidNotice bidNotice) {
+        return bidNoticeMapper.updateOpenTime(bidNotice);
+    }
 }

+ 4 - 0
ruoyi-modules/hh-bidding/src/main/resources/mapper/BidNoticeMapper.xml

@@ -397,4 +397,8 @@
         from bid_notice n inner join bid_tender t on n.sid = t.sid where t.s_project_state &lt; 7
     </select>
 
+    <update id="updateOpenTime">
+        update bid_notice set u_uKaiTime = #{uKaiTime} where uid = #{uid}
+    </update>
+
 </mapper>