CustomTemplateMapper.java 1.48 KB
package com.lhcredit.project.business.customTemplate.mapper;

import com.lhcredit.project.business.customTemplate.domain.CustomTemplate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 定制模版 数据层
 *
 * @author lhcredit
 * @date 2025-04-08
 */
public interface CustomTemplateMapper {
    /**
     * 查询定制模版信息
     *
     * @param id 定制模版ID
     * @return 定制模版信息
     */
    public CustomTemplate selectCustomTemplateById(Integer id);

    /**
     * 查询定制模版列表
     *
     * @param customTemplate 定制模版信息
     * @return 定制模版集合
     */
    public List<CustomTemplate> selectCustomTemplateList(CustomTemplate customTemplate);

    /**
     * 新增定制模版
     *
     * @param customTemplate 定制模版信息
     * @return 结果
     */
    public int insertCustomTemplate(CustomTemplate customTemplate);

    /**
     * 修改定制模版
     *
     * @param customTemplate 定制模版信息
     * @return 结果
     */
    public int updateCustomTemplate(CustomTemplate customTemplate);

    /**
     * 删除定制模版
     *
     * @param id 定制模版ID
     * @return 结果
     */
    public int deleteCustomTemplateById(Integer id);

    /**
     * 批量删除定制模版
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCustomTemplateByIds(String[] ids);

    List<CustomTemplate> getByOrgId(@Param("orgId") Integer orgId);
}