org.apache.ibatis.annotations.ResultType Java Examples
The following examples show how to use
org.apache.ibatis.annotations.ResultType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InvtHeadMapper.java From maintain with MIT License | 4 votes |
@ResultType(Long.class) @SelectProvider(type = InvtHeadSqlProvide.class, method = "getInvtHeadCountSql") Long getInvtHeadCount(String countType);
Example #2
Source File: Mapper.java From mybatis with Apache License 2.0 | 4 votes |
@Select("select * from users") @ResultType(User.class) void getAllUsers(UserResultHandler resultHandler);
Example #3
Source File: Mapper.java From mybaties with Apache License 2.0 | 4 votes |
@Select("select * from users") @ResultType(User.class) void getAllUsers(UserResultHandler resultHandler);
Example #4
Source File: SyncPaymentInfoMapper.java From maintain with MIT License | 4 votes |
@ResultType(Long.class) @Select("select last_sync_time from last_sync_payment_time where sync_id = 1") Long getSyncTime();
Example #5
Source File: CountryMapper.java From maintain with MIT License | 4 votes |
@ResultType(Long.class) @SelectProvider(type = CountrySqlProvide.class, method = "countCountriesSql") Long countCountries();
Example #6
Source File: CustomsMapper.java From maintain with MIT License | 4 votes |
@ResultType(Long.class) @SelectProvider(type = CustomsSqlProvide.class, method = "countCustomsSql") Long countCustoms();
Example #7
Source File: OrderListMapper.java From maintain with MIT License | 4 votes |
@ResultType(Long.class) @SelectProvider(type = OrderListSqlProvide.class, method = "countOrderListSql") Long countOrderList(String headGuid);
Example #8
Source File: PubRtnMapper.java From maintain with MIT License | 4 votes |
@ResultType(Long.class) @SelectProvider(type = PubRtnSqlProvide.class, method = "countPubRtnByBizGuidSql") Long countPubRtnByBizGuid(String bizGuid);
Example #9
Source File: DistBillListMapper.java From maintain with MIT License | 4 votes |
@ResultType(Long.class) @SelectProvider(type = DistBillListSqlProvide.class, method = "countDistBillListSql") Long countDistBillList(String seqNo);
Example #10
Source File: InvtHeadMapper.java From maintain with MIT License | 4 votes |
@ResultType(Integer.class) @SelectProvider(type = InvtHeadSqlProvide.class, method = "countInvtHeadSql") Integer countInvtHead(InvtHead invtHead);
Example #11
Source File: ImpPayHeadMapper.java From maintain with MIT License | 4 votes |
@ResultType(Long.class) @SelectProvider(type = ImpPayHeadSqlProvide.class, method = "countImpPayHeadSql") Long countImpPayHead(ImpPayHead impPayHead);
Example #12
Source File: ImpInvtHeadMapper.java From maintain with MIT License | 4 votes |
@ResultType(String.class) @SelectProvider(type = ImpInvtHeadSqlProvide.class, method = "getCopNoListSql") List<String> getCopNoList(String applyCode);
Example #13
Source File: BaseMapper.java From jeesuite-libs with Apache License 2.0 | 4 votes |
@SelectProvider(type = CountByExampleProvider.class, method = "countByExample") @ResultType(Long.class) long countByExample(T example);
Example #14
Source File: ProfileEntityMapper.java From jeesuite-config with Apache License 2.0 | 4 votes |
@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);
Example #15
Source File: ProfileEntityMapper.java From jeesuite-config with Apache License 2.0 | 4 votes |
@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);
Example #16
Source File: UserRoleMapper.java From xmanager with Apache License 2.0 | 4 votes |
@Select("select role_id AS roleId from user_role where user_id = #{userId}") @ResultType(Long.class) List<Long> selectRoleIdListByUserId(@Param("userId") Long userId);
Example #17
Source File: WeixinBindingEntityMapper.java From oneplatform with Apache License 2.0 | 4 votes |
@Cache @Select("SELECT union_id FROM weixin_bindings where user_id=#{userId} limit 1") @ResultType(String.class) String findWxUnionIdByUserId(@Param("userId") int userId);
Example #18
Source File: InvtListMapper.java From maintain with MIT License | 3 votes |
@ResultType(Long.class) @SelectProvider(type = InvtListSqlProvide.class, method = "countInvtListSql") Long countInvtList(String headGuid);
Example #19
Source File: SysUserEnterpriseMapper.java From hdw-dubbo with Apache License 2.0 | 2 votes |
/** * 根据监管用户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);
Example #20
Source File: SysUserRoleMapper.java From hdw-dubbo with Apache License 2.0 | 2 votes |
/** * 根据用户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);
Example #21
Source File: SysRoleResourceMapper.java From hdw-dubbo with Apache License 2.0 | 2 votes |
/** * 根据角色查找菜单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);
Example #22
Source File: CommonMapper.java From uncode-dal-all with GNU General Public License v2.0 | 2 votes |
/** * 条件查询 * 自定议显示字段传入 model.params,为空时为所有字段 * 条件传入model.QueryCriteria * @param model * @return */ @SelectProvider(method = "selectByCriteria", type = SqlTemplate.class) @ResultType(value = List.class) List<Map<String, Object>> selectByCriteria(Table model);
Example #23
Source File: CommonMapper.java From uncode-dal-all with GNU General Public License v2.0 | 2 votes |
/** * 主键查询 * 自定议显示字段传入 model.params,为空时为所有字段 * 主键参数传入 model.conditions,不能为空 * @param model * @return */ @SelectProvider(method = "selectByPrimaryKey", type = SqlTemplate.class) @ResultType(value = Map.class) Map<String, Object> selectByPrimaryKey(Table model);
Example #24
Source File: CommonMapper.java From uncode-dal-all with GNU General Public License v2.0 | 2 votes |
/** * 条件count * 条件传入model.QueryCriteria * @param model * @return */ @SelectProvider(method = "countByCriteria", type = SqlTemplate.class) @ResultType(value = Integer.class) int countByCriteria(Table model);
Example #25
Source File: SysUserEnterpriseMapper.java From hdw-dubbo with Apache License 2.0 | 2 votes |
/** * 根据监管用户名称查找关联的企业 * * @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);