Commit 9b0e1ff7 by xmh

bodyfeature 属性使用

1 parent e9ef3bd3
......@@ -178,9 +178,9 @@ public class PersonService {
Integer age = person.getAge();
String gender = person.getGender();
String personId = person.getPersonId();
Date counttime = person.getCounttime();
Date personCountTime = person.getCounttime();
Integer bodyType = person.getBodyType();
String channelSerialNum = person.getChannelSerialNum();
String personChannelSerialNum = person.getChannelSerialNum();
List<FaceFeature> faceFeatures = person.getFaceFeatures();
if (faceFeatures != null && faceFeatures.size() > 0) {
for (FaceFeature faceFeature : faceFeatures) {
......@@ -191,7 +191,7 @@ public class PersonService {
IndexRequest indexRequest = new IndexRequest(poolId)
.source(XContentType.JSON, "personId", personId,
"data", feature, "fid", fid, "age", age, "gender", gender, "body_type", bodyType,
"counttime", counttime == null ? null : Constant.DATE_FORMAT.get().format(counttime), "channelSerialNum", channelSerialNum);
"counttime", personCountTime == null ? null : Constant.DATE_FORMAT.get().format(personCountTime), "channelSerialNum", personChannelSerialNum);
bulkRequest.add(indexRequest);
}
}
......@@ -211,7 +211,8 @@ public class PersonService {
}
String fid = bodyFeature.getBid();
Date counttime = bodyFeature.getCounttime() == null ? personCountTime : bodyFeature.getCounttime();
String channelSerialNum = bodyFeature.getChannelSerialNum() == null ? personChannelSerialNum : person.getChannelSerialNum();
IndexRequest indexRequest = new IndexRequest(poolId)
.source(XContentType.JSON, "personId", personId,
"body", feature, "fid", fid, "age", age, "gender", gender, "body_type", bodyType,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!