TPipeMapper.java 1.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package com.zehong.system.mapper;

import java.util.List;
import com.zehong.system.domain.TPipe;

/**
 * 管道信息Mapper接口
 * 
 * @author zehong
 * @date 2021-07-08
 */
public interface TPipeMapper 
{
    /**
     * 查询管道信息
     * 
     * @param pipeId 管道信息ID
     * @return 管道信息
     */
20 21 22 23 24 25 26 27 28
    public TPipe selectTPipeById(int pipeId);

    /**
     * 查询管道信息
     *
     * @param pipeCode 管道编号
     * @return 管道信息
     */
    public TPipe selectTPipeByCode(String pipeCode);
29 30 31 32 33 34 35 36 37

    /**
     * 查询管道信息列表
     * 
     * @param tPipe 管道信息
     * @return 管道信息集合
     */
    public List<TPipe> selectTPipeList(TPipe tPipe);

38 39 40 41
    /**
     * 统计管道总长度
     * @return
     */
42
    public double countPipeLength();
43

44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
    /**
     * 新增管道信息
     * 
     * @param tPipe 管道信息
     * @return 结果
     */
    public int insertTPipe(TPipe tPipe);

    /**
     * 修改管道信息
     * 
     * @param tPipe 管道信息
     * @return 结果
     */
    public int updateTPipe(TPipe tPipe);

    /**
     * 删除管道信息
     * 
     * @param pipeId 管道信息ID
     * @return 结果
     */
66
    public int deleteTPipeById(int pipeId);
67 68 69 70 71 72 73

    /**
     * 批量删除管道信息
     * 
     * @param pipeIds 需要删除的数据ID
     * @return 结果
     */
74
    public int deleteTPipeByIds(int[] pipeIds);
75
}