private String type = this.getClass().getSimpleName();这样获取的必然是当前类的名字,父类的要getSuperclass().getSimpleName()才行,子类中要重写type