From 0e967fcb481196784853853576b3ba6d60e35b2e Mon Sep 17 00:00:00 2001 From: wxz Date: Fri, 30 Oct 2020 15:10:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E4=BF=A1=E6=81=AF=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=EF=BC=8C=E8=A6=81=E6=9B=B4=E6=96=B0UPDATE=5FTIME?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/WxmpResiUserSubscribeDao.xml | 12 ++++++++---- .../resources/mapper/WxmpWorkUserSubscribeDao.xml | 11 +++++++---- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/epmet-module/epmet-message/epmet-message-server/src/main/resources/mapper/WxmpResiUserSubscribeDao.xml b/epmet-module/epmet-message/epmet-message-server/src/main/resources/mapper/WxmpResiUserSubscribeDao.xml index 5beddb80f8..4a4764176d 100644 --- a/epmet-module/epmet-message/epmet-message-server/src/main/resources/mapper/WxmpResiUserSubscribeDao.xml +++ b/epmet-module/epmet-message/epmet-message-server/src/main/resources/mapper/WxmpResiUserSubscribeDao.xml @@ -17,7 +17,8 @@ update Wxmp_Resi_User_Subscribe - set count = if(count 1, 0, count - ${num} ) + set count = if(count 1, 0, count - ${num} ), + UPDATED_TIME = now() where del_flag = 0 and customer_id = #{customerId} @@ -28,7 +29,8 @@ update Wxmp_Resi_User_Subscribe - set count = 0 + set count = 0, + UPDATED_TIME = now() where del_flag = 0 and customer_id = #{customerId} @@ -41,7 +43,8 @@ update wxmp_resi_user_subscribe set COUNT=COUNT + #{incr}, - WX_SUBSCRIBE_STATUS = 'subscribe' + WX_SUBSCRIBE_STATUS = 'subscribe', + UPDATED_TIME = now() where USER_ID = #{userId} and CUSTOMER_ID = #{customerId} and TEMPLATE_ID = #{templateId} @@ -52,7 +55,8 @@ update wxmp_resi_user_subscribe set WX_SUBSCRIBE_STATUS = 'unsubscribe', - COUNT = 0 + COUNT = 0, + UPDATED_TIME = now() where USER_ID = #{userId} and CUSTOMER_ID = #{customerId} and TEMPLATE_ID = #{templateId} diff --git a/epmet-module/epmet-message/epmet-message-server/src/main/resources/mapper/WxmpWorkUserSubscribeDao.xml b/epmet-module/epmet-message/epmet-message-server/src/main/resources/mapper/WxmpWorkUserSubscribeDao.xml index d4b4026d1d..f797632581 100644 --- a/epmet-module/epmet-message/epmet-message-server/src/main/resources/mapper/WxmpWorkUserSubscribeDao.xml +++ b/epmet-module/epmet-message/epmet-message-server/src/main/resources/mapper/WxmpWorkUserSubscribeDao.xml @@ -5,7 +5,8 @@ update wxmp_work_user_subscribe set COUNT=COUNT + #{incr}, - WX_SUBSCRIBE_STATUS = 'subscribe' + WX_SUBSCRIBE_STATUS = 'subscribe', + UPDATED_TIME = now() where USER_ID = #{userId} and CUSTOMER_ID = #{customerId} and TEMPLATE_ID = #{templateId} @@ -26,7 +27,8 @@ update Wxmp_Work_User_Subscribe - set count = if(count < 1, 0, count - ${num} ) + set count = if(count < 1, 0, count - ${num} ), + UPDATED_TIME = now() where del_flag =0 and customer_id = #{customerId} @@ -36,7 +38,7 @@ update Wxmp_Work_User_Subscribe - set count = 0 + set count = 0, UPDATED_TIME = now() where del_flag =0 and customer_id = #{customerId} @@ -48,7 +50,8 @@ update wxmp_work_user_subscribe set WX_SUBSCRIBE_STATUS = 'unsubscribe', - COUNT = 0 + COUNT = 0, + UPDATED_TIME = now() where USER_ID = #{userId} and CUSTOMER_ID = #{customerId} and TEMPLATE_ID = #{templateId}