| | |
| | | package com.aps.system.api.factory; |
| | | |
| | | import com.aps.common.core.domain.R; |
| | | import com.aps.common.core.web.domain.AjaxResult; |
| | | import com.aps.system.api.RemoteCoreService; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | public RemoteCoreService create(Throwable throwable) |
| | | { |
| | | log.error("任务服务调用失败:{}", throwable.getMessage()); |
| | | return source -> R.fail("BOM数据存储到Redis中失败:" + throwable.getMessage()); |
| | | return new RemoteCoreService() |
| | | { |
| | | @Override |
| | | public R<Boolean> setBomDataToRedis(String source) |
| | | { |
| | | return R.fail("BOM数据存储到Redis中失败:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<Boolean> setProcessRouteDataToRedis(String source) |
| | | { |
| | | return R.fail("工艺路线数据存储到Redis中失败:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<Boolean> setStorageDataToRedis(String source) |
| | | { |
| | | return R.fail("库存数据存储到Redis中失败:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<AjaxResult> setPlateSubPlansToRedis(String source) { |
| | | return R.fail("钣金子单计划数据存储到Redis中失败:" + throwable.getMessage()); |
| | | } |
| | | }; |
| | | } |
| | | } |