mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 分成功能
This commit is contained in:
@@ -11,7 +11,7 @@ import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 订单分账信息表
|
||||
* 订单分账记录表
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@@ -19,7 +19,7 @@ import java.util.Date;
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class OrderSplitInfo {
|
||||
public class OrderSplitRecord {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@@ -40,21 +40,31 @@ public class OrderSplitInfo {
|
||||
*/
|
||||
private String adapayMemberId;
|
||||
|
||||
/**
|
||||
* 分润比例
|
||||
*/
|
||||
private BigDecimal shareRatio;
|
||||
|
||||
/**
|
||||
* 分润金额
|
||||
*/
|
||||
private BigDecimal shareAmount;
|
||||
|
||||
/**
|
||||
* 分账状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 电费分成比例
|
||||
*/
|
||||
private BigDecimal electricitySplitRatio;
|
||||
|
||||
/**
|
||||
* 电费分成金额
|
||||
*/
|
||||
private BigDecimal electricitySplitAmount;
|
||||
|
||||
/**
|
||||
* 服务费分成比例
|
||||
*/
|
||||
private BigDecimal serviceSplitRatio;
|
||||
|
||||
/**
|
||||
* 服务费分成金额
|
||||
*/
|
||||
private BigDecimal serviceSplitAmount;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@@ -1,30 +0,0 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.OrderSplitInfo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface OrderSplitInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(OrderSplitInfo record);
|
||||
|
||||
int insertOrUpdate(OrderSplitInfo record);
|
||||
|
||||
int insertOrUpdateSelective(OrderSplitInfo record);
|
||||
|
||||
int insertSelective(OrderSplitInfo record);
|
||||
|
||||
OrderSplitInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(OrderSplitInfo record);
|
||||
|
||||
int updateByPrimaryKey(OrderSplitInfo record);
|
||||
|
||||
int updateBatch(List<OrderSplitInfo> list);
|
||||
|
||||
int updateBatchSelective(List<OrderSplitInfo> list);
|
||||
|
||||
int batchInsert(@Param("list") List<OrderSplitInfo> list);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.OrderSplitRecord;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface OrderSplitRecordMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(OrderSplitRecord record);
|
||||
|
||||
int insertOrUpdate(OrderSplitRecord record);
|
||||
|
||||
int insertOrUpdateSelective(OrderSplitRecord record);
|
||||
|
||||
int insertSelective(OrderSplitRecord record);
|
||||
|
||||
OrderSplitRecord selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(OrderSplitRecord record);
|
||||
|
||||
int updateByPrimaryKey(OrderSplitRecord record);
|
||||
|
||||
int updateBatch(List<OrderSplitRecord> list);
|
||||
|
||||
int updateBatchSelective(List<OrderSplitRecord> list);
|
||||
|
||||
int batchInsert(@Param("list") List<OrderSplitRecord> list);
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import com.jsowell.pile.domain.OrderSplitInfo;
|
||||
|
||||
import java.util.List;
|
||||
public interface OrderSplitInfoService{
|
||||
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(OrderSplitInfo record);
|
||||
|
||||
int insertOrUpdate(OrderSplitInfo record);
|
||||
|
||||
int insertOrUpdateSelective(OrderSplitInfo record);
|
||||
|
||||
int insertSelective(OrderSplitInfo record);
|
||||
|
||||
OrderSplitInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(OrderSplitInfo record);
|
||||
|
||||
int updateByPrimaryKey(OrderSplitInfo record);
|
||||
|
||||
int updateBatch(List<OrderSplitInfo> list);
|
||||
|
||||
int updateBatchSelective(List<OrderSplitInfo> list);
|
||||
|
||||
int batchInsert(List<OrderSplitInfo> list);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import com.jsowell.pile.domain.OrderSplitRecord;
|
||||
|
||||
import java.util.List;
|
||||
public interface OrderSplitRecordService{
|
||||
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(OrderSplitRecord record);
|
||||
|
||||
int insertOrUpdate(OrderSplitRecord record);
|
||||
|
||||
int insertOrUpdateSelective(OrderSplitRecord record);
|
||||
|
||||
int insertSelective(OrderSplitRecord record);
|
||||
|
||||
OrderSplitRecord selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(OrderSplitRecord record);
|
||||
|
||||
int updateByPrimaryKey(OrderSplitRecord record);
|
||||
|
||||
int updateBatch(List<OrderSplitRecord> list);
|
||||
|
||||
int updateBatchSelective(List<OrderSplitRecord> list);
|
||||
|
||||
int batchInsert(List<OrderSplitRecord> list);
|
||||
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import com.jsowell.pile.domain.OrderSplitInfo;
|
||||
import com.jsowell.pile.mapper.OrderSplitInfoMapper;
|
||||
import com.jsowell.pile.service.OrderSplitInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
@Service
|
||||
public class OrderSplitInfoServiceImpl implements OrderSplitInfoService{
|
||||
|
||||
@Resource
|
||||
private OrderSplitInfoMapper orderSplitInfoMapper;
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(Integer id) {
|
||||
return orderSplitInfoMapper.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(OrderSplitInfo record) {
|
||||
return orderSplitInfoMapper.insert(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertOrUpdate(OrderSplitInfo record) {
|
||||
return orderSplitInfoMapper.insertOrUpdate(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertOrUpdateSelective(OrderSplitInfo record) {
|
||||
return orderSplitInfoMapper.insertOrUpdateSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(OrderSplitInfo record) {
|
||||
return orderSplitInfoMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrderSplitInfo selectByPrimaryKey(Integer id) {
|
||||
return orderSplitInfoMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(OrderSplitInfo record) {
|
||||
return orderSplitInfoMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(OrderSplitInfo record) {
|
||||
return orderSplitInfoMapper.updateByPrimaryKey(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateBatch(List<OrderSplitInfo> list) {
|
||||
return orderSplitInfoMapper.updateBatch(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateBatchSelective(List<OrderSplitInfo> list) {
|
||||
return orderSplitInfoMapper.updateBatchSelective(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int batchInsert(List<OrderSplitInfo> list) {
|
||||
return orderSplitInfoMapper.batchInsert(list);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import com.jsowell.pile.domain.OrderSplitRecord;
|
||||
import com.jsowell.pile.mapper.OrderSplitRecordMapper;
|
||||
import com.jsowell.pile.service.OrderSplitRecordService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
@Service
|
||||
public class OrderSplitRecordServiceImpl implements OrderSplitRecordService{
|
||||
|
||||
@Resource
|
||||
private OrderSplitRecordMapper orderSplitRecordMapper;
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(Integer id) {
|
||||
return orderSplitRecordMapper.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(OrderSplitRecord record) {
|
||||
return orderSplitRecordMapper.insert(record);
|
||||
}
|
||||
|
||||
@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 updateByPrimaryKey(OrderSplitRecord record) {
|
||||
return orderSplitRecordMapper.updateByPrimaryKey(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateBatch(List<OrderSplitRecord> list) {
|
||||
return orderSplitRecordMapper.updateBatch(list);
|
||||
}
|
||||
|
||||
@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