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.
76 lines
2.0 KiB
76 lines
2.0 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") Integer 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},count=#{newThcs} where asset_id=#{assetId} and task_id =#{taskId} ")
|
|
void updateByAssetId(@Param("assetId") Integer assetId, @Param("taskId") Integer taskId, @Param("btgyy")String btgyy,@Param("newThcs") Integer newThcs);
|
|
|
|
|
|
|
|
|
|
/**
|
|
* 根据任务id,资产id获取退回次数
|
|
*
|
|
* @param assetId 资产id
|
|
* @param taskId 任务id
|
|
* @return
|
|
*/
|
|
@Select("select * from asset_email_cp where asset_id=#{assetId} and task_id =#{taskId} ")
|
|
AssetEmailCpPo findByassetIdandTaskId(@Param("assetId") Integer assetId, @Param("taskId")Integer taskId);
|
|
|
|
|
|
|
|
/**
|
|
* 根据资产id查询资产
|
|
*
|
|
* @param id
|
|
* @return
|
|
*/
|
|
@Select(" select * from asset_email_cp where asset_id = #{id} ")
|
|
AssetEmailCpPo findDwmc(Long id);
|
|
}
|
|
|