@SelectProvider(type = HospitalSqlGenerator.class, method = "queryHospitalData")
@Results({
@Result(column = "id", property = "id"),
@Result(column = "hec_class", property = "hecClass"),
@Result(column = "hospital_type", property = "hospitalType"),
@Result(column = "hospital_nature", property = "hospitalNature"),
@Result(column = "hospital_class", property = "hospitalClass"),
@Result(column = "coin_subs_index", property = "coinSubsIndex"),
@Result(column = "hospital_status", property = "hospitalStatus"),
@Result(column = "hec_belong", property = "hecBelong"),
@Result(column = "hec_class", property = "hecClassDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
@Result(column = "hospital_type", property = "hospitalTypeDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
@Result(column = "hospital_nature", property = "hospitalNatureDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
@Result(column = "hospital_class", property = "hospitalClassDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
@Result(column = "coin_subs_index", property = "coinSubsIndexDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
@Result(column = "hospital_status", property = "hospitalStatusDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")),
@Result(column = "hec_belong", property = "hecBelongDO", one = @One(select = "cn.com.dyg.work.dao.DefDocDAO.selectByID")), @Result(column = "creator", property = "creator"),
@Result(column = "creator", property = "creatorDO", one = @One(select = "cn.com.dyg.work.dao.PubToolDAO.getUserByUserID")), @Result(column = "modifier", property = "modifier"),
@Result(column = "modifier", property = "modifierDO", one = @One(select = "cn.com.dyg.work.dao.PubToolDAO.getUserByUserID"))
})
List<HospitalDO> selectAllByCondition(@Param("jsonArray") JSONArray jsonArray, @Param("flag") boolean isNotCount, @Param("isExport") boolean isExport);

@Results注解使用方法的更多相关文章

  1. 利用spring AOP 和注解实现方法中查cache-我们到底能走多远系列(46)

    主题:这份代码是开发中常见的代码,查询数据库某个主表的数据,为了提高性能,做一次缓存,每次调用时先拿缓存数据,有则直接返回,没有才向数据库查数据,降低数据库压力. public Merchant lo ...

  2. ARTS打卡计划第二周-Share-使用java注解对方法计时

    现在有这样一种常见,系统中有一个接口,该接口执行的方法忽快忽慢,因此你需要去统计改方法的执行时间.刚开始你的代码可能如下: long start = System.currentTimeMillis( ...

  3. 《Effective Java》学习笔记 —— 枚举、注解与方法

    Java的枚举.注解与方法... 第30条 用枚举代替int常量 第31条 用实例域代替序数 可以考虑定义一个final int 代替枚举中的 ordinal() 方法. 第32条 用EnumSet代 ...

  4. Spring注解开发-全面解析常用注解使用方法之生命周期

    本文github位置:https://github.com/WillVi/Spring-Annotation/ 往期文章:Spring注解开发-全面解析常用注解使用方法之组件注册 bean生命周期 ​ ...

  5. Spring框架bean的注解管理方法之一 使用注解生成对象

    首先在原有的jar包: 需Spring压缩包中的四个核心JAR包 beans .context.core 和expression 下载地址: https://pan.baidu.com/s/1qXLH ...

  6. SpringBoot之SpringSecurity权限注解在方法上进行权限认证多种方式

    前言 Spring Security支持方法级别的权限控制.在此机制上,我们可以在任意层的任意方法上加入权限注解,加入注解的方法将自动被Spring Security保护起来,仅仅允许特定的用户访问, ...

  7. SpringMVC--@RequestMapping注解标注方法解析

    SpringMVC--@RequestMapping注解标注方法解析 本文是基于springboot进行源码追踪分析 问题 @RequestMapping注释的类及方法,Spring是何时,何种方式解 ...

  8. Spring中@Async注解实现“方法”的异步调用

    原文:http://www.cnblogs.com/zhengbin/p/6104502.html 简单介绍: Spring为任务调度与异步方法执行提供了注解支持.通过在方法上设置@Async注解,可 ...

  9. 161018、springMVC中普通类获取注解service方法

    1.新建一个类SpringBeanFactoryUtils 实现 ApplicationContextAware package com.loiot.baqi.utils; import org.sp ...

随机推荐

  1. SpringMVC配置文件详解:<context:annotation-config/>和<context:component-scan base-package=""/>和<mvc:annotation-driven />

    原文地址:https://www.cnblogs.com/lcngu/p/5080702.html Spring配置文件详解:<context:annotation-config/>和&l ...

  2. iOS View的一些操作定义为宏

    #define ViewOf(__View__,__TAG__) [__View__ viewWithTag:__TAG__]#define LabelOf(__View__,__TAG__) ((U ...

  3. 2019CCPC秦皇岛赛区(重现赛)- F

    链接: http://acm.hdu.edu.cn/contests/contest_showproblem.php?pid=1006&cid=872 题意: Z 国近年来一直在考虑遏制国土沙 ...

  4. 题解 【USACO 4.2.1】草地排水

    [USACO 4.2.1]草地排水 Description 在农夫约翰的农场上,每逢下雨,贝茜最喜欢的三叶草地就积聚了一潭水.这意味着草地被水淹没了,并且小草要继续生长还要花相当长一段时间.因此,农夫 ...

  5. mysql索引分类及实现原理

    索引分类:主键索引.唯一索引.普通索引.全文索引.组合索引 1.主键索引:即主索引,根据主键pk_clolum(length)建立索引,不允许重复,不允许空值 ALTER TABLE 'table_n ...

  6. luogu【模板】线性筛素数 (Miller-Rabin素数测试模板)

    这个感觉还是挺好理解的,就是复杂度证明看不懂~ Code: #include <cstdio> #include <algorithm> #include <cstrin ...

  7. Word:表格无法分页显示

    造冰箱的大熊猫@cnblogs 2019/1/30 今天遇到一个Word中表格无法分页显示的问题,特记录下来以备后查 我们知道,在Word中将表格不设置为“允许跨页断行”,假设表格中第二行某个单元格的 ...

  8. 「美团 CodeM 初赛 Round A」试题泛做

    最长树链 树形DP.我们发现gcd是多少其实并不重要,只要不是1就好了,此外只要有一个公共的质数就好了.计f[i][j]表示i子树内含有j因子的最长链是多少.因为一个数的不同的质因子个数是log级别的 ...

  9. UBUNTU 15.10 CAFFE安装教程(测试可用)

    转帖:https://github.com/BVLC/caffe/wiki/Ubuntu-15.10-Installation-Guide Ubuntu 15.10 have been release ...

  10. mac重启nginx时报nginx.pid不存在的解决办法

    在安装nginx后,重启时发现报 nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such f ...