Commit fffa4e9a by EVEN02\76050

fix:调整关键词添加重复的问题

parent ceb50fae
...@@ -56,11 +56,7 @@ public class actAction extends BasicAction ...@@ -56,11 +56,7 @@ public class actAction extends BasicAction
try try
{ {
entity = QueryParamUtil.StringToDate(entity); entity = QueryParamUtil.StringToDate(entity);
List<Map<String, Object>> listData = business.excuteSql("select * from t_award_searching where NAME = '"+entity.get("NAME")+"'");
//查询是否已存在
Map<String, Object> query = new HashMap<>();
query.put("NAME",entity.get("NAME"));
List<Map<String, Object>> listData = business.list_dataM(tableName,query);
if(listData.size()>0){ if(listData.size()>0){
jsonObject.putAll(Status.getStatusErrorMessage("关键词已存在!")); jsonObject.putAll(Status.getStatusErrorMessage("关键词已存在!"));
return "json"; return "json";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment