liurunyu
2024-11-08 87a49ccc47abbb3505403d174001ceb3a2d2341d
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoOp/OpeWorkOrderMapper.java
@@ -2,12 +2,17 @@
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoOp.OpeWorkOrder;
import com.dy.pipIrrGlobal.voOp.VoWorkOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/**
 * @author ZhuBaoMin
 * @date 2024-11-06 11:33
 * @LastEditTime 2024-11-06 11:33
 * @date 2024-11-07 15:38
 * @LastEditTime 2024-11-07 15:38
 * @Description
 */
@@ -24,4 +29,41 @@
    int updateByPrimaryKeySelective(OpeWorkOrder record);
    int updateByPrimaryKey(OpeWorkOrder record);
    /**
     * 根据主键获取工单视图对象
     * @param workOrderId
     * @return
     */
    VoWorkOrder getWorkOrderById(Long workOrderId);
    /**
     * 获取指定派单人的指定未删除工单,删除工单前判断使用使用
     * @param dispatcherId
     * @param workOrderId
     * @return
     */
    OpeWorkOrder getWorkOrder(@Param("dispatcherId")Long dispatcherId, @Param("workOrderId")Long workOrderId);
    /**
     * 逻辑删除一个未删除的工单
     * @param workOrderId
     * @return
     */
    Integer deleteWorkOrder(Long workOrderId);
    /**
     * 根据指定条件获取工单数量
     * @param params
     * @return
     */
    Long getWorkOrdersCount(Map<?, ?> params);
    /**
     * 根据指定条件获取工单
     * @param params
     * @return
     */
    List<VoWorkOrder> getWorkOrders(Map<?, ?> params);
}