Search in sources :

Example 1 with BelievableFace

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";
}
Also used : FaceMatching(com.itrus.portal.db.FaceMatching) ApplicationInfo(com.itrus.portal.db.ApplicationInfo) FaceMatchingExample(com.itrus.portal.db.FaceMatchingExample) BelievableFace(com.itrus.portal.db.BelievableFace) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

ApplicationInfo (com.itrus.portal.db.ApplicationInfo)1 BelievableFace (com.itrus.portal.db.BelievableFace)1 FaceMatching (com.itrus.portal.db.FaceMatching)1 FaceMatchingExample (com.itrus.portal.db.FaceMatchingExample)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1