package com.ruoyi.tc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.po.AssetBusinessFormCpPo;
import com.ruoyi.tc.entity.po.AssetCurrentCpPo;

import java.util.List;

/**
 * 资产新监管业务形态复制(asset_business_form_cp)表服务接口
 *
 * @author makejava
 * @since 2024-11-15 16:06:53
 */
public interface AssetBusinessFormCpService extends IService<AssetBusinessFormCpPo> {

    /**
     * 根据资产id查询业务主表原有id
     * @param assetId 资产id
     * @return
     */
    List<AssetBusinessFormCpPo> findByassetId(Long assetId);



    /**
     * 根据资产id和任务id删除数据
     *
     * @param assetId 资产id
     * @param taskId  任务id
     */
    void deletByAssetIdandTaskId(Long assetId, int taskId);



    /**
     * 根据taskid查询查询数据
     *
     * @param taskId 任务id
     * @return
     */
    List<AssetBusinessFormCpPo> findByTaskId(int taskId);

}

