cloudroam
2024-12-09 fad73d860dce9ea18a4a6d45d9bf35d6b066a008
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.mzl.flower.mapper.log;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mzl.flower.dto.request.log.OperationRecordQueryDTO;
import com.mzl.flower.dto.response.log.OperationRecordVO;
import com.mzl.flower.entity.log.OperationRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
 
/**
 * @author fanghaowei
 * @version version2.0
 * @className MemberMapper
 * @date 2024/12/02
 * @description 操作日志功能mapper
 */
@SuppressWarnings("ALL")
@Repository
public interface OperationRecordMapper extends BaseMapper<OperationRecord> {
 
    @Select("select label from t_code_value where type_code = #{typeCode} and value = #{value} and deleted = '0' limit 1")
    String getCodeType(@Param("typeCode") String typeCode,@Param("value") String value);
 
    List<OperationRecordVO> queryPage(@Param("dto") OperationRecordQueryDTO dto, Page page);
 
}