zoukankan      html  css  js  c++  java
  • @Results注解使用方法

     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);
  • 相关阅读:
    nconf修改密码
    快速清空一个文
    freebsd安装snmp
    -bash: mail: command not found
    重置Cacti密码
    cacti添加被监控机全过程
    cacti图形字符乱码
    博客链接
    tar命令详解
    MainPresenter 实现类
  • 原文地址:https://www.cnblogs.com/yangxiaobo-blog/p/11511138.html
Copyright © 2011-2022 走看看