ICustomTemplateService.java 1.99 KB
package com.lhcredit.project.business.customTemplate.service;

import com.lhcredit.framework.web.domain.AjaxResult;
import com.lhcredit.project.business.customTemplate.domain.CustomTemplate;
import com.lhcredit.project.business.reportMake.reportTemp.WebTempConfig;

import java.util.List;

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

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

    /**
     * 字段转换
     * @param customTemplate 定制模版信息
     * @return 定制模版信息
     */
    public CustomTemplate changeModel(CustomTemplate customTemplate);

    /**
     * 列表转换
     *
     * @param customTemplateList 定制模版集合
     * @return 定制模版集合
     */
    public List<CustomTemplate> changeModel(List<CustomTemplate> customTemplateList);

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

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

    /**
     * 删除定制模版信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCustomTemplateByIds(String ids);
    AjaxResult addTempLate(List<WebTempConfig.TemplateConfig> list, Integer id);

    /**
     * 查询定制模版信息
     *
     * @param orgId 定制模版ID
     * @return 定制模版信息
     */
    List<CustomTemplate> getByOrgId(Integer orgId);
}