|
@@ -100,6 +100,9 @@ public class BidTenderController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private IBidWinningResultsService bidWinningResultsService;
|
|
private IBidWinningResultsService bidWinningResultsService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IBidContractService bidContractService;
|
|
|
|
+
|
|
public String getOwnerdepts() {
|
|
public String getOwnerdepts() {
|
|
List<Long> ids = remoteUserService.getDeptIds(SecurityUtils.getLoginUser().getUserid(), 1, "CHILDREN_COMPANY", SecurityConstants.INNER);
|
|
List<Long> ids = remoteUserService.getDeptIds(SecurityUtils.getLoginUser().getUserid(), 1, "CHILDREN_COMPANY", SecurityConstants.INNER);
|
|
return StringUtils.join(ids,',');
|
|
return StringUtils.join(ids,',');
|
|
@@ -1058,6 +1061,25 @@ public class BidTenderController extends BaseController {
|
|
return i;
|
|
return i;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // 合同通过后的开票信息更新
|
|
|
|
+ @InnerAuth
|
|
|
|
+ @Transactional
|
|
|
|
+ @PostMapping("/changeInvoice")
|
|
|
|
+ public int changeInvoice(){
|
|
|
|
+ BidContract bidContract = new BidContract();
|
|
|
|
+ bidContract.setExamine(4L);
|
|
|
|
+ List<BidContract> bidContracts = bidContractService.selectBidContractList(bidContract);
|
|
|
|
+ for(BidContract item : bidContracts){
|
|
|
|
+ Long wid = item.getWid();
|
|
|
|
+ BidWinner bidWinner = bidWinnerService.selectBidWinnerByWid(wid);
|
|
|
|
+ if(bidWinner.getStatus() == 2){
|
|
|
|
+ bidWinner.setStatus(3L);
|
|
|
|
+ int i = bidWinnerService.updateBidWinner(bidWinner);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
// 查询可终止项目
|
|
// 查询可终止项目
|
|
@GetMapping("/selectTenderByState")
|
|
@GetMapping("/selectTenderByState")
|
|
public TableDataInfo selectTenderByState(BidTender bidTender) {
|
|
public TableDataInfo selectTenderByState(BidTender bidTender) {
|