虚拟清单-高级搜索%问题

This commit is contained in:
zhn
2022-06-06 17:33:16 +08:00
parent e6a4eabf97
commit 07958968fe
@@ -272,6 +272,8 @@ public class QueryGenerator {
queryValue = DateUtils.str2Date(rule.getVal(),DateUtils.date_sdf.get()); queryValue = DateUtils.str2Date(rule.getVal(),DateUtils.date_sdf.get());
}else if("datetime".equals(rule.getType())){ }else if("datetime".equals(rule.getType())){
queryValue = DateUtils.str2Date(rule.getVal(), DateUtils.datetimeFormat.get()); queryValue = DateUtils.str2Date(rule.getVal(), DateUtils.datetimeFormat.get());
}else if("string".equals(rule.getType())){
queryValue = queryValue.toString().replaceAll("%","/%");
} }
addEasyQuery(andWrapper, fieldColumnMap.get(rule.getField()), QueryRuleEnum.getByValue(rule.getRule()), queryValue); addEasyQuery(andWrapper, fieldColumnMap.get(rule.getField()), QueryRuleEnum.getByValue(rule.getRule()), queryValue);
//update-end-author:taoyan date:20201228 for: 【高级查询】 oracle 日期等于查询报错 //update-end-author:taoyan date:20201228 for: 【高级查询】 oracle 日期等于查询报错