订单实时记录

This commit is contained in:
2023-05-10 15:01:29 +08:00
parent 8489e175fd
commit daa178b87a
5 changed files with 240 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
package com.jsowell.pile.domain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import java.time.LocalDateTime;
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderMonitorData {
/**
* 主键
*/
private Integer id;
/**
* 订单编号
*/
private String orderCode;
/**
* 实时监控数据
*/
private String monitorData;
/**
* 创建时间
*/
private LocalDateTime cerateTime;
}

View File

@@ -0,0 +1,47 @@
package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.OrderMonitorData;
public interface OrderMonitorDataMapper {
/**
* 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(OrderMonitorData record);
/**
* insert record to table selective
* @param record the record
* @return insert count
*/
int insertSelective(OrderMonitorData record);
/**
* select by primary key
* @param id primary key
* @return object by primary key
*/
OrderMonitorData selectByPrimaryKey(Integer id);
/**
* update record selective
* @param record the updated record
* @return update count
*/
int updateByPrimaryKeySelective(OrderMonitorData record);
/**
* update record
* @param record the updated record
* @return update count
*/
int updateByPrimaryKey(OrderMonitorData record);
}

View File

@@ -0,0 +1,19 @@
package com.jsowell.pile.service;
import com.jsowell.pile.domain.OrderMonitorData;
public interface OrderMonitorDataService{
public int deleteByPrimaryKey(Integer id);
public int insert(OrderMonitorData record);
public int insertSelective(OrderMonitorData record);
public OrderMonitorData selectByPrimaryKey(Integer id);
public int updateByPrimaryKeySelective(OrderMonitorData record);
public int updateByPrimaryKey(OrderMonitorData record);
}

View File

@@ -0,0 +1,45 @@
package com.jsowell.pile.service.impl;
import com.jsowell.pile.domain.OrderMonitorData;
import com.jsowell.pile.mapper.OrderMonitorDataMapper;
import com.jsowell.pile.service.OrderMonitorDataService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service
public class OrderMonitorDataServiceImpl implements OrderMonitorDataService {
@Resource
private OrderMonitorDataMapper orderMonitorDataMapper;
public int deleteByPrimaryKey(Integer id) {
return orderMonitorDataMapper.deleteByPrimaryKey(id);
}
public int insert(OrderMonitorData record) {
return orderMonitorDataMapper.insert(record);
}
public int insertSelective(OrderMonitorData record) {
return orderMonitorDataMapper.insertSelective(record);
}
public OrderMonitorData selectByPrimaryKey(Integer id) {
return orderMonitorDataMapper.selectByPrimaryKey(id);
}
public int updateByPrimaryKeySelective(OrderMonitorData record) {
return orderMonitorDataMapper.updateByPrimaryKeySelective(record);
}
public int updateByPrimaryKey(OrderMonitorData record) {
return orderMonitorDataMapper.updateByPrimaryKey(record);
}
}