TWorkOrderMapper.java 1.92 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
package com.zehong.system.mapper;

import java.util.List;
import java.util.Map;

import com.zehong.system.domain.TUserLocation;
import com.zehong.system.domain.TWorkOrder;
import com.zehong.system.domain.vo.HomepageVo;
import org.apache.ibatis.annotations.Param;

/**
 * 燃气任务Mapper接口
 * 
 * @author zehong
 * @date 2022-02-10
 */
public interface TWorkOrderMapper 
{
    /**
     * 查询燃气任务
     * 
     * @param workId 燃气任务ID
     * @return 燃气任务
     */
    public TWorkOrder selectTWorkOrderById(Long workId);

    /**
     * 查询燃气任务列表
     * 
     * @param tWorkOrder 燃气任务
     * @return 燃气任务集合
     */
    public List<TWorkOrder> selectTWorkOrderList(TWorkOrder tWorkOrder);
    public List<Map<String,Object>> selectTWorkOrderListCount(TWorkOrder tWorkOrder);
    public List<TUserLocation> selectTuserList(TWorkOrder tWorkOrder);

    /**
     * 燃气任务统计
     *
     * @return 燃气任务统计
     */
    public HomepageVo countTWorkOrder();

    /**
     * 新增燃气任务
     * 
     * @param tWorkOrder 燃气任务
     * @return 结果
     */
    public int insertTWorkOrder(TWorkOrder tWorkOrder);
    public Integer insertTUserLocationList(List<TUserLocation> list);

    /**
     * 修改燃气任务
     * 
     * @param tWorkOrder 燃气任务
     * @return 结果
     */
    public int updateTWorkOrder(TWorkOrder tWorkOrder);

    /**
     * 删除燃气任务
     * 
     * @param workId 燃气任务ID
     * @return 结果
     */
    public int deleteTWorkOrderById(Long workId);

    /**
     * 批量删除燃气任务
     * 
     * @param workIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTWorkOrderByIds(Long[] workIds);

    /**
     * 查询任务完成率
     * @param enterpriseId
     * @return
     */
    public Map<String,Object> selectWorkOrderNum(@Param("enterpriseIds")String[] enterpriseIds);
}