package com.ltkj.tduck.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.ltkj.tduck.domain.UserFormViewCountEntity;
|
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Update;
|
|
/**
|
* 用户表单查看次数Mapper接口
|
*
|
* @author tduck
|
* @date 2023-04-04 21:29:39
|
*/
|
public interface UserFormViewCountMapper extends BaseMapper<UserFormViewCountEntity> {
|
|
|
/**
|
* 查看次数自增
|
*
|
* @param formKey 表单key
|
*/
|
@Update("update fm_user_form_view_count set count = count + 1 , update_time=now() where form_key = #{formKey}")
|
void incrementCount(@Param("formKey") String formKey);
|
}
|