|
@@ -6,6 +6,7 @@ import org.springblade.business.dto.reSigningEVisaStatus;
|
|
|
import org.springblade.business.entity.InformationQuery;
|
|
|
import org.springblade.business.service.IInformationQueryFileService;
|
|
|
import org.springblade.business.service.IInformationQueryService;
|
|
|
+import org.springblade.core.log.exception.ServiceException;
|
|
|
import org.springblade.core.redis.cache.BladeRedis;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.manager.feign.ExcelTabClient;
|
|
@@ -38,9 +39,18 @@ public class TaskSync {
|
|
|
.eq(InformationQuery::getId, dto.getId())
|
|
|
.set(InformationQuery::getEVisaPdfUrl, null)
|
|
|
.set(InformationQuery::getPdfUrl, null));
|
|
|
- result = this.saveNodePdf(iq.getClassify()+"", iq.getWbsId()+"", dto.getContractId()+"", dto.getProjectId()+"", header);
|
|
|
- if(result==null||(result!=null&&result.getCode()!=200)){
|
|
|
- System.out.println(iq.getName()+"重新保存PDF信息失败");
|
|
|
+ try {
|
|
|
+ result = this.saveNodePdf(iq.getClassify() + "", iq.getWbsId() + "", dto.getContractId() + "", dto.getProjectId() + "", header);
|
|
|
+ if (result == null || (result != null && result.getCode() != 200)) {
|
|
|
+ throw new ServiceException(iq.getName() + "重新保存PDF信息失败");
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ //如果失败 修改pdf和e_visa_pdf_url 路径
|
|
|
+ informationQueryService.update(new LambdaUpdateWrapper<InformationQuery>()
|
|
|
+ .eq(InformationQuery::getId, dto.getId())
|
|
|
+ .set(InformationQuery::getEVisaPdfUrl, iq.getEVisaPdfUrl())
|
|
|
+ .set(InformationQuery::getPdfUrl, iq.getPdfUrl()));
|
|
|
}
|
|
|
}
|
|
|
}
|