Files
jsowell-charger-web/jsowell-pile/src/main/java/com/jsowell/pile/mapper/OrderPileOccupyMapper.java

94 lines
2.3 KiB
Java
Raw Normal View History

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-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
/**
* 根据桩号和枪号查询占桩中的订单
*
* @param pileSn
* @param connectorCode
*/
OrderPileOccupy queryOccupiedOrder(@Param("pileSn") String pileSn, @Param("connectorCode") String connectorCode);
/**
* 通过memberId查询挂起状态订单
* @param memberId
* @return
*/
List<OrderPileOccupy> queryUnPayOrderByMemberId(@Param("memberId") String memberId);
2023-08-18 10:15:56 +08:00
/**
* 查询占桩订单列表
* @param memberId
* @return
*/
List<OrderPileOccupyVO> getOccupyOrderInfo(String memberId);
2023-08-07 14:29:36 +08:00
}