TdCCommonProblemDao.java 1.56 KB
package com.zteits.pay.dao;
import com.zteits.pay.domain.TdCCommonProblem;
import com.zteits.pay.domain.TdCCommonProblemExample;
import com.zteits.clouds.api.dto.pay.param.TdCCommonProblemRequest;

import java.util.List;

public interface TdCCommonProblemDao {

    /**
     * 保存
     * @param tdCCommonProblem
     * @return
     */
    int saveTdCCommonProblem(TdCCommonProblem tdCCommonProblem);


    /**
     * 动态更新
     * @param record 需要更新的信息
     * @param example 更新时的where条件
     * @return
     */
    int updateByExampleSelective(TdCCommonProblem record, TdCCommonProblemExample example);


    /**
     * 根据主键更新
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(TdCCommonProblem record);

    /**
     * 动态查询
     * @param example
     * @return
     */
    List<TdCCommonProblem> selectByExample(TdCCommonProblemExample example);

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    TdCCommonProblem queryByPrimaryKey(Long id);

    /**
     * 动态查询
     * @param request
     * @return
     */
    List<TdCCommonProblem> queryTdCCommonProblem(TdCCommonProblemRequest request);

    /**
     * 逻辑批量删除
     * @param ids
     * @param opId
     * @param opName
     * @return
     */
    int batchDeleteTdCCommonProblemByPrimaryKey(List<Long> ids, String opId, String opName);

    /**
     * 动态分页查询
     * @param request
     * @return
     */
    //PageInfo<TdCCommonProblem> queryTdCCommonProblemForPage(TdCCommonProblemRequest request);

}