@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. BZOJ1030 [JSOI2007]文本生成器[DP+AC自动机]

    我学到现在才是初三学弟的水平..哭 这里相当于求长度为$m$的,字符集$\{A...Z\}$的且不包含任一模式串的文本串个数.这是一个典型的AC自动机匹配计数问题. 设$f_{i,j}$表示在AC自动 ...

  2. prompt不生效之解决

    配置文件路径: /data/mysql/mysql3306/my.cnf [client]port = 3306 [mysql]auto-rehashprompt="\\u@\\h:\\p ...

  3. Python之multiprocessing模块的使用

    作用:Python多进程处理模块,解决threading模块不能使用多个CPU内核,避免Python GIL(全局解释器)带来的计算瓶颈. 1.开启多进程的简单示例,处理函数无带参数 #!/usr/b ...

  4. ssh2整合: No bean named 'sessionFactory' is defined(求大神指点)

    applicationContext.xml 中已经配置 <bean id="sessionFactory" class="org.springframework. ...

  5. pdf缩略图生成上传解决方案

    前言:因自己负责的项目(jetty内嵌启动的SpringMvc)中需要实现文件上传,而自己对java文件上传这一块未接触过,且对 Http 协议较模糊,故这次采用渐进的方式来学习文件上传的原理与实践. ...

  6. Java进阶知识01 Struts2下的 jquery+ajax+struts 技术实现异步刷新功能

    1.效果图示 横线上方的部分不动(没有刷新),下方实现刷新(异步刷新) 2.实现步骤 jquery+ajax+struts技术实现异步刷新功能的步骤:    1.需要用到 jquery+ajax+st ...

  7. TTTTTTTTTTTTTT hdu 5763 Another Meaning 哈希+dp

    Another Meaning Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)T ...

  8. 医院设置x

    医院设置x   题目描述 Description 设有一棵二叉树,如下图 其中,圈中数字表示结点居民的人口.圈边上数字表示结点编号,.现在要求在某个结点上建立一个医院,使所有居民所走的路程之和为最小, ...

  9. Python代码整洁之道(一)

    很多新手在开始学一门新的语言的时候,往往会忽视一些不应该忽视的细节,比如变量命名和函数命名以及注释等一些内容的规范性,久而久之养成了一种习惯.对此呢,我特意收集了一些适合所有学习 Python 的人, ...

  10. python 异常和弹出框

    import tkinter.messagebox try: fileContent = open("abnormal.txt") fileContent.close() prin ...