Commit b9eee62f authored by zhangc's avatar zhangc

commit

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