| | |
| | | public class PostMesDataUtils extends AbstractHandler<String> { |
| | | @Autowired |
| | | private ApiLogService apiLogService; |
| | | @Value("${mes.start}") |
| | | private boolean start; //上报开关 |
| | | |
| | | public ReturnT<String> postMesData(String name,String URL,String mesPath, Object combParam){ |
| | | if (true){ |
| | | if (!start){ |
| | | return SUCCESS; |
| | | } |
| | | if(combParam != null){ |
| | |
| | | throw new CoolException("上报"+name); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("fail", e); |
| | | log.error("上报失败"); |
| | | // TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | return FAIL.setMsg(e.getMessage()); |
| | | } finally { |