| | |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "0/60 * * * * ? ") |
| | | private void executeAgv(){ |
| | | ReturnT<String> returnT = errorStockHandler.startAgv(); |
| | | if (!returnT.isSuccess()) { |
| | | log.error(returnT.getMsg()); |
| | | } |
| | | } |
| | | |
| | | // @Autowired |
| | | // private BasErrLogService basErrLogService; |
| | | // @Autowired |
| | |
| | | return SUCCESS; |
| | | } |
| | | |
| | | public ReturnT<String> startAgv() { |
| | | try { |
| | | int update = jdbcTemplate.update("DELETE agv_loc_detl FROM agv_loc_detl JOIN agv_loc_mast ON agv_loc_detl.loc_no = agv_loc_mast.loc_no WHERE agv_loc_mast.loc_sts = 'O'"); |
| | | // log.info("(ErrorStockHandler)删除条数为;" + update); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | return FAIL.setMsg(e.getMessage()); |
| | | } |
| | | return SUCCESS; |
| | | } |
| | | |
| | | } |