Java 类org.apache.ibatis.annotations.Param 实例源码

项目:taskana    文件:ClassificationMapper.java   
@Select("<script>"
    + "SELECT ID, KEY, CATEGORY, TYPE, DOMAIN, NAME, VALID_UNTIL "
    + "FROM CLASSIFICATION "
    + "WHERE KEY = #{key} "
    + "AND DOMAIN = #{domain}"
    + "ORDER BY VALID_FROM DESC"
    + "</script>")
@Results({ @Result(property = "id", column = "ID"),
    @Result(property = "key", column = "KEY"),
    @Result(property = "category", column = "CATEGORY"),
    @Result(property = "type", column = "TYPE"),
    @Result(property = "domain", column = "DOMAIN"),
    @Result(property = "name", column = "NAME"),
    @Result(property = "validUntil", column = "VALID_UNTIL") })
List<ClassificationSummaryImpl> getAllClassificationsWithKey(@Param("key") String key,
    @Param("domain") String domain);
项目:taskana    文件:AttachmentMapper.java   
@Select("SELECT ID, TASK_ID, CREATED, MODIFIED, CLASSIFICATION_KEY, REF_COMPANY, REF_SYSTEM, REF_INSTANCE, REF_TYPE, REF_VALUE, CHANNEL, RECEIVED, CUSTOM_ATTRIBUTES "
    + "FROM ATTACHMENT "
    + "WHERE TASK_ID = #{taskId}")
@Results(value = {
    @Result(property = "id", column = "ID"),
    @Result(property = "taskId", column = "TASK_ID"),
    @Result(property = "created", column = "CREATED"),
    @Result(property = "modified", column = "MODIFIED"),
    @Result(property = "classification", column = "CLASSIFICATION_KEY", javaType = Classification.class,
        one = @One(select = CLASSIFICATION_FINDBYID)),
    @Result(property = "objectReference.company", column = "REF_COMPANY"),
    @Result(property = "objectReference.system", column = "REF_SYSTEM"),
    @Result(property = "objectReference.systemInstance", column = "REF_INSTANCE"),
    @Result(property = "objectReference.type", column = "REF_TYPE"),
    @Result(property = "objectReference.value", column = "REF_VALUE"),
    @Result(property = "channel", column = "CHANNEL"),
    @Result(property = "received", column = "RECEIVED"),
    @Result(property = "customAttributes", column = "CUSTOM_ATTRIBUTES", jdbcType = JdbcType.BLOB,
        javaType = Map.class, typeHandler = MapTypeHandler.class),
})
List<AttachmentImpl> findAttachmentsByTaskId(@Param("taskId") String taskId);
项目:taskana    文件:WorkbasketMapper.java   
@Select("SELECT * FROM WORKBASKET WHERE id IN (SELECT TARGET_ID FROM DISTRIBUTION_TARGETS WHERE SOURCE_ID = #{id})")
@Results(value = {
    @Result(property = "id", column = "ID"),
    @Result(property = "key", column = "KEY"),
    @Result(property = "name", column = "NAME"),
    @Result(property = "description", column = "DESCRIPTION"),
    @Result(property = "owner", column = "OWNER"),
    @Result(property = "domain", column = "DOMAIN"),
    @Result(property = "type", column = "TYPE"),

    @Result(property = "orgLevel1", column = "ORG_LEVEL_1"),
    @Result(property = "orgLevel2", column = "ORG_LEVEL_2"),
    @Result(property = "orgLevel3", column = "ORG_LEVEL_3"),
    @Result(property = "orgLevel4", column = "ORG_LEVEL_4")})

List<WorkbasketSummary> findByDistributionTargets(@Param("id") String id);
项目:taskana    文件:TaskMonitorMapper.java   
@Select("<script>"
    + "SELECT STATE, COUNT (STATE) as counter "
    + "FROM TASK "
    + "WHERE STATE IN (<foreach collection='status' item='state' separator=','>#{state}</foreach>) "
    + "GROUP BY STATE"
    + "</script>")
@Results({ @Result(column = "STATE", property = "state"), @Result(column = "counter", property = "counter") })
List<TaskStateCounter> getTaskCountForState(@Param("status") List<TaskState> status);
项目:tulingchat    文件:UserMapper.java   
@Select("SELECT * from users where username=#{username}")
User findone(@Param("username") String username);
项目:mybatis-dynamic-query    文件:SelectByDynamicQueryMapper.java   
@SelectProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
List<T> selectByDynamicQuery(@Param(MapperConstants.DYNAMIC_QUERY) DynamicQuery<T> dynamicQuery);
项目:dota    文件:HeroMapper.java   
void update(@Param("id") int id, @Param("name") String name
, @Param("nameEn")String nameEn, @Param("headImg") String headImg
, @Param("primeAttr") int primeAttr, @Param("bio")String bio);
项目:backbone    文件:DynamicMapper.java   
@UpdateProvider( type = DynamicQueryBuilder.class, method = "buildUpdate")
int update(@Param(PARAM_ENTITY_NAME) T bean);
项目:kiimate    文件:ExtensionMapper.java   
List<ExtensionDai.Providers> queryProviders(
@Param("providerId") String providerId);
项目:kiimate    文件:ExtensionMapper.java   
ExtensionDai.Record selectLastExtensionByName(
@Param("ownerId") String ownerId,
@Param("group") String group,
@Param("name") String name,
@Param("tree") String tree,
@Param("endTime") Date endTime);
项目:loc-framework    文件:DemoInfoRead.java   
@Select("select `id`, `name`, `age`, `score` from demo_table where name = #{name}")
DemoInfo getInfoByName(@Param("name") String name);
项目:kiimate    文件:GlimpseMapper.java   
GlimpsesDai.Publication loadGlimpse(
@Param("subscriberId") String subscriberId,
@Param("id") String id);
项目:Auts_Assert_manager    文件:GuestMapper.java   
@Select("SELECT id FROM sw_guest WHERE device_mac = #{deviceMac} and router_mac=#{routerMac} and status=0 limit 1")
long findByName(@Param("routerMac") String routerMac, @Param("deviceMac") String deviceMac);
项目:kiimate    文件:ExtensionMapper.java   
ExtensionDai.Record selectLastExtensionById(
@Param("id") String id,
@Param("endTime") Date endTime);
项目:epay    文件:OrderGoodsMapper.java   
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table order_goods
 *
 * @mbg.generated
 */
int updateByExampleSelective(@Param("record") OrderGoods record, @Param("example") OrderGoodsCriteria example);
项目:Educational-Management-System    文件:InfoDAO.java   
/**
 * 查找通知
 * @param id
 * @return
 */
InfoEntity selectInfo(@Param("id") int id);
项目:epay    文件:PayNotifyLogMapper.java   
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table pay_notify_log
 *
 * @mbg.generated
 */
int updateByExampleSelective(@Param("record") PayNotifyLog record, @Param("example") PayNotifyLogCriteria example);
项目:epay    文件:PayNotifyLogMapper.java   
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table pay_notify_log
 *
 * @mbg.generated
 */
int updateByExampleWithBLOBs(@Param("record") PayNotifyLog record, @Param("example") PayNotifyLogCriteria example);
项目:OMIPlatform    文件:EduCourseDao.java   
/**
 * 查询type类型的前N个,按照时间排序
 *
 * @param type
 * @param topN
 * @return
 */
List<EduCourse> findByType(@Param("type") int type, @Param("n") int topN);
项目:jsf-core    文件:SynZkDBLogDao.java   
/**
 * 创建SynZkDBLog
 * @param SynZkDBLog
 * @return
 * @throws Exception
 */
public int create(@Param("logList") List<SynZkDBLog> logList) throws Exception;
项目:wechat-mall    文件:ClassificationDao.java   
/**
* 通过辅助工具Assist的条件更新Classification中的数据,包括null值
* @param value
* @param assist
* @return
*/
  int updateClassification(@Param("enti") Classification value, @Param("assist") Assist assist);
项目:Educational-Management-System    文件:CourseDAO.java   
/**
 * 修改课程学分为空
 * @param courseName
 * @param nature
 * @param department
 * @param courseId
 */
int updateCourseNoCre(@Param("courseName") String courseName, @Param("nature") String nature,
                      @Param("department") String department, @Param("courseId") String courseId);
项目:mybatis-plus-mini    文件:UserMapper.java   
/**
 * 根据主键批量查询
 *
 * @param pagination
 * @param ids
 * @return
 */
List<User> forSelect(RowBounds pagination, @Param("ids") List<String> ids);
项目:jsf-core    文件:JsfUserDao.java   
/**
 * @param from
 * @return
 */
User getByMail(@Param("mail")String from);
项目:OMIPlatform    文件:EduCatalogDao.java   
/**
 * 根据课程id 删除相关目录
 *
 * @param cid 课程id
 * @return 影响的行数
 */
int deleteByEducid(@Param("cid") int cid);
项目:OMIPlatform    文件:ShopProductCommentDao.java   
/**
 * 获取某商品评论总量
 * @param pid 商品Id
 * @return
 */
int countContentByPid(@Param("pid") Integer pid);
项目:tulingchat    文件:CommentMapper.java   
/**
 * 批量更新
 */
@UpdateProvider(type = CommentSqlProvider.class, method = "batchUpdate")
void batchUpdate(@Param("list") List<Comment> comments);
项目:springbootWeb    文件:CommLoggerMapper.java   
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table t_comm_logger
 *
 * @mbg.generated
 */
int updateByExampleSelective(@Param("record") CommLogger record, @Param("example") CommLoggerExample example);
项目:zxbangban    文件:WorkerInfoDao.java   
/**
 * 更新工人认证状态
 * @param workerid 工人id
 * @param cert 认证状态
 * @return int
 */
int editCert(@Param("workerid")long workerid,@Param("cert")boolean cert);
项目:belling-admin    文件:SettingsMapper.java   
/**
 * 通过Key查询Value
 * 
 * @param key
 * @return
 */
public String getValueByKey(@Param("key") String key);
项目:Educational-Management-System    文件:CourseDAO.java   
/**
 * 添加课程,无学分
 * @param courseId
 * @param courseName
 * @param nature
 * @param department
 */
void insertCourseNoCre(@Param("courseId") String courseId, @Param("courseName") String courseName, @Param("nature") String nature,
                       @Param("department") String department);
项目:OMIPlatform    文件:EduRegisterDao.java   
/**
 * 检查是否参加课程
 *
 * @param uid
 * @param rid
 * @return
 */
int checkCourseRegister(@Param("uid") int uid, @Param("rid") int rid);
项目:wechat-mall    文件:HistoryDao.java   
/**
* 通过辅助工具Assist的条件更新History中属性不为null的数据
* @param value
* @param assist
* @return
*/
  int updateNonEmptyHistory(@Param("enti") History value, @Param("assist") Assist assist);
项目:OMIPlatform    文件:EduRegisterDao.java   
/**
 * 查询某用户参与的课程
 *
 * @param uid  用户id
 * @param type
 * @param page
 * @return
 */
List<EduCourse> findCourseByType(@Param("uid") int uid, @Param("type") int type, @Param("page") PageAndSorted page);
项目:jsf-core    文件:ScanClientDao.java   
/**
 * 获取状态为死亡的节点
 * @param list
 * @return
 * @throws Exception
 */
public List<Client> getOfflineClientsByIns(@Param("list") List<JsfIns> list) throws Exception;
项目:MyBatis-Ignite-L2-cache-POC    文件:PostsMapper.java   
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table public.posts
 *
 * @mbg.generated Tue May 23 21:55:33 PDT 2017
 */
int updateByExampleSelective(@Param("record") Posts record, @Param("example") PostsExample example);
项目:OMIPlatform    文件:OfficialResouceDao.java   
/**
 * 通过资源类型id查询资源,无分页
 * @param cid 资源类型
 * @return 资源集合
 */
List<OfficialResouce> findResourceByCidNoPage(@Param("cid") Integer cid,@Param("start") Integer start,@Param("end") Integer end);
项目:wechat-mall    文件:ShopedListDao.java   
/**
* 通过辅助工具Assist的条件更新ShopedList中属性不为null的数据
* @param value
* @param assist
* @return
*/
  int updateNonEmptyShopedList(@Param("enti") ShopedList value, @Param("assist") Assist assist);
项目:Elune    文件:UserMapper.java   
int updateByExampleSelective(@Param("record") UserEntity record, @Param("example") UserEntityExample example);
项目:Elune    文件:ChannelMapper.java   
int updateByExample(@Param("record") ChannelEntity record, @Param("example") ChannelEntityExample example);