|
@@ -178,28 +178,27 @@ public class BidWinningResultsController extends BaseController {
|
|
|
|
|
|
BigDecimal finalPrice = bidQuote.getQuotePrice();
|
|
|
|
|
|
- BidWinner bidWinner = bidWinnerService.selectBidWinnerBySid(sid);
|
|
|
- Long wid = bidWinner.getWid();
|
|
|
-
|
|
|
- BidWinner bidWinnerNew = new BidWinner();
|
|
|
- bidWinnerNew.setWid(wid);
|
|
|
- bidWinnerNew.setHid(cid);
|
|
|
- bidWinnerNew.setSid(sid);
|
|
|
- bidWinnerNew.sethName(cName);
|
|
|
- bidWinnerNew.setsName(sName);
|
|
|
- bidWinnerNew.setStatus(0L);
|
|
|
- bidWinnerNew.setContract(null);
|
|
|
- bidWinnerNew.setFinalPrice(finalPrice);
|
|
|
- bidWinnerNew.setWinFile(null);
|
|
|
- bidWinnerNew.setExamine(0L);
|
|
|
- bidWinnerNew.setExamineOption(null);
|
|
|
- bidWinnerNew.setsCode(bidWinner.getsCode());
|
|
|
- bidWinnerService.updateBidWinner(bidWinnerNew);
|
|
|
+// BidWinner bidWinner = bidWinnerService.selectBidWinnerBySid(sid);
|
|
|
+// Long wid = bidWinner.getWid();
|
|
|
+//
|
|
|
+// BidWinner bidWinnerNew = new BidWinner();
|
|
|
+// bidWinnerNew.setWid(wid);
|
|
|
+// bidWinnerNew.setHid(cid);
|
|
|
+// bidWinnerNew.setSid(sid);
|
|
|
+// bidWinnerNew.sethName(cName);
|
|
|
+// bidWinnerNew.setsName(sName);
|
|
|
+// bidWinnerNew.setStatus(0L);
|
|
|
+// bidWinnerNew.setContract(null);
|
|
|
+// bidWinnerNew.setFinalPrice(finalPrice);
|
|
|
+// bidWinnerNew.setWinFile(null);
|
|
|
+// bidWinnerNew.setExamine(0L);
|
|
|
+// bidWinnerNew.setExamineOption(null);
|
|
|
+// bidWinnerNew.setsCode(bidWinner.getsCode());
|
|
|
|
|
|
// 存储变更记录
|
|
|
int i = bidChangeRecordService.insertBidChangeRecord(bidChangeRecord);
|
|
|
+ bidWinningResultsService.insertBidWinningResults(bidWinningResults);
|
|
|
return success("变更成功");
|
|
|
-
|
|
|
}
|
|
|
return toAjax(bidWinningResultsService.insertBidWinningResults(bidWinningResults));
|
|
|
}
|
|
@@ -235,6 +234,39 @@ public class BidWinningResultsController extends BaseController {
|
|
|
case 3:
|
|
|
obj.setNode("通过审核");
|
|
|
obj.setOpinion("生效");
|
|
|
+ BidWinningResults bidWinningResults1 = bidWinningResultsService.selectBidWinningResultsByGsId(bidWinningResults.getGsId());
|
|
|
+ if(bidWinningResults1.getGsState() == 2) {
|
|
|
+ Long sid = bidWinningResults1.getSid();
|
|
|
+ String sName = bidWinningResults1.getTenderName();
|
|
|
+ Long oid = bidWinningResults1.getHid();
|
|
|
+ String oName = bidWinningResults1.gethName();
|
|
|
+ Long cid = bidWinningResults1.getSuppliersChange();
|
|
|
+ String cName = bidWinningResults1.getSupplierNameChange();
|
|
|
+ BidWinner bidWinner = bidWinnerService.selectBidWinnerBySid(sid);
|
|
|
+ Long wid = bidWinner.getWid();
|
|
|
+
|
|
|
+ Map<String,Long> map = new HashMap<>();
|
|
|
+ map.put("sid",sid);
|
|
|
+ map.put("hid",cid);
|
|
|
+ BidQuote bidQuote = bidQuoteService.selectQuoteBySupplier(map);
|
|
|
+
|
|
|
+ BigDecimal finalPrice = bidQuote.getQuotePrice();
|
|
|
+
|
|
|
+ BidWinner bidWinnerNew = new BidWinner();
|
|
|
+ bidWinnerNew.setWid(wid);
|
|
|
+ bidWinnerNew.setHid(cid);
|
|
|
+ bidWinnerNew.setSid(sid);
|
|
|
+ bidWinnerNew.sethName(cName);
|
|
|
+ bidWinnerNew.setsName(sName);
|
|
|
+ bidWinnerNew.setStatus(0L);
|
|
|
+ bidWinnerNew.setContract(null);
|
|
|
+ bidWinnerNew.setFinalPrice(finalPrice);
|
|
|
+ bidWinnerNew.setWinFile(null);
|
|
|
+ bidWinnerNew.setExamine(0L);
|
|
|
+ bidWinnerNew.setExamineOption(null);
|
|
|
+ bidWinnerNew.setsCode(bidWinner.getsCode());
|
|
|
+ bidWinnerService.updateBidWinner(bidWinnerNew);
|
|
|
+ }
|
|
|
break;
|
|
|
case 5:
|
|
|
obj.setNode("通过审核");
|