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 Project: open-capacity-platform   Author: open-capacity-platform   File: XxlJobLogDao.java    License: 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 #2
Source Project: hmdm-server   Author: h-mdm   File: UploadedFileMapper.java    License: Apache License 2.0 4 votes vote down vote up
@Delete("DELETE FROM uploadedFiles WHERE id = #{id}")
void deleteFile(@Param("id") int fileId);
 
Example #3
Source Project: hmdm-server   Author: h-mdm   File: ApplicationMapper.java    License: 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 #4
Source Project: yshopmall   Author: guchengwuyue   File: UserMapper.java    License: 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 #5
Source Project: hmdm-server   Author: h-mdm   File: DeviceMapper.java    License: 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 #6
Source Project: hyena   Author: alphajiang   File: PointLogMapper.java    License: Apache License 2.0 4 votes vote down vote up
List<PointLogBi> listPointLogBi(@Param(value = "pointTableName") String pointTableName,
@Param(value = "param") ListPointLogParam param);
 
Example #7
Source Project: jeewx-boot   Author: zhangdaiscott   File: WxActGoldeneggsPrizesDao.java    License: Apache License 2.0 4 votes vote down vote up
public WxActGoldeneggsPrizes queryByActIdAndAwardId(@Param("actId")String actId,
@Param("awardsId")String awardsId);
 
Example #8
Source Project: BigDataPlatform   Author: KangU4   File: LitemallGrouponRulesMapper.java    License: 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 #9
Source Project: dts-shop   Author: qiguliuxing   File: DtsGoodsMapper.java    License: 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 #10
Source Project: spring-boot-demo   Author: jiangsongHB   File: UserMapper.java    License: MIT License 2 votes vote down vote up
/**
 * 保存用户
 *
 * @param user 用户
 * @return 成功 - {@code 1} 失败 - {@code 0}
 */
int saveUser(@Param("user") User user);
 
Example #11
Source Project: api-boot   Author: minbox-projects   File: SystemUserMapper.java    License: 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 #12
Source Project: SDIMS   Author: Lotharing   File: StockDao.java    License: 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 #13
Source Project: mall   Author: bigspiders   File: LitemallCollectMapper.java    License: 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 #14
Source Project: supplierShop   Author: guchengwuyue   File: SysDeptMapper.java    License: 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 #15
Source Project: mall   Author: bigspiders   File: LitemallCollectMapper.java    License: 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 #16
Source Project: charging_pile_cloud   Author: konglingyinxia   File: StockUserCapitalFundMapper.java    License: 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 #17
Source Project: jeecg-cloud   Author: zhangdaiscott   File: SysDictMapper.java    License: 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 #18
Source Project: dts-shop   Author: qiguliuxing   File: DtsDelPictureMapper.java    License: 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 #19
Source Project: SENS   Author: saysky   File: UserMapper.java    License: 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 Project: mall   Author: bigspiders   File: LitemallRoleMapper.java    License: 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 #21
Source Project: mall-swarm   Author: macrozheng   File: PmsProductAttributeValueDao.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * 批量创建
 */
int insertList(@Param("list")List<PmsProductAttributeValue> productAttributeValueList);
 
Example #22
Source Project: BigDataPlatform   Author: KangU4   File: LitemallAdMapper.java    License: 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 #23
Source Project: api-boot   Author: minbox-projects   File: SystemUserMapper.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * 根据status查询多条记录
 *
 * @param userStatus
 * @return
 */
List<SystemUser> findByStatus(@Param("status") Integer userStatus);
 
Example #24
Source Project: mall   Author: bigspiders   File: LitemallRegionMapper.java    License: 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 #25
Source Project: jeecg-cloud   Author: zhangdaiscott   File: SysUserMapper.java    License: Apache License 2.0 2 votes vote down vote up
/**
  * 通过用户账号查询用户信息
 * @param username
 * @return
 */
public SysUser getUserByName(@Param("username") String username);
 
Example #26
Source Project: HIS   Author: ZainZhao   File: SmsSkdRuleItemMapper.java    License: Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") SmsSkdRuleItem record, @Param("example") SmsSkdRuleItemExample example); 
Example #27
Source Project: HIS   Author: TANGKUO   File: DmsMedicinePrescriptionRecordMapper.java    License: Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") DmsMedicinePrescriptionRecord record, @Param("example") DmsMedicinePrescriptionRecordExample example); 
Example #28
Source Project: HIS   Author: ZainZhao   File: SmsPermissionMapper.java    License: Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") SmsPermission record, @Param("example") SmsPermissionExample example); 
Example #29
Source Project: HIS   Author: ZainZhao   File: DmsHerbalPrescriptionRecordMapper.java    License: Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") DmsHerbalPrescriptionRecord record, @Param("example") DmsHerbalPrescriptionRecordExample example); 
Example #30
Source Project: HIS   Author: TANGKUO   File: BmsSettlementCatMapper.java    License: Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") BmsSettlementCat record, @Param("example") BmsSettlementCatExample example);