|
|
@@ -49,7 +49,6 @@ public class SuccessfulTask {
|
|
|
*/
|
|
|
@Transactional
|
|
|
@Scheduled(cron = "0 */10 * * * ?")
|
|
|
-// @Scheduled(cron = "0 */1 * * * ?")
|
|
|
public void syncInfo() throws Exception {
|
|
|
//入参
|
|
|
OfferPlatFromBody body = new OfferPlatFromBody();
|
|
|
@@ -73,13 +72,15 @@ public class SuccessfulTask {
|
|
|
if (detailBean.getData().getBbpWonBidVo().getBidCompanyName().indexOf("湖北同凯拍卖有限公司")>0){
|
|
|
zbgzstatus = "4";
|
|
|
}
|
|
|
- String carid = piccgrabaccountService.getCarId(car.getCarNo());
|
|
|
+ List<String> carids = piccgrabaccountService.getCarIds(car.getCarNo());
|
|
|
//修改车辆中标信息
|
|
|
- zbwtMapper.updateZbwt(zbgzstatus,carid
|
|
|
- ,detailBean.getData().getBbpWonBidVo().getBidCompanyName()
|
|
|
- ,detailBean.getData().getBbpWonBidVo().getCreateTime()
|
|
|
- ,detailBean.getData().getBbpWonBidVo().getBidPrice());
|
|
|
- log.info("定时任务--同步车辆中标信息");
|
|
|
+ for (String carid : carids) {
|
|
|
+ zbwtMapper.updateZbwt(zbgzstatus,carid
|
|
|
+ ,detailBean.getData().getBbpWonBidVo().getBidCompanyName()
|
|
|
+ ,detailBean.getData().getBbpWonBidVo().getCreateTime()
|
|
|
+ ,detailBean.getData().getBbpWonBidVo().getBidPrice());
|
|
|
+ log.info("定时任务--同步车辆中标信息,车辆id:"+carid);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|