mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
充电桩预约功能
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
package com.jsowell.pile.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 充电桩预约信息表
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@SuperBuilder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PileReservedInfo {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 会员id
|
||||
*/
|
||||
private String memberId;
|
||||
|
||||
/**
|
||||
* 充电桩编号
|
||||
*/
|
||||
private String pileSn;
|
||||
|
||||
/**
|
||||
* 状态(0-未生效;1-生效)
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 预约类型,单次 (single) 或周期性 (recurring)
|
||||
*/
|
||||
private String reservedType;
|
||||
|
||||
/**
|
||||
* 预约开始时间
|
||||
*/
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* 预约结束时间
|
||||
*/
|
||||
private Date endTime;
|
||||
|
||||
/**
|
||||
* 周期性预约的频率,对于单次预约,该字段可以为 NULL。可能的值包括 daily, weekly, monthly
|
||||
*/
|
||||
private String freq;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 删除标识(0正常;1-删除)
|
||||
*/
|
||||
private String delFlag;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileReservedInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface PileReservedInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(PileReservedInfo record);
|
||||
|
||||
int insertOrUpdate(PileReservedInfo record);
|
||||
|
||||
int insertOrUpdateSelective(PileReservedInfo record);
|
||||
|
||||
int insertSelective(PileReservedInfo record);
|
||||
|
||||
PileReservedInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(PileReservedInfo record);
|
||||
|
||||
int updateByPrimaryKey(PileReservedInfo record);
|
||||
|
||||
int updateBatch(List<PileReservedInfo> list);
|
||||
|
||||
int batchInsert(@Param("list") List<PileReservedInfo> list);
|
||||
|
||||
int updateBatchSelective(List<PileReservedInfo> list);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.PileReservedInfo;
|
||||
|
||||
public interface PileReservedInfoService {
|
||||
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(PileReservedInfo record);
|
||||
|
||||
int insertOrUpdate(PileReservedInfo record);
|
||||
|
||||
int insertOrUpdateSelective(PileReservedInfo record);
|
||||
|
||||
int insertSelective(PileReservedInfo record);
|
||||
|
||||
PileReservedInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(PileReservedInfo record);
|
||||
|
||||
int updateByPrimaryKey(PileReservedInfo record);
|
||||
|
||||
int updateBatch(List<PileReservedInfo> list);
|
||||
|
||||
int batchInsert(List<PileReservedInfo> list);
|
||||
|
||||
int updateBatchSelective(List<PileReservedInfo> list);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.mapper.PileReservedInfoMapper;
|
||||
import com.jsowell.pile.domain.PileReservedInfo;
|
||||
import com.jsowell.pile.service.PileReservedInfoService;
|
||||
|
||||
@Service
|
||||
public class PileReservedInfoServiceImpl implements PileReservedInfoService {
|
||||
|
||||
@Resource
|
||||
private PileReservedInfoMapper pileReservedInfoMapper;
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(Integer id) {
|
||||
return pileReservedInfoMapper.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(PileReservedInfo record) {
|
||||
return pileReservedInfoMapper.insert(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertOrUpdate(PileReservedInfo record) {
|
||||
return pileReservedInfoMapper.insertOrUpdate(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertOrUpdateSelective(PileReservedInfo record) {
|
||||
return pileReservedInfoMapper.insertOrUpdateSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(PileReservedInfo record) {
|
||||
return pileReservedInfoMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PileReservedInfo selectByPrimaryKey(Integer id) {
|
||||
return pileReservedInfoMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(PileReservedInfo record) {
|
||||
return pileReservedInfoMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(PileReservedInfo record) {
|
||||
return pileReservedInfoMapper.updateByPrimaryKey(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateBatch(List<PileReservedInfo> list) {
|
||||
return pileReservedInfoMapper.updateBatch(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int batchInsert(List<PileReservedInfo> list) {
|
||||
return pileReservedInfoMapper.batchInsert(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateBatchSelective(List<PileReservedInfo> list) {
|
||||
return pileReservedInfoMapper.updateBatchSelective(list);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user