2023-08-07 14:29:36 +08:00
|
|
|
package com.jsowell.pile.service;
|
|
|
|
|
|
|
|
|
|
import com.jsowell.pile.domain.OrderPileOccupy;
|
2023-08-18 09:52:12 +08:00
|
|
|
import com.jsowell.pile.dto.PayOrderDTO;
|
2023-08-18 10:15:56 +08:00
|
|
|
import com.jsowell.pile.dto.GenerateOccupyOrderDTO;
|
2023-08-07 16:53:42 +08:00
|
|
|
import com.jsowell.pile.dto.QueryOccupyOrderDTO;
|
2023-08-18 12:02:34 +08:00
|
|
|
import com.jsowell.pile.dto.RemoteGroundLockDTO;
|
2023-08-18 16:22:08 +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
|
|
|
|
2023-08-07 14:35:13 +08:00
|
|
|
import java.util.List;
|
2023-08-18 09:52:12 +08:00
|
|
|
import java.util.Map;
|
|
|
|
|
|
2023-08-07 14:35:13 +08:00
|
|
|
public interface OrderPileOccupyService{
|
2023-08-07 14:29:36 +08:00
|
|
|
int deleteByPrimaryKey(Integer id);
|
|
|
|
|
|
|
|
|
|
int insert(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
int insertOrUpdate(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
int insertOrUpdateSelective(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
int insertSelective(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
OrderPileOccupy selectByPrimaryKey(Integer id);
|
|
|
|
|
|
|
|
|
|
int updateByPrimaryKeySelective(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
int updateByPrimaryKey(OrderPileOccupy record);
|
|
|
|
|
|
|
|
|
|
int updateBatch(List<OrderPileOccupy> list);
|
|
|
|
|
|
|
|
|
|
int updateBatchSelective(List<OrderPileOccupy> list);
|
|
|
|
|
|
|
|
|
|
int batchInsert(List<OrderPileOccupy> list);
|
|
|
|
|
|
2023-08-07 16:53:42 +08:00
|
|
|
OrderPileOccupy queryByOccupyCode(String occupyCode);
|
|
|
|
|
|
|
|
|
|
List<OrderPileOccupy> queryOccupyOrderList(QueryOccupyOrderDTO dto);
|
|
|
|
|
|
2023-08-07 15:19:20 +08:00
|
|
|
/**
|
|
|
|
|
* 生成占桩订单
|
|
|
|
|
*/
|
2023-08-18 10:15:56 +08:00
|
|
|
String generateOccupyPileOrder(GenerateOccupyOrderDTO dto);
|
2023-08-08 08:43:50 +08:00
|
|
|
|
2023-08-15 09:34:59 +08:00
|
|
|
/**
|
|
|
|
|
* 停止并计算占桩订单
|
|
|
|
|
* @param pileSn
|
|
|
|
|
* @param connectorCode
|
|
|
|
|
*/
|
2023-08-14 16:44:39 +08:00
|
|
|
void stopOccupyPileOrder(String pileSn, String connectorCode);
|
|
|
|
|
|
2023-08-14 17:09:06 +08:00
|
|
|
/**
|
|
|
|
|
* 通过memberid查询挂起状态订单
|
|
|
|
|
* @param memberId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<OrderPileOccupy> queryUnPayOrderByMemberId(String memberId);
|
2023-08-18 10:15:56 +08:00
|
|
|
|
2023-08-18 09:52:12 +08:00
|
|
|
Map<String, Object> payOccupyPileOrder(PayOrderDTO dto);
|
2023-08-18 11:14:21 +08:00
|
|
|
|
2023-08-18 10:15:56 +08:00
|
|
|
/**
|
|
|
|
|
* 查询占桩订单列表
|
|
|
|
|
* @param memberId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<OrderPileOccupyVO> getOccupyOrderInfo(String memberId);
|
2023-08-18 11:40:23 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据桩编号、枪口号查询最近一条占桩订单
|
|
|
|
|
* @param pileSn
|
|
|
|
|
* @param connectorCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-18 15:52:52 +08:00
|
|
|
OrderPileOccupy getDraftOccupyOrder(String pileSn, String connectorCode);
|
2023-08-18 12:02:34 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 控制地锁方法
|
|
|
|
|
* @param dto
|
|
|
|
|
*/
|
|
|
|
|
void remoteGroundLock(RemoteGroundLockDTO dto);
|
2023-08-18 16:17:28 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取占桩订单详情
|
|
|
|
|
* @param occupyCode
|
|
|
|
|
*/
|
|
|
|
|
OccupyOrderDetailVO getOccupyOrderDetail(String occupyCode);
|
2023-08-07 14:29:36 +08:00
|
|
|
}
|