|
|
@@ -10,6 +10,7 @@ import com.picc.grab.service.ICarinfoService;
|
|
|
import com.picc.grab.service.IPiccgrabaccountService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
@@ -63,13 +64,13 @@ public class SuccessfulTask {
|
|
|
// 获取报价完成列表的车辆
|
|
|
OfferPlatformBean platFromBean = getPlatFromBean(token, body);
|
|
|
for (OfferPlatformBean.BbpAuctionSelectVo car : platFromBean.getData().getBbpAuctionSelectVoList()) {
|
|
|
- //修改中标车辆
|
|
|
-// if (car.getBidStatus().equals("01")){
|
|
|
- //查询车辆详情
|
|
|
+ //查询车辆详情
|
|
|
+ try {
|
|
|
BbpDetailBean detailBean = getBbpDetail(token, new BbpDetailBody(car.getId()));
|
|
|
if (!Objects.isNull(detailBean)) {
|
|
|
String zbgzstatus = "3";
|
|
|
- if (detailBean.getData().getBbpWonBidVo().getBidCompanyName().indexOf("湖北同凯拍卖有限公司")>=0){
|
|
|
+ if (StringUtils.isNotBlank(detailBean.getData().getBbpWonBidVo().getBidCompanyName())
|
|
|
+ && detailBean.getData().getBbpWonBidVo().getBidCompanyName().contains("湖北同凯拍卖有限公司")){
|
|
|
zbgzstatus = "4";
|
|
|
}
|
|
|
List<String> carids = piccgrabaccountService.getCarIds(car.getCarNo());
|
|
|
@@ -82,8 +83,9 @@ public class SuccessfulTask {
|
|
|
log.info("定时任务--同步车辆中标信息,车辆id:"+carid);
|
|
|
}
|
|
|
}
|
|
|
-// }
|
|
|
-
|
|
|
+ }catch (Exception e){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|