mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-23 04:25:21 +08:00
58 lines
1.4 KiB
Java
58 lines
1.4 KiB
Java
|
|
package com.jsowell.pile.service;
|
|||
|
|
|
|||
|
|
import java.util.List;
|
|||
|
|
|
|||
|
|
import com.jsowell.pile.dto.PileReservedDTO;
|
|||
|
|
import com.jsowell.pile.domain.PileReservationInfo;
|
|||
|
|
|
|||
|
|
public interface PileReservationInfoService {
|
|||
|
|
int deleteByPrimaryKey(Integer id);
|
|||
|
|
|
|||
|
|
int insert(PileReservationInfo record);
|
|||
|
|
|
|||
|
|
int insertOrUpdate(PileReservationInfo record);
|
|||
|
|
|
|||
|
|
int insertOrUpdateSelective(PileReservationInfo record);
|
|||
|
|
|
|||
|
|
int insertSelective(PileReservationInfo record);
|
|||
|
|
|
|||
|
|
PileReservationInfo selectByPrimaryKey(Integer id);
|
|||
|
|
|
|||
|
|
int updateByPrimaryKeySelective(PileReservationInfo record);
|
|||
|
|
|
|||
|
|
int updateByPrimaryKey(PileReservationInfo record);
|
|||
|
|
|
|||
|
|
int updateBatch(List<PileReservationInfo> list);
|
|||
|
|
|
|||
|
|
int batchInsert(List<PileReservationInfo> list);
|
|||
|
|
|
|||
|
|
int updateBatchSelective(List<PileReservationInfo> list);
|
|||
|
|
|
|||
|
|
List<PileReservationInfo> getReservationsByMemberIdAndPileSn(String memberId, String pileSn);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 启动预约
|
|||
|
|
* @param dto
|
|||
|
|
*/
|
|||
|
|
void activateReserved(PileReservedDTO dto);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 关闭预约
|
|||
|
|
* @param dto
|
|||
|
|
*/
|
|||
|
|
void deactivateReserved(PileReservedDTO dto);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 根据充电枪口编号发送预约指令
|
|||
|
|
* @param pileConnectorCode
|
|||
|
|
*/
|
|||
|
|
void pushReservedByPileConnectorCode(String pileConnectorCode);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 拔枪时,根据充电桩枪口编号关闭仅一次的预约
|
|||
|
|
* @param pileConnectorCode
|
|||
|
|
*/
|
|||
|
|
void cancelOneTimeReservation(String pileConnectorCode);
|
|||
|
|
}
|
|||
|
|
|