use of com.itrus.portal.db.BelievableFace in project portal by ixinportal.
the class BelievableFaceController method show.
/**
* 返回查看详情页面
* @param id
* @param uiModel
* @return
*/
@RequestMapping(value = "/{id}", produces = "text/html")
public String show(@PathVariable("id") Long id, Model uiModel) {
BelievableFace believableFace = believableFaceService.selectById(id);
uiModel.addAttribute("believableFace", believableFace);
ApplicationInfo applicationInfo = applicationInfoService.selectById(believableFace.getApplicationInfo());
uiModel.addAttribute("applicationInfo", applicationInfo);
// 查询照片表,多条数据
FaceMatchingExample face = new FaceMatchingExample();
FaceMatchingExample.Criteria faceMat = face.createCriteria();
faceMat.andBelievableFaceEqualTo(believableFace.getId());
List<FaceMatching> faceMatching = sqlSession.selectList("com.itrus.portal.db.FaceMatchingMapper.selectByExample", face);
uiModel.addAttribute("faceMatching", faceMatching);
return "believableFace/show";
}
Aggregations