org.apache.ibatis.annotations.Param Java Examples

The following examples show how to use org.apache.ibatis.annotations.Param. 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: UserMapper.java    From yshopmall with Apache License 2.0 4 votes vote down vote up
@Update( "update yx_user set status = #{status} where uid = #{id}")
void updateOnstatus(@Param("status") int status, @Param("id") int id);
 
Example #2
Source File: ApplicationMapper.java    From hmdm-server with Apache License 2.0 4 votes vote down vote up
@Select("SELECT COUNT(*) > 0 " +
        "FROM configurationApplications " +
        "WHERE configurationApplications.applicationId=#{id}")
boolean isApplicationUsedInConfigurations(@Param("id") Integer applicationId);
 
Example #3
Source File: UploadedFileMapper.java    From hmdm-server with Apache License 2.0 4 votes vote down vote up
@Delete("DELETE FROM uploadedFiles WHERE id = #{id}")
void deleteFile(@Param("id") int fileId);
 
Example #4
Source File: DeviceMapper.java    From hmdm-server with Apache License 2.0 4 votes vote down vote up
List<Group> getAllGroupsByValue(@Param("customerId") int customerId,
@Param("value") String value,
@Param("userId") Integer userId);
 
Example #5
Source File: WxActGoldeneggsPrizesDao.java    From jeewx-boot with Apache License 2.0 4 votes vote down vote up
public WxActGoldeneggsPrizes queryByActIdAndAwardId(@Param("actId")String actId,
@Param("awardsId")String awardsId);
 
Example #6
Source File: XxlJobLogDao.java    From open-capacity-platform with Apache License 2.0 4 votes vote down vote up
public List<Map<String, Object>> triggerCountByDay(@Param("from") Date from,
@Param("to") Date to);
 
Example #7
Source File: PointLogMapper.java    From hyena with Apache License 2.0 4 votes vote down vote up
List<PointLogBi> listPointLogBi(@Param(value = "pointTableName") String pointTableName,
@Param(value = "param") ListPointLogParam param);
 
Example #8
Source File: SystemUserMapper.java    From api-boot with Apache License 2.0 2 votes vote down vote up
/**
 * 根据用户名 以及 状态统计
 *
 * @param userName
 * @param userStatus
 * @return
 */
Long countByUserNameAndStatus(@Param("userName") String userName, @Param("status") Integer userStatus);
 
Example #9
Source File: UserMapper.java    From spring-boot-demo with MIT License 2 votes vote down vote up
/**
 * 保存用户
 *
 * @param user 用户
 * @return 成功 - {@code 1} 失败 - {@code 0}
 */
int saveUser(@Param("user") User user);
 
Example #10
Source File: StockUserCapitalFundMapper.java    From charging_pile_cloud with MIT License 2 votes vote down vote up
/**
 * 根据记录id更新资产
 *
 * @param id
 * @param money
 * @return
 */
int updateRechargeById(@Param("id") Long id, @Param("money") BigDecimal money);
 
Example #11
Source File: DtsDelPictureMapper.java    From dts-shop with GNU Lesser General Public License v3.0 2 votes vote down vote up
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table dts_del_picture
 *
 * @mbg.generated
 * @project https://github.com/itfsw/mybatis-generator-plugin
 */
List<DtsDelPicture> selectByExampleSelective(@Param("example") DtsDelPictureExample example, @Param("selective") DtsDelPicture.Column ... selective);
 
Example #12
Source File: SysDictMapper.java    From jeecg-cloud with Apache License 2.0 2 votes vote down vote up
/**
 * 通过关键字查询出字典表
 * @param table
 * @param text
 * @param code
 * @param keyword
 * @return
 */
@Deprecated
public List<DictModel> queryTableDictItems(@Param("table") String table,@Param("text") String text,@Param("code") String code,@Param("keyword") String keyword);
 
Example #13
Source File: SystemUserMapper.java    From api-boot with Apache License 2.0 2 votes vote down vote up
/**
 * 根据status查询多条记录
 *
 * @param userStatus
 * @return
 */
List<SystemUser> findByStatus(@Param("status") Integer userStatus);
 
Example #14
Source File: LitemallAdMapper.java    From BigDataPlatform with GNU General Public License v3.0 2 votes vote down vote up
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table litemall_ad
 *
 * @mbg.generated
 */
LitemallAd selectOneByExampleSelective(@Param("example") LitemallAdExample example, @Param("selective") LitemallAd.Column ... selective);
 
Example #15
Source File: LitemallRegionMapper.java    From mall with MIT License 2 votes vote down vote up
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table litemall_region
 *
 * @mbg.generated
 */
int updateByExampleSelective(@Param("record") LitemallRegion record, @Param("example") LitemallRegionExample example);
 
Example #16
Source File: DtsGoodsMapper.java    From dts-shop with GNU Lesser General Public License v3.0 2 votes vote down vote up
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table dts_goods
 *
 * @mbg.generated
 */
int updateByExampleSelective(@Param("record") DtsGoods record, @Param("example") DtsGoodsExample example);
 
Example #17
Source File: LitemallGrouponRulesMapper.java    From BigDataPlatform with GNU General Public License v3.0 2 votes vote down vote up
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table litemall_groupon_rules
 *
 * @mbg.generated
 */
int logicalDeleteByExample(@Param("example") LitemallGrouponRulesExample example);
 
Example #18
Source File: PmsProductAttributeValueDao.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 批量创建
 */
int insertList(@Param("list")List<PmsProductAttributeValue> productAttributeValueList);
 
Example #19
Source File: UserMapper.java    From SENS with GNU General Public License v3.0 2 votes vote down vote up
/**
 * 根据角色Id获得用户
 *
 * @param roleId 角色Id
 * @param user 条件
 * @param page 分页信息
 * @return 用户列表
 */
List<User> findByRoleIdAndCondition(@Param("roleId") Long roleId,
                                    @Param("user") User user, Page page);
 
Example #20
Source File: LitemallCollectMapper.java    From mall with MIT License 2 votes vote down vote up
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table litemall_collect
 *
 * @mbg.generated
 * @project https://github.com/itfsw/mybatis-generator-plugin
 */
int logicalDeleteByExample(@Param("example") LitemallCollectExample example);
 
Example #21
Source File: SysDeptMapper.java    From supplierShop with MIT License 2 votes vote down vote up
/**
 * 校验部门名称是否唯一
 * 
 * @param deptName 部门名称
 * @param parentId 父部门ID
 * @return 结果
 */
public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
 
Example #22
Source File: SysUserMapper.java    From jeecg-cloud with Apache License 2.0 2 votes vote down vote up
/**
  * 通过用户账号查询用户信息
 * @param username
 * @return
 */
public SysUser getUserByName(@Param("username") String username);
 
Example #23
Source File: LitemallRoleMapper.java    From mall with MIT License 2 votes vote down vote up
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table litemall_role
 *
 * @mbg.generated
 * @project https://github.com/itfsw/mybatis-generator-plugin
 */
int logicalDeleteByExample(@Param("example") LitemallRoleExample example);
 
Example #24
Source File: LitemallCollectMapper.java    From mall with MIT License 2 votes vote down vote up
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table litemall_collect
 *
 * @mbg.generated
 * @project https://github.com/itfsw/mybatis-generator-plugin
 */
LitemallCollect selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallCollect.Column ... selective);
 
Example #25
Source File: StockDao.java    From SDIMS with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * 订单入库时候,根据商品名和仓库名找到库存记录
 * @param goodsName
 * @param repositoryName
 * @return
 */
Stock queryStockByGoodsNameAndRepositoryName(@Param("goodsName")String goodsName,@Param("repositoryName")String repositoryName);
 
Example #26
Source File: PmsProductCategoryMapper.java    From xmall with MIT License votes vote down vote up
int updateByExample(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example); 
Example #27
Source File: SmsDescriptionMapper.java    From HIS with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") SmsDescription record, @Param("example") SmsDescriptionExample example); 
Example #28
Source File: UmsRolePermissionRelationMapper.java    From mall-learning with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") UmsRolePermissionRelation record, @Param("example") UmsRolePermissionRelationExample example); 
Example #29
Source File: DmsNonDrugItemRecordMapper.java    From HIS with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") DmsNonDrugItemRecord record, @Param("example") DmsNonDrugItemRecordExample example); 
Example #30
Source File: TransactionMapper.java    From seata-demo with Apache License 2.0 votes vote down vote up
void updateBranchTransactionToCommitted(@Param("xid") String xid, @Param("branchId") Long branchId);