feat:增加金钱验证类型和输入框

This commit is contained in:
wangyu 2021-09-28 10:07:56 +08:00
parent 5e713b7fc2
commit ebeab9658f

View File

@ -9,6 +9,7 @@ import com.flyfish.framework.domain.base.Qo;
import com.flyfish.framework.domain.base.Vo;
import com.flyfish.framework.utils.ReflectionUtils;
import com.flyfish.framework.utils.StringFormats;
import com.flyfish.framework.validation.annotations.Money;
import lombok.Data;
import lombok.val;
import org.apache.commons.collections4.CollectionUtils;
@ -182,6 +183,13 @@ public class BeanProperty {
}
}
break;
case NUMBER:
if (null != field) {
if (annotations.isPresent(Money.class) && !property.extra.containsKey("component")) {
property.extra.put("component", "money-input");
}
}
break;
case LIST:
if (null != field) {
// 是附件展现附件列表