Commit 75a78cdd authored by tianyiming's avatar tianyiming

去除小程序显示的多余字段

parent dfc20fbb
...@@ -459,6 +459,10 @@ public class TzsAppService { ...@@ -459,6 +459,10 @@ public class TzsAppService {
List<Map<String, Object>> list = new ArrayList<>(); List<Map<String, Object>> list = new ArrayList<>();
if (!ValidationUtil.isEmpty(declaredFields)) { if (!ValidationUtil.isEmpty(declaredFields)) {
for (Field field : declaredFields) { for (Field field : declaredFields) {
if ("sequenceNbr".equals(field.getName()) || "recDate".equals(field.getName()) || "recUserId".equals(field.getName())
|| "recUserName".equals(field.getName()) || "isDelete".equals(field.getName())) {
continue;
}
if (field.getAnnotation(ApiModelProperty.class) != null && !ValidationUtil.isEmpty(field.getAnnotation(ApiModelProperty.class).value())) { if (field.getAnnotation(ApiModelProperty.class) != null && !ValidationUtil.isEmpty(field.getAnnotation(ApiModelProperty.class).value())) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
String filedName = field.getAnnotation(ApiModelProperty.class).value(); String filedName = field.getAnnotation(ApiModelProperty.class).value();
......
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