mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
占桩订单表 实体类
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
package com.jsowell.pile.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 占桩订单表
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class OrderPileOccupy {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 状态(0-占桩中;1-待支付;2-无需支付;3;订单完成)
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 订单号
|
||||
*/
|
||||
private String orderCode;
|
||||
|
||||
/**
|
||||
* 交易流水号
|
||||
*/
|
||||
private String transactionCode;
|
||||
|
||||
/**
|
||||
* 会员id
|
||||
*/
|
||||
private String memberId;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
private Date endTime;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 删除标识(0-否;1-是)
|
||||
*/
|
||||
private String delFlag;
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.OrderPileOccupy;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface OrderPileOccupyMapper {
|
||||
/**
|
||||
* delete by primary key
|
||||
* @param id primaryKey
|
||||
* @return deleteCount
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* insert record to table
|
||||
* @param record the record
|
||||
* @return insert count
|
||||
*/
|
||||
int insert(OrderPileOccupy record);
|
||||
|
||||
int insertOrUpdate(OrderPileOccupy record);
|
||||
|
||||
int insertOrUpdateSelective(OrderPileOccupy record);
|
||||
|
||||
/**
|
||||
* insert record to table selective
|
||||
* @param record the record
|
||||
* @return insert count
|
||||
*/
|
||||
int insertSelective(OrderPileOccupy record);
|
||||
|
||||
/**
|
||||
* select by primary key
|
||||
* @param id primary key
|
||||
* @return object by primary key
|
||||
*/
|
||||
OrderPileOccupy selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* update record selective
|
||||
* @param record the updated record
|
||||
* @return update count
|
||||
*/
|
||||
int updateByPrimaryKeySelective(OrderPileOccupy record);
|
||||
|
||||
/**
|
||||
* update record
|
||||
* @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);
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jsowell.pile.domain.OrderPileOccupy;
|
||||
public interface OrderPileOccupyService{
|
||||
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import com.jsowell.pile.mapper.OrderPileOccupyMapper;
|
||||
import com.jsowell.pile.domain.OrderPileOccupy;
|
||||
import com.jsowell.pile.service.OrderPileOccupyService;
|
||||
@Service
|
||||
public class OrderPileOccupyServiceImpl implements OrderPileOccupyService{
|
||||
|
||||
@Resource
|
||||
private OrderPileOccupyMapper orderPileOccupyMapper;
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(Integer id) {
|
||||
return orderPileOccupyMapper.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(OrderPileOccupy record) {
|
||||
return orderPileOccupyMapper.insert(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertOrUpdate(OrderPileOccupy record) {
|
||||
return orderPileOccupyMapper.insertOrUpdate(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertOrUpdateSelective(OrderPileOccupy record) {
|
||||
return orderPileOccupyMapper.insertOrUpdateSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(OrderPileOccupy record) {
|
||||
return orderPileOccupyMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrderPileOccupy selectByPrimaryKey(Integer id) {
|
||||
return orderPileOccupyMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(OrderPileOccupy record) {
|
||||
return orderPileOccupyMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(OrderPileOccupy record) {
|
||||
return orderPileOccupyMapper.updateByPrimaryKey(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateBatch(List<OrderPileOccupy> list) {
|
||||
return orderPileOccupyMapper.updateBatch(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateBatchSelective(List<OrderPileOccupy> list) {
|
||||
return orderPileOccupyMapper.updateBatchSelective(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int batchInsert(List<OrderPileOccupy> list) {
|
||||
return orderPileOccupyMapper.batchInsert(list);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user