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);
  • 相关阅读:
    2017 Multi-University Training Contest 2.Balala Power!(贪心)
    2017ICPCECIC C.A math problem(高次剩余)
    Atcoder 068E
    51nod 1385 凑数字(贪心+构造)
    cf round #418 div2 D. An overnight dance in discotheque(贪心)
    cf round #418 div2 C. An impassioned circulation of affection(暴力)
    cf round #424 div2 E. Cards Sorting(线段树)
    Atcoder 077E
    hdu 6162 Ch’s gift(树链剖分+主席树)
    Educational Codeforces Round 26 D. Round Subset(dp)
  • 原文地址:https://www.cnblogs.com/yangxiaobo-blog/p/11511138.html
Copyright © 2011-2022 走看看