Commit 9e276215 authored by zhangc's avatar zhangc

commit

parent b9eee62f
...@@ -352,9 +352,9 @@ public class ProducerServiceImpl implements ProducerService { ...@@ -352,9 +352,9 @@ public class ProducerServiceImpl implements ProducerService {
ApiOpenApiEsFields fields = new ApiOpenApiEsFields(); ApiOpenApiEsFields fields = new ApiOpenApiEsFields();
fields.setEsDatabase(req.getEsDataBase()); fields.setEsDatabase(req.getEsDataBase());
fields.setEsTable(req.getEsTable()); fields.setEsTable(req.getEsTable());
fields.setFieldName(jsonObject.get("name").toString()); fields.setFieldName(jsonObject.getString("name"));
fields.setFieldType(jsonObject.get("type").toString()); fields.setFieldType(jsonObject.getString("type"));
String comment = jsonObject.get("comment").toString(); String comment = jsonObject.getString("comment");
fields.setFieldDesc(comment ==null || comment==""? "":comment); fields.setFieldDesc(comment ==null || comment==""? "":comment);
fields.setCreateUser(req.getCreateUser()); fields.setCreateUser(req.getCreateUser());
listApiEsFields.add(fields); listApiEsFields.add(fields);
...@@ -383,7 +383,7 @@ public class ProducerServiceImpl implements ProducerService { ...@@ -383,7 +383,7 @@ public class ProducerServiceImpl implements ProducerService {
return Result.of_error("限流类型不存在!"); return Result.of_error("限流类型不存在!");
} }
} }
if (null == req.getSignType() || "0" == req.getSignType()) { if (null == req.getSignType() || 0 == req.getSignType()) {
return Result.of_error("加密类型错误!"); return Result.of_error("加密类型错误!");
} }
if (null != req.getReqFrequency()) { if (null != req.getReqFrequency()) {
......
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