You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.po.AssetEmailCpPo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
/**
* 电子邮件资产表(asset_email_cp)表数据库访问层
*
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetEmailCpMapper extends BaseMapper<AssetEmailCpPo> {
/**
* 根据资产id和任务id删除数据
*
* @param assetId 资产id
* @param taskId 任务id
*/
@Delete("delete from asset_email_cp where asset_id=#{assetId} and task_id =#{taskId} ")
void deletByAssetIdandTaskId(@Param("assetId") Long assetId, @Param("taskId") int taskId);
/**
* 根据taskid查询查询数据
*
* @param taskId 任务id
* @return
*/
@Select("select * from asset_email_cp where task_id=#{taskId}")
List<AssetEmailCpPo> findByTaskId(@Param("taskId") int taskId);
/**
* 修改不通过原因
*
* @param assetId 资产id
* @param taskId 任务id
* @param btgyy 不通过原因
*/
@Update("update asset_email_cp set btgyy=#{btgyy} where asset_id=#{assetId} and task_id =#{taskId} ")
void updateByAssetId(@Param("assetId") Integer assetId, @Param("taskId") Integer taskId, @Param("btgyy")String btgyy);
}