事物transaction workDetailsInstance.withTransaction{ status -> //事物 try{ }catch(Exception exp){ status.setRollbackOnly() //msg="申请发生错误,请重新申请!" } }