From 6e2855f5d5b9a82149c637baf2170d359a202096 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Thu, 27 Dec 2018 16:41:08 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BC=9A=E5=91=98=E5=88=97=E8=A1=A8][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9][=E5=AF=BC=E5=85=A5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=9C=89=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=AD=98=E5=9C=A8=E5=B0=B1=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=A7=AF=E5=88=86]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/impl/WxScoreRulesServiceImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java index b51097057..ccf053147 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java @@ -139,8 +139,12 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService { WxCUser wxCUser = new WxCUser(); wxCUser.setTenantId(user.getTenantId()); wxCUser.setPhone(user.getPhone()); - wxCUser.setScore(scoreNumber); - wxCUserService.saveOrUpdate(wxCUser); + List list = wxCUserMapper.findList(wxCUser); + if (!list.isEmpty()) { + wxCUser = list.get(0); + wxCUser.setScore(scoreNumber); + wxCUserMapper.updateByPrimaryKeySelective(wxCUser); + } } }