fix(X-Pack): 修复数据填报提交数据包含必填时间范围时提示必填的问题
This commit is contained in:
parent
cf9e892992
commit
8e1fbfc082
@ -477,10 +477,18 @@ public class DataFillDataService {
|
||||
}
|
||||
String name = field.getSettings().getMapping().getColumnName();
|
||||
|
||||
if (data.get(name) == null) {
|
||||
if (!StringUtils.equalsIgnoreCase(field.getType(), "dateRange") && data.get(name) == null) {
|
||||
if (field.getSettings().isRequired()) {
|
||||
DataEaseException.throwException("[" + field.getSettings().getName() + "] 不能为空");
|
||||
}
|
||||
} else if (StringUtils.equalsIgnoreCase(field.getType(), "dateRange")) {
|
||||
if (field.getSettings().isRequired()) {
|
||||
String name1 = field.getSettings().getMapping().getColumnName1();
|
||||
String name2 = field.getSettings().getMapping().getColumnName2();
|
||||
if (data.get(name1) == null || data.get(name2) == null) {
|
||||
DataEaseException.throwException("[" + field.getSettings().getName() + "] 不能为空");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (StringUtils.equalsIgnoreCase(field.getType(), "input")) { //input框支持unique
|
||||
|
||||
Loading…
Reference in New Issue
Block a user