mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-12 19:29:52 +08:00
update 分成功能
This commit is contained in:
@@ -11,7 +11,7 @@ import java.math.BigDecimal;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 订单分账信息表
|
* 订单分账记录表
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@@ -19,7 +19,7 @@ import java.util.Date;
|
|||||||
@Builder
|
@Builder
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public class OrderSplitInfo {
|
public class OrderSplitRecord {
|
||||||
/**
|
/**
|
||||||
* 主键
|
* 主键
|
||||||
*/
|
*/
|
||||||
@@ -40,21 +40,31 @@ public class OrderSplitInfo {
|
|||||||
*/
|
*/
|
||||||
private String adapayMemberId;
|
private String adapayMemberId;
|
||||||
|
|
||||||
/**
|
|
||||||
* 分润比例
|
|
||||||
*/
|
|
||||||
private BigDecimal shareRatio;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分润金额
|
|
||||||
*/
|
|
||||||
private BigDecimal shareAmount;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分账状态
|
* 分账状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,603 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.jsowell.pile.mapper.OrderSplitRecordMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.jsowell.pile.domain.OrderSplitRecord">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
<!--@Table order_split_record-->
|
||||||
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
|
<result column="order_code" jdbcType="VARCHAR" property="orderCode" />
|
||||||
|
<result column="settle_amount" jdbcType="DECIMAL" property="settleAmount" />
|
||||||
|
<result column="adapay_member_id" jdbcType="VARCHAR" property="adapayMemberId" />
|
||||||
|
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||||
|
<result column="electricity_split_ratio" jdbcType="DECIMAL" property="electricitySplitRatio" />
|
||||||
|
<result column="electricity_split_amount" jdbcType="DECIMAL" property="electricitySplitAmount" />
|
||||||
|
<result column="service_split_ratio" jdbcType="DECIMAL" property="serviceSplitRatio" />
|
||||||
|
<result column="service_split_amount" jdbcType="DECIMAL" property="serviceSplitAmount" />
|
||||||
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||||
|
<result column="cerate_by" jdbcType="VARCHAR" property="cerateBy" />
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
|
<result column="del_flag" jdbcType="VARCHAR" property="delFlag" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
id, order_code, settle_amount, adapay_member_id, `status`, electricity_split_ratio,
|
||||||
|
electricity_split_amount, service_split_ratio, service_split_amount, remark, cerate_by,
|
||||||
|
create_time, update_by, update_time, del_flag
|
||||||
|
</sql>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from order_split_record
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
delete from order_split_record
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.jsowell.pile.domain.OrderSplitRecord">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into order_split_record (id, order_code, settle_amount,
|
||||||
|
adapay_member_id, `status`, electricity_split_ratio,
|
||||||
|
electricity_split_amount, service_split_ratio,
|
||||||
|
service_split_amount, remark, cerate_by,
|
||||||
|
create_time, update_by, update_time,
|
||||||
|
del_flag)
|
||||||
|
values (#{id,jdbcType=INTEGER}, #{orderCode,jdbcType=VARCHAR}, #{settleAmount,jdbcType=DECIMAL},
|
||||||
|
#{adapayMemberId,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{electricitySplitRatio,jdbcType=DECIMAL},
|
||||||
|
#{electricitySplitAmount,jdbcType=DECIMAL}, #{serviceSplitRatio,jdbcType=DECIMAL},
|
||||||
|
#{serviceSplitAmount,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, #{cerateBy,jdbcType=VARCHAR},
|
||||||
|
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
#{delFlag,jdbcType=VARCHAR})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.jsowell.pile.domain.OrderSplitRecord">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into order_split_record
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="orderCode != null">
|
||||||
|
order_code,
|
||||||
|
</if>
|
||||||
|
<if test="settleAmount != null">
|
||||||
|
settle_amount,
|
||||||
|
</if>
|
||||||
|
<if test="adapayMemberId != null">
|
||||||
|
adapay_member_id,
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
`status`,
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitRatio != null">
|
||||||
|
electricity_split_ratio,
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitAmount != null">
|
||||||
|
electricity_split_amount,
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitRatio != null">
|
||||||
|
service_split_ratio,
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitAmount != null">
|
||||||
|
service_split_amount,
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
remark,
|
||||||
|
</if>
|
||||||
|
<if test="cerateBy != null">
|
||||||
|
cerate_by,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateBy != null">
|
||||||
|
update_by,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="delFlag != null">
|
||||||
|
del_flag,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="orderCode != null">
|
||||||
|
#{orderCode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="settleAmount != null">
|
||||||
|
#{settleAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="adapayMemberId != null">
|
||||||
|
#{adapayMemberId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
#{status,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitRatio != null">
|
||||||
|
#{electricitySplitRatio,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitAmount != null">
|
||||||
|
#{electricitySplitAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitRatio != null">
|
||||||
|
#{serviceSplitRatio,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitAmount != null">
|
||||||
|
#{serviceSplitAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
#{remark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="cerateBy != null">
|
||||||
|
#{cerateBy,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateBy != null">
|
||||||
|
#{updateBy,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="delFlag != null">
|
||||||
|
#{delFlag,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.jsowell.pile.domain.OrderSplitRecord">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
update order_split_record
|
||||||
|
<set>
|
||||||
|
<if test="orderCode != null">
|
||||||
|
order_code = #{orderCode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="settleAmount != null">
|
||||||
|
settle_amount = #{settleAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="adapayMemberId != null">
|
||||||
|
adapay_member_id = #{adapayMemberId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
`status` = #{status,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitRatio != null">
|
||||||
|
electricity_split_ratio = #{electricitySplitRatio,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitAmount != null">
|
||||||
|
electricity_split_amount = #{electricitySplitAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitRatio != null">
|
||||||
|
service_split_ratio = #{serviceSplitRatio,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitAmount != null">
|
||||||
|
service_split_amount = #{serviceSplitAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="cerateBy != null">
|
||||||
|
cerate_by = #{cerateBy,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateBy != null">
|
||||||
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="delFlag != null">
|
||||||
|
del_flag = #{delFlag,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.jsowell.pile.domain.OrderSplitRecord">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
update order_split_record
|
||||||
|
set order_code = #{orderCode,jdbcType=VARCHAR},
|
||||||
|
settle_amount = #{settleAmount,jdbcType=DECIMAL},
|
||||||
|
adapay_member_id = #{adapayMemberId,jdbcType=VARCHAR},
|
||||||
|
`status` = #{status,jdbcType=VARCHAR},
|
||||||
|
electricity_split_ratio = #{electricitySplitRatio,jdbcType=DECIMAL},
|
||||||
|
electricity_split_amount = #{electricitySplitAmount,jdbcType=DECIMAL},
|
||||||
|
service_split_ratio = #{serviceSplitRatio,jdbcType=DECIMAL},
|
||||||
|
service_split_amount = #{serviceSplitAmount,jdbcType=DECIMAL},
|
||||||
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
|
cerate_by = #{cerateBy,jdbcType=VARCHAR},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
del_flag = #{delFlag,jdbcType=VARCHAR}
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</update>
|
||||||
|
<update id="updateBatch" parameterType="java.util.List">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
update order_split_record
|
||||||
|
<trim prefix="set" suffixOverrides=",">
|
||||||
|
<trim prefix="order_code = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="settle_amount = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.settleAmount,jdbcType=DECIMAL}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="adapay_member_id = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.adapayMemberId,jdbcType=VARCHAR}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="`status` = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=VARCHAR}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="electricity_split_ratio = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.electricitySplitRatio,jdbcType=DECIMAL}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="electricity_split_amount = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.electricitySplitAmount,jdbcType=DECIMAL}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="service_split_ratio = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.serviceSplitRatio,jdbcType=DECIMAL}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="service_split_amount = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.serviceSplitAmount,jdbcType=DECIMAL}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="remark = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="cerate_by = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.cerateBy,jdbcType=VARCHAR}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="create_time = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="update_by = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="update_time = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="del_flag = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=VARCHAR}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</trim>
|
||||||
|
where id in
|
||||||
|
<foreach close=")" collection="list" item="item" open="(" separator=", ">
|
||||||
|
#{item.id,jdbcType=INTEGER}
|
||||||
|
</foreach>
|
||||||
|
</update>
|
||||||
|
<update id="updateBatchSelective" parameterType="java.util.List">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
update order_split_record
|
||||||
|
<trim prefix="set" suffixOverrides=",">
|
||||||
|
<trim prefix="order_code = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.orderCode != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="settle_amount = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.settleAmount != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.settleAmount,jdbcType=DECIMAL}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="adapay_member_id = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.adapayMemberId != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.adapayMemberId,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="`status` = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.status != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="electricity_split_ratio = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.electricitySplitRatio != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.electricitySplitRatio,jdbcType=DECIMAL}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="electricity_split_amount = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.electricitySplitAmount != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.electricitySplitAmount,jdbcType=DECIMAL}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="service_split_ratio = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.serviceSplitRatio != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.serviceSplitRatio,jdbcType=DECIMAL}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="service_split_amount = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.serviceSplitAmount != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.serviceSplitAmount,jdbcType=DECIMAL}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="remark = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.remark != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="cerate_by = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.cerateBy != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.cerateBy,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="create_time = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.createTime != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="update_by = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.updateBy != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="update_time = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.updateTime != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="del_flag = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.delFlag != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</trim>
|
||||||
|
where id in
|
||||||
|
<foreach close=")" collection="list" item="item" open="(" separator=", ">
|
||||||
|
#{item.id,jdbcType=INTEGER}
|
||||||
|
</foreach>
|
||||||
|
</update>
|
||||||
|
<insert id="batchInsert" parameterType="map">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into order_split_record
|
||||||
|
(id, order_code, settle_amount, adapay_member_id, `status`, electricity_split_ratio,
|
||||||
|
electricity_split_amount, service_split_ratio, service_split_amount, remark, cerate_by,
|
||||||
|
create_time, update_by, update_time, del_flag)
|
||||||
|
values
|
||||||
|
<foreach collection="list" item="item" separator=",">
|
||||||
|
(#{item.id,jdbcType=INTEGER}, #{item.orderCode,jdbcType=VARCHAR}, #{item.settleAmount,jdbcType=DECIMAL},
|
||||||
|
#{item.adapayMemberId,jdbcType=VARCHAR}, #{item.status,jdbcType=VARCHAR}, #{item.electricitySplitRatio,jdbcType=DECIMAL},
|
||||||
|
#{item.electricitySplitAmount,jdbcType=DECIMAL}, #{item.serviceSplitRatio,jdbcType=DECIMAL},
|
||||||
|
#{item.serviceSplitAmount,jdbcType=DECIMAL}, #{item.remark,jdbcType=VARCHAR}, #{item.cerateBy,jdbcType=VARCHAR},
|
||||||
|
#{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
#{item.delFlag,jdbcType=VARCHAR})
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
<insert id="insertOrUpdate" parameterType="com.jsowell.pile.domain.OrderSplitRecord">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into order_split_record
|
||||||
|
(id, order_code, settle_amount, adapay_member_id, `status`, electricity_split_ratio,
|
||||||
|
electricity_split_amount, service_split_ratio, service_split_amount, remark, cerate_by,
|
||||||
|
create_time, update_by, update_time, del_flag)
|
||||||
|
values
|
||||||
|
(#{id,jdbcType=INTEGER}, #{orderCode,jdbcType=VARCHAR}, #{settleAmount,jdbcType=DECIMAL},
|
||||||
|
#{adapayMemberId,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{electricitySplitRatio,jdbcType=DECIMAL},
|
||||||
|
#{electricitySplitAmount,jdbcType=DECIMAL}, #{serviceSplitRatio,jdbcType=DECIMAL},
|
||||||
|
#{serviceSplitAmount,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, #{cerateBy,jdbcType=VARCHAR},
|
||||||
|
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
#{delFlag,jdbcType=VARCHAR})
|
||||||
|
on duplicate key update
|
||||||
|
id = #{id,jdbcType=INTEGER},
|
||||||
|
order_code = #{orderCode,jdbcType=VARCHAR},
|
||||||
|
settle_amount = #{settleAmount,jdbcType=DECIMAL},
|
||||||
|
adapay_member_id = #{adapayMemberId,jdbcType=VARCHAR},
|
||||||
|
`status` = #{status,jdbcType=VARCHAR},
|
||||||
|
electricity_split_ratio = #{electricitySplitRatio,jdbcType=DECIMAL},
|
||||||
|
electricity_split_amount = #{electricitySplitAmount,jdbcType=DECIMAL},
|
||||||
|
service_split_ratio = #{serviceSplitRatio,jdbcType=DECIMAL},
|
||||||
|
service_split_amount = #{serviceSplitAmount,jdbcType=DECIMAL},
|
||||||
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
|
cerate_by = #{cerateBy,jdbcType=VARCHAR},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
del_flag = #{delFlag,jdbcType=VARCHAR}
|
||||||
|
</insert>
|
||||||
|
<insert id="insertOrUpdateSelective" parameterType="com.jsowell.pile.domain.OrderSplitRecord">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into order_split_record
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="orderCode != null">
|
||||||
|
order_code,
|
||||||
|
</if>
|
||||||
|
<if test="settleAmount != null">
|
||||||
|
settle_amount,
|
||||||
|
</if>
|
||||||
|
<if test="adapayMemberId != null">
|
||||||
|
adapay_member_id,
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
`status`,
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitRatio != null">
|
||||||
|
electricity_split_ratio,
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitAmount != null">
|
||||||
|
electricity_split_amount,
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitRatio != null">
|
||||||
|
service_split_ratio,
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitAmount != null">
|
||||||
|
service_split_amount,
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
remark,
|
||||||
|
</if>
|
||||||
|
<if test="cerateBy != null">
|
||||||
|
cerate_by,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateBy != null">
|
||||||
|
update_by,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="delFlag != null">
|
||||||
|
del_flag,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
values
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="orderCode != null">
|
||||||
|
#{orderCode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="settleAmount != null">
|
||||||
|
#{settleAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="adapayMemberId != null">
|
||||||
|
#{adapayMemberId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
#{status,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitRatio != null">
|
||||||
|
#{electricitySplitRatio,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitAmount != null">
|
||||||
|
#{electricitySplitAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitRatio != null">
|
||||||
|
#{serviceSplitRatio,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitAmount != null">
|
||||||
|
#{serviceSplitAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
#{remark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="cerateBy != null">
|
||||||
|
#{cerateBy,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateBy != null">
|
||||||
|
#{updateBy,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="delFlag != null">
|
||||||
|
#{delFlag,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
on duplicate key update
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id = #{id,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="orderCode != null">
|
||||||
|
order_code = #{orderCode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="settleAmount != null">
|
||||||
|
settle_amount = #{settleAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="adapayMemberId != null">
|
||||||
|
adapay_member_id = #{adapayMemberId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
`status` = #{status,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitRatio != null">
|
||||||
|
electricity_split_ratio = #{electricitySplitRatio,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="electricitySplitAmount != null">
|
||||||
|
electricity_split_amount = #{electricitySplitAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitRatio != null">
|
||||||
|
service_split_ratio = #{serviceSplitRatio,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="serviceSplitAmount != null">
|
||||||
|
service_split_amount = #{serviceSplitAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="cerateBy != null">
|
||||||
|
cerate_by = #{cerateBy,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateBy != null">
|
||||||
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="delFlag != null">
|
||||||
|
del_flag = #{delFlag,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
Reference in New Issue
Block a user