mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
订单分账记录
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.jsowell.pile.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -7,12 +9,9 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 订单分账记录表
|
||||
*/
|
||||
* 订单分账记录表
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@SuperBuilder
|
||||
@@ -21,30 +20,30 @@ import java.util.Date;
|
||||
@NoArgsConstructor
|
||||
public class OrderSplitRecord {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
* 主键
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
* 订单编号
|
||||
*/
|
||||
private String orderCode;
|
||||
|
||||
/**
|
||||
* 订单结算金额(总金额)
|
||||
*/
|
||||
* 分账状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 订单结算金额(总金额)
|
||||
*/
|
||||
private BigDecimal settleAmount;
|
||||
|
||||
/**
|
||||
* 汇付用户id
|
||||
*/
|
||||
* 汇付用户id
|
||||
*/
|
||||
private String adapayMemberId;
|
||||
|
||||
/**
|
||||
* 分账状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 支付对象id
|
||||
*/
|
||||
@@ -56,52 +55,52 @@ public class OrderSplitRecord {
|
||||
private String paymentConfirmId;
|
||||
|
||||
/**
|
||||
* 电费分成比例
|
||||
*/
|
||||
* 电费分成比例
|
||||
*/
|
||||
private BigDecimal electricitySplitRatio;
|
||||
|
||||
/**
|
||||
* 电费分成金额
|
||||
*/
|
||||
* 电费分成金额
|
||||
*/
|
||||
private BigDecimal electricitySplitAmount;
|
||||
|
||||
/**
|
||||
* 服务费分成比例
|
||||
*/
|
||||
* 服务费分成比例
|
||||
*/
|
||||
private BigDecimal serviceSplitRatio;
|
||||
|
||||
/**
|
||||
* 服务费分成金额
|
||||
*/
|
||||
* 服务费分成金额
|
||||
*/
|
||||
private BigDecimal serviceSplitAmount;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
* 创建人
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 删除标识(0-正常; 1-删除)
|
||||
*/
|
||||
* 删除标识(0-正常; 1-删除)
|
||||
*/
|
||||
private String delFlag;
|
||||
}
|
||||
@@ -6,9 +6,19 @@ import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
public interface OrderSplitRecordMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* 批量保存订单拆分记录
|
||||
*/
|
||||
int batchInsert(@Param("list") List<OrderSplitRecord> orderSplitRecords);
|
||||
int insertSelective(OrderSplitRecord record);
|
||||
|
||||
OrderSplitRecord selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(OrderSplitRecord record);
|
||||
|
||||
int updateBatchSelective(List<OrderSplitRecord> list);
|
||||
|
||||
int batchInsert(@Param("list") List<OrderSplitRecord> list);
|
||||
|
||||
int insertOrUpdate(OrderSplitRecord record);
|
||||
|
||||
int insertOrUpdateSelective(OrderSplitRecord record);
|
||||
}
|
||||
@@ -1,5 +1,25 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
public interface OrderSplitRecordService{
|
||||
import com.jsowell.pile.domain.OrderSplitRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface OrderSplitRecordService {
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insertOrUpdate(OrderSplitRecord record);
|
||||
|
||||
int insertOrUpdateSelective(OrderSplitRecord record);
|
||||
|
||||
int insertSelective(OrderSplitRecord record);
|
||||
|
||||
OrderSplitRecord selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(OrderSplitRecord record);
|
||||
|
||||
int updateBatchSelective(List<OrderSplitRecord> list);
|
||||
|
||||
int batchInsert(List<OrderSplitRecord> list);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,10 +7,51 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class OrderSplitRecordServiceImpl implements OrderSplitRecordService{
|
||||
public class OrderSplitRecordServiceImpl implements OrderSplitRecordService {
|
||||
|
||||
@Resource
|
||||
private OrderSplitRecordMapper orderSplitRecordMapper;
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(Integer id) {
|
||||
return orderSplitRecordMapper.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertOrUpdate(OrderSplitRecord record) {
|
||||
return orderSplitRecordMapper.insertOrUpdate(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertOrUpdateSelective(OrderSplitRecord record) {
|
||||
return orderSplitRecordMapper.insertOrUpdateSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(OrderSplitRecord record) {
|
||||
return orderSplitRecordMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrderSplitRecord selectByPrimaryKey(Integer id) {
|
||||
return orderSplitRecordMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(OrderSplitRecord record) {
|
||||
return orderSplitRecordMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateBatchSelective(List<OrderSplitRecord> list) {
|
||||
return orderSplitRecordMapper.updateBatchSelective(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int batchInsert(List<OrderSplitRecord> list) {
|
||||
return orderSplitRecordMapper.batchInsert(list);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user