From 4c57672097831516443737cd254f42a69f8c52c4 Mon Sep 17 00:00:00 2001 From: xiezhijun <15270898033@163.com> Date: Tue, 18 May 2021 12:24:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom/SysImportFanRecordMapper.xml | 23 +++--- .../custom/SysImportFanWxAccountMapper.xml | 70 +++++++++---------- 2 files changed, 45 insertions(+), 48 deletions(-) diff --git a/stdiet-custom/src/main/resources/mapper/custom/SysImportFanRecordMapper.xml b/stdiet-custom/src/main/resources/mapper/custom/SysImportFanRecordMapper.xml index 5f4a791f3..83e5fa780 100644 --- a/stdiet-custom/src/main/resources/mapper/custom/SysImportFanRecordMapper.xml +++ b/stdiet-custom/src/main/resources/mapper/custom/SysImportFanRecordMapper.xml @@ -22,16 +22,15 @@ @@ -73,15 +72,15 @@ where id = #{id} - - delete from sys_import_fan_record where id = #{id} - + + update sys_import_fan_record set del_flag = 1 where id = #{id} + - - delete from sys_import_fan_record where id in + + update sys_import_fan_record set del_flag = 1 where id in #{id} - + \ No newline at end of file diff --git a/stdiet-custom/src/main/resources/mapper/custom/SysImportFanWxAccountMapper.xml b/stdiet-custom/src/main/resources/mapper/custom/SysImportFanWxAccountMapper.xml index 5f4a791f3..9df906444 100644 --- a/stdiet-custom/src/main/resources/mapper/custom/SysImportFanWxAccountMapper.xml +++ b/stdiet-custom/src/main/resources/mapper/custom/SysImportFanWxAccountMapper.xml @@ -2,13 +2,13 @@ - + - + - - - + + + @@ -16,30 +16,28 @@ - - select id, import_fan_date, import_fan_channel, import_fan_live, create_time, create_by, update_time, update_by, del_flag from sys_import_fan_record + + select id, import_fan_record_id, import_wx_account_id, import_fan_num, create_time, create_by, update_time, update_by, del_flag from sys_import_fan_wx_account - + where del_flag = 0 + and import_fan_record_id = #{importFanRecordId} + and import_wx_account_id = #{importWxAccountId} + and import_fan_num = #{importFanNum} - + + where id = #{id} and del_flag = 0 - - insert into sys_import_fan_record + + insert into sys_import_fan_wx_account - import_fan_date, - import_fan_channel, - import_fan_live, + import_fan_record_id, + import_wx_account_id, + import_fan_num, create_time, create_by, update_time, @@ -47,9 +45,9 @@ del_flag, - #{importFanDate}, - #{importFanChannel}, - #{importFanLive}, + #{importFanRecordId}, + #{importWxAccountId}, + #{importFanNum}, #{createTime}, #{createBy}, #{updateTime}, @@ -58,12 +56,12 @@ - - update sys_import_fan_record + + update sys_import_fan_wx_account - import_fan_date = #{importFanDate}, - import_fan_channel = #{importFanChannel}, - import_fan_live = #{importFanLive}, + import_fan_record_id = #{importFanRecordId}, + import_wx_account_id = #{importWxAccountId}, + import_fan_num = #{importFanNum}, create_time = #{createTime}, create_by = #{createBy}, update_time = #{updateTime}, @@ -73,15 +71,15 @@ where id = #{id} - - delete from sys_import_fan_record where id = #{id} - + + update sys_import_fan_wx_account set del_flag = 1 where id = #{id} + - - delete from sys_import_fan_record where id in + + update sys_import_fan_wx_account set del_flag = 1 where id in #{id} - + \ No newline at end of file