2023-08-07 14:29:36 +08:00
|
|
|
package com.jsowell.pile.mapper;
|
|
|
|
|
|
|
|
|
|
import com.jsowell.pile.domain.OrderPileOccupy;
|
2023-08-07 16:53:42 +08:00
|
|
|
import com.jsowell.pile.dto.QueryOccupyOrderDTO;
|
2023-08-19 10:17:09 +08:00
|
|
|
import com.jsowell.pile.vo.uniapp.OccupyOrderDetailVO;
|
2023-08-18 10:15:56 +08:00
|
|
|
import com.jsowell.pile.vo.uniapp.OrderPileOccupyVO;
|
2023-08-07 14:29:36 +08:00
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
2023-08-07 14:35:13 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2023-08-07 14:29:36 +08:00
|
|
|
public interface OrderPileOccupyMapper {
|
|
|
|
|
/**
|
|
|
|
|
* delete by primary key
|
2023-08-07 14:35:13 +08:00
|
|
|
*
|
2023-08-07 14:29:36 +08:00
|
|
|
* @param id primaryKey
|
|
|
|
|
* @return deleteCount
|
|
|
|
|
*/
|
|
|
|
|
int deleteByPrimaryKey(Integer id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* insert record to table
|
2023-08-07 14:35:13 +08:00
|
|
|
*
|
2023-08-07 14:29:36 +08:00
|
|
|
* @param record the record
|
|
|
|
|
* @return insert count
|
|
|
|
|
*/
|
|
|
|
|
int insert(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
int insertOrUpdate(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
int insertOrUpdateSelective(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* insert record to table selective
|
2023-08-07 14:35:13 +08:00
|
|
|
*
|
2023-08-07 14:29:36 +08:00
|
|
|
* @param record the record
|
|
|
|
|
* @return insert count
|
|
|
|
|
*/
|
|
|
|
|
int insertSelective(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* select by primary key
|
2023-08-07 14:35:13 +08:00
|
|
|
*
|
2023-08-07 14:29:36 +08:00
|
|
|
* @param id primary key
|
|
|
|
|
* @return object by primary key
|
|
|
|
|
*/
|
|
|
|
|
OrderPileOccupy selectByPrimaryKey(Integer id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* update record selective
|
2023-08-07 14:35:13 +08:00
|
|
|
*
|
2023-08-07 14:29:36 +08:00
|
|
|
* @param record the updated record
|
|
|
|
|
* @return update count
|
|
|
|
|
*/
|
|
|
|
|
int updateByPrimaryKeySelective(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* update record
|
2023-08-07 14:35:13 +08:00
|
|
|
*
|
2023-08-07 14:29:36 +08:00
|
|
|
* @param record the updated record
|
|
|
|
|
* @return update count
|
|
|
|
|
*/
|
|
|
|
|
int updateByPrimaryKey(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
int updateBatch(List<OrderPileOccupy> list);
|
|
|
|
|
|
|
|
|
|
int updateBatchSelective(List<OrderPileOccupy> list);
|
|
|
|
|
|
|
|
|
|
int batchInsert(@Param("list") List<OrderPileOccupy> list);
|
2023-08-07 16:53:42 +08:00
|
|
|
|
|
|
|
|
OrderPileOccupy queryByOccupyCode(@Param("occupyCode") String occupyCode);
|
|
|
|
|
|
|
|
|
|
List<OrderPileOccupy> queryOccupyOrderList(@Param("dto") QueryOccupyOrderDTO dto);
|
2023-08-14 16:44:39 +08:00
|
|
|
|
2023-08-14 17:09:06 +08:00
|
|
|
/**
|
|
|
|
|
* 通过memberId查询挂起状态订单
|
|
|
|
|
* @param memberId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<OrderPileOccupy> queryUnPayOrderByMemberId(@Param("memberId") String memberId);
|
2023-08-18 10:15:56 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询占桩订单列表
|
2023-08-21 17:12:53 +08:00
|
|
|
* @param dto
|
2023-08-18 10:15:56 +08:00
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-21 17:12:53 +08:00
|
|
|
List<OrderPileOccupyVO> getOccupyOrderInfo(QueryOccupyOrderDTO dto);
|
2023-08-18 11:40:23 +08:00
|
|
|
|
|
|
|
|
/**
|
2023-08-18 16:03:19 +08:00
|
|
|
* 根据桩号和枪号 查询占桩状态的占桩订单
|
|
|
|
|
*
|
2023-08-18 11:40:23 +08:00
|
|
|
* @param pileSn
|
|
|
|
|
* @param connectorCode
|
|
|
|
|
*/
|
2023-08-18 16:03:19 +08:00
|
|
|
List<OrderPileOccupy> queryOccupiedOrder(@Param("pileSn") String pileSn, @Param("connectorCode") String connectorCode);
|
2023-08-18 15:52:52 +08:00
|
|
|
|
2023-08-18 16:03:19 +08:00
|
|
|
/**
|
|
|
|
|
* 根据桩号和枪号 查询草稿状态的占桩订单
|
|
|
|
|
* @param pileSn
|
|
|
|
|
* @param connectorCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<OrderPileOccupy> queryDraftOccupyOrder(@Param("pileSn") String pileSn, @Param("connectorCode") String connectorCode);
|
2023-08-19 10:17:09 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取占桩订单详情
|
|
|
|
|
* @param occupyCode
|
|
|
|
|
*/
|
|
|
|
|
OccupyOrderDetailVO getOccupyOrderDetail(String occupyCode);
|
2023-08-07 14:29:36 +08:00
|
|
|
}
|