From ff99c35e9eb02140925ee1399352995b08b69faf Mon Sep 17 00:00:00 2001 From: liuchuang <123456> Date: Fri, 6 Aug 2021 17:45:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E7=A7=AF?= =?UTF-8?q?=E5=88=86=E4=B8=BA=E7=A9=BA=E6=97=B6=E5=8A=A0=E4=B8=8D=E4=B8=8A?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epdc-user-server/src/main/resources/mapper/UserDao.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserDao.xml b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserDao.xml index b9178778..eace2252 100644 --- a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserDao.xml +++ b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserDao.xml @@ -7,9 +7,9 @@ select ID,POINTS,now() from epdc_user where DEL_FLAG = '0' - update epdc_user set POINTS = POINTS + #{points} + update epdc_user set POINTS = IFNULL(POINTS,0) + #{points} - ,POINTS_TOTLE = POINTS_TOTLE + #{points} + ,POINTS_TOTLE = IFNULL(POINTS_TOTLE,0) + #{points} where ID = #{userId}