zjh
2025-02-21 2c785c3d4513daea9deb5c7edbb17a9f17111d25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
}