码迷,mamicode.com
首页 > 其他好文 > 详细

@Results注解使用方法

时间:2019-09-12 13:12:03      阅读:317      评论:0      收藏:0      [点我收藏+]

标签:ecc   rdo   creat   result   tco   array   @param   sonar   coin   

 1 @SelectProvider(type = HospitalSqlGenerator.class, method = "queryHospitalData")
 2     @Results({
 3             @Result(column = "id", property = "id"),
 4             @Result(column = "hec_class", property = "hecClass"),
 5             @Result(column = "hospital_type", property = "hospitalType"),
 6             @Result(column = "hospital_nature", property = "hospitalNature"),
 7             @Result(column = "hospital_class", property = "hospitalClass"),
 8             @Result(column = "coin_subs_index", property = "coinSubsIndex"),
 9             @Result(column = "hospital_status", property = "hospitalStatus"),
10             @Result(column = "hec_belong", property = "hecBelong"),
11             @Result(column = "hec_class", property = "hecClassDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
12             @Result(column = "hospital_type", property = "hospitalTypeDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
13             @Result(column = "hospital_nature", property = "hospitalNatureDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
14             @Result(column = "hospital_class", property = "hospitalClassDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
15             @Result(column = "coin_subs_index", property = "coinSubsIndexDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
16             @Result(column = "hospital_status", property = "hospitalStatusDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
17             @Result(column = "hec_belong", property = "hecBelongDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
18 
19             @Result(column = "creator", property = "creator"),
20             @Result(column = "creator", property = "creatorDO", one = @One(select = "cn.com.dyg.work.dao.PubToolDAO.getUserByUserID")),
21 
22             @Result(column = "modifier", property = "modifier"),
23             @Result(column = "modifier", property = "modifierDO", one = @One(select = "cn.com.dyg.work.dao.PubToolDAO.getUserByUserID"))
24     })
25     List<HospitalDO> selectAllByCondition(@Param("jsonArray") JSONArray jsonArray, @Param("flag") boolean isNotCount, @Param("isExport") boolean isExport);

 

@Results注解使用方法

标签:ecc   rdo   creat   result   tco   array   @param   sonar   coin   

原文地址:https://www.cnblogs.com/yangxiaobo-blog/p/11511138.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!