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}