|
@@ -311,6 +311,18 @@ public class BaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ // TrackCountPolicy 类型转换
|
|
|
|
+ binder.registerCustomEditor(TrackCountPolicy.class, new PropertyEditorSupport() {
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void setAsText(String text) {
|
|
|
|
+ try {
|
|
|
|
+ setValue(TrackCountPolicy.findByValue(Integer.valueOf(text)));
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ setValue(null);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
binder.registerCustomEditor(Boolean.class, new CustomBooleanEditor(true));
|
|
binder.registerCustomEditor(Boolean.class, new CustomBooleanEditor(true));
|
|
}
|
|
}
|
|
|
|
|