From 6733b2d94abaa23dcdf741524caec24d28b7c30e Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Wed, 25 Sep 2024 16:06:31 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=88=86=E6=88=90=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pile/mapper/OrderSplitRecordMapper.java | 24 - .../pile/service/OrderSplitRecordService.java | 26 - .../impl/OrderSplitRecordServiceImpl.java | 55 -- .../mapper/pile/OrderSplitRecordMapper.xml | 575 +----------------- 4 files changed, 1 insertion(+), 679 deletions(-) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/mapper/OrderSplitRecordMapper.java b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/OrderSplitRecordMapper.java index ac43217a2..3c98ef7bc 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/mapper/OrderSplitRecordMapper.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/OrderSplitRecordMapper.java @@ -1,29 +1,5 @@ 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 list); - - int updateBatchSelective(List list); - - int batchInsert(@Param("list") List list); } \ No newline at end of file diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/OrderSplitRecordService.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/OrderSplitRecordService.java index 9c2912726..79fac5a13 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/OrderSplitRecordService.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/OrderSplitRecordService.java @@ -1,31 +1,5 @@ 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 list); - - int updateBatchSelective(List list); - - int batchInsert(List list); - } diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderSplitRecordServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderSplitRecordServiceImpl.java index 7b5ff598e..91bfa2d96 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderSplitRecordServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderSplitRecordServiceImpl.java @@ -13,59 +13,4 @@ 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 list) { - return orderSplitRecordMapper.updateBatch(list); - } - - @Override - public int updateBatchSelective(List list) { - return orderSplitRecordMapper.updateBatchSelective(list); - } - - @Override - public int batchInsert(List list) { - return orderSplitRecordMapper.batchInsert(list); - } - } diff --git a/jsowell-pile/src/main/resources/mapper/pile/OrderSplitRecordMapper.xml b/jsowell-pile/src/main/resources/mapper/pile/OrderSplitRecordMapper.xml index 1a00d3871..80cca0a4b 100644 --- a/jsowell-pile/src/main/resources/mapper/pile/OrderSplitRecordMapper.xml +++ b/jsowell-pile/src/main/resources/mapper/pile/OrderSplitRecordMapper.xml @@ -26,578 +26,5 @@ electricity_split_amount, service_split_ratio, service_split_amount, remark, cerate_by, create_time, update_by, update_time, del_flag - - - - delete from order_split_record - where id = #{id,jdbcType=INTEGER} - - - - 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 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, - - - - - #{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}, - - - - - - update order_split_record - - - 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 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 order_split_record - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.settleAmount,jdbcType=DECIMAL} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.adapayMemberId,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.electricitySplitRatio,jdbcType=DECIMAL} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.electricitySplitAmount,jdbcType=DECIMAL} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.serviceSplitRatio,jdbcType=DECIMAL} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.serviceSplitAmount,jdbcType=DECIMAL} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.cerateBy,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=VARCHAR} - - - - where id in - - #{item.id,jdbcType=INTEGER} - - - - - update order_split_record - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.settleAmount,jdbcType=DECIMAL} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.adapayMemberId,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.electricitySplitRatio,jdbcType=DECIMAL} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.electricitySplitAmount,jdbcType=DECIMAL} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.serviceSplitRatio,jdbcType=DECIMAL} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.serviceSplitAmount,jdbcType=DECIMAL} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.cerateBy,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=VARCHAR} - - - - - where id in - - #{item.id,jdbcType=INTEGER} - - - - - 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 - - (#{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}) - - - - - 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 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}, - - - + \ No newline at end of file