correct function interface
add cascade function
add bean T_LOTTERY