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}