类org.apache.ibatis.annotations.ResultType源码实例Demo

下面列出了怎么用org.apache.ibatis.annotations.ResultType的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: oneplatform   文件: WeixinBindingEntityMapper.java
@Cache
@Select("SELECT union_id FROM weixin_bindings where user_id=#{userId} limit 1")
@ResultType(String.class)
String findWxUnionIdByUserId(@Param("userId") int userId);
 
源代码2 项目: xmanager   文件: UserRoleMapper.java
@Select("select role_id AS roleId from user_role where user_id = #{userId}")
@ResultType(Long.class)
List<Long> selectRoleIdListByUserId(@Param("userId") Long userId);
 
源代码3 项目: jeesuite-config   文件: ProfileEntityMapper.java
@Select("SELECT attr_name as key,attr_value as value FROM profile_extr_attrs WHERE profile=#{profile}")
@ResultType(KeyValuePair.class)
   List<KeyValuePair> findExtrAttrs(String profile);
 
源代码4 项目: jeesuite-config   文件: ProfileEntityMapper.java
@Select("SELECT attr_value FROM profile_extr_attrs WHERE profile=#{profile} and attr_name=#{name}")
@ResultType(String.class)
   String findExtrAttr(@Param("profile")String profile,@Param("name") String name);
 
源代码5 项目: jeesuite-libs   文件: BaseMapper.java
@SelectProvider(type = CountByExampleProvider.class, method = "countByExample")
@ResultType(Long.class)
long countByExample(T example);
 
源代码6 项目: maintain   文件: ImpInvtHeadMapper.java
@ResultType(String.class)
@SelectProvider(type = ImpInvtHeadSqlProvide.class, method = "getCopNoListSql")
List<String> getCopNoList(String applyCode);
 
源代码7 项目: maintain   文件: ImpPayHeadMapper.java
@ResultType(Long.class)
@SelectProvider(type = ImpPayHeadSqlProvide.class, method = "countImpPayHeadSql")
Long countImpPayHead(ImpPayHead impPayHead);
 
源代码8 项目: maintain   文件: InvtListMapper.java
@ResultType(Long.class)
@SelectProvider(type = InvtListSqlProvide.class, method = "countInvtListSql")
Long countInvtList(String headGuid);
 
源代码9 项目: maintain   文件: InvtHeadMapper.java
@ResultType(Long.class)
@SelectProvider(type = InvtHeadSqlProvide.class, method = "getInvtHeadCountSql")
Long getInvtHeadCount(String countType);
 
源代码10 项目: maintain   文件: InvtHeadMapper.java
@ResultType(Integer.class)
@SelectProvider(type = InvtHeadSqlProvide.class, method = "countInvtHeadSql")
Integer countInvtHead(InvtHead invtHead);
 
源代码11 项目: maintain   文件: DistBillListMapper.java
@ResultType(Long.class)
@SelectProvider(type = DistBillListSqlProvide.class, method = "countDistBillListSql")
Long countDistBillList(String seqNo);
 
源代码12 项目: maintain   文件: PubRtnMapper.java
@ResultType(Long.class)
@SelectProvider(type = PubRtnSqlProvide.class, method = "countPubRtnByBizGuidSql")
Long countPubRtnByBizGuid(String bizGuid);
 
源代码13 项目: maintain   文件: OrderListMapper.java
@ResultType(Long.class)
@SelectProvider(type = OrderListSqlProvide.class, method = "countOrderListSql")
Long countOrderList(String headGuid);
 
源代码14 项目: maintain   文件: CustomsMapper.java
@ResultType(Long.class)
@SelectProvider(type = CustomsSqlProvide.class, method = "countCustomsSql")
Long countCustoms();
 
源代码15 项目: maintain   文件: CountryMapper.java
@ResultType(Long.class)
@SelectProvider(type = CountrySqlProvide.class, method = "countCountriesSql")
Long countCountries();
 
源代码16 项目: maintain   文件: SyncPaymentInfoMapper.java
@ResultType(Long.class)
@Select("select last_sync_time from last_sync_payment_time where sync_id = 1")
Long getSyncTime();
 
源代码17 项目: mybaties   文件: Mapper.java
@Select("select * from users")
@ResultType(User.class)
void getAllUsers(UserResultHandler resultHandler);
 
源代码18 项目: mybatis   文件: Mapper.java
@Select("select * from users")
@ResultType(User.class)
void getAllUsers(UserResultHandler resultHandler);
 
源代码19 项目: hdw-dubbo   文件: SysUserEnterpriseMapper.java
/**
 * 根据监管用户ID查找企业
 *
 * @param userId
 * @return
 */
@Select("select t.enterprise_id as enterpriseId from t_sys_user_enterprise t LEFT JOIN t_sys_user t2 on t.user_id=t2.id where t2.id=#{userId}")
@ResultType(String.class)
List<String> selectEnterpriseIdByUserId(@Param("userId") Long userId);
 
源代码20 项目: hdw-dubbo   文件: SysUserEnterpriseMapper.java
/**
 * 根据监管用户名称查找关联的企业
 *
 * @param loginName
 * @return
 */
@Select("select t.enterprise_id as enterpriseId from t_sys_user_enterprise t LEFT JOIN t_sys_user t2 on t.user_id=t2.id where t2.login_name=#{loginName}")
@ResultType(String.class)
List<String> selectEnterpriseIdByUserName(@Param("loginName") String loginName);
 
源代码21 项目: hdw-dubbo   文件: SysRoleResourceMapper.java
/**
 * 根据角色查找菜单ID集合
 *
 * @param roleId
 * @return
 */
@Select("select t.resource_id from t_sys_role_resource t where t.role_id=#{roleId}")
@ResultType(Long.class)
List<Long> selectResourceIdListByRoleId(@Param("roleId") Long roleId);
 
源代码22 项目: hdw-dubbo   文件: SysUserRoleMapper.java
/**
 * 根据用户ID查找用户角色ID集合
 *
 * @param userId
 * @return
 */
@Select("select t.role_id from t_sys_user_role t where t.user_id=#{userId}")
@ResultType(Long.class)
List<Long> selectRoleIdListByUserId(@Param("userId") Long userId);
 
源代码23 项目: uncode-dal-all   文件: CommonMapper.java
/**
 * 条件查询
 * 自定议显示字段传入 model.params,为空时为所有字段
 * 条件传入model.QueryCriteria
 * @param model
 * @return
 */
@SelectProvider(method = "selectByCriteria", type = SqlTemplate.class)
@ResultType(value = List.class)
List<Map<String, Object>> selectByCriteria(Table model);
 
源代码24 项目: uncode-dal-all   文件: CommonMapper.java
/**
 * 主键查询
 * 自定议显示字段传入 model.params,为空时为所有字段
 * 主键参数传入 model.conditions,不能为空
 * @param model
 * @return
 */
@SelectProvider(method = "selectByPrimaryKey", type = SqlTemplate.class)
@ResultType(value = Map.class)
Map<String, Object> selectByPrimaryKey(Table model);
 
源代码25 项目: uncode-dal-all   文件: CommonMapper.java
/**
 * 条件count
 * 条件传入model.QueryCriteria
 * @param model
 * @return
 */
@SelectProvider(method = "countByCriteria", type = SqlTemplate.class)
@ResultType(value = Integer.class)
int countByCriteria(Table model);