fix: 分类树标准法规回写接口定时任务异常处理

This commit is contained in:
2024-05-10 14:51:09 +08:00
parent 78c4eaf286
commit edf265eab8
2 changed files with 7 additions and 3 deletions
@@ -92,7 +92,7 @@ public interface SrmsApiService {
* @param
* @return com.jero.common.api.vo.Result<java.lang.String>
*/
void sendPartStandard() throws InterruptedException;
void sendPartStandard();
/**
* E采通获取标准信息
@@ -701,7 +701,7 @@ public class SrmsApiServiceImpl implements SrmsApiService {
}
@Override
public void sendPartStandard() throws InterruptedException {
public void sendPartStandard() {
List<LawsPartStandard> listLawsPartStandard = lawsPartStandardService.list();
int size = listLawsPartStandard.size();
log.info("零部件分类回写总数居条数为:{}", size);
@@ -752,7 +752,11 @@ public class SrmsApiServiceImpl implements SrmsApiService {
log.info("IP: " + pdmIp + partStandardRewriteUrl);
log.info("Headers: " + headers);
JSONObject reData = restTemplate.postForObject(pdmIp + partStandardRewriteUrl, entity, JSONObject.class);
Thread.sleep(3000);
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
log.error(e.getMessage());
}
log.info("零部件分类回写请求返回");
log.info("返回报文: " + JSON.toJSONString(reData));
}