From 475344ab72e8254dac0d67a9eb25c66f1e1ac9bb Mon Sep 17 00:00:00 2001 From: hupeng Date: Thu, 6 Sep 2018 17:46:37 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=94=AF=E4=BB=98][=E4=BF=AE=E5=A4=8D]:?= =?UTF-8?q?=E5=88=86=E8=B4=A6=E6=94=AF=E4=BB=98=E4=B8=AD=E6=9B=B4=E6=94=B9?= =?UTF-8?q?appid=E7=9A=84=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/WxProfitSharingOrderServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/java/com/simple/service/impl/WxProfitSharingOrderServiceImpl.java b/mallinkService/src/main/java/com/simple/service/impl/WxProfitSharingOrderServiceImpl.java index 242d22320..e835d65bb 100644 --- a/mallinkService/src/main/java/com/simple/service/impl/WxProfitSharingOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/simple/service/impl/WxProfitSharingOrderServiceImpl.java @@ -124,12 +124,14 @@ public class WxProfitSharingOrderServiceImpl implements WxProfitSharingOrderServ } private WxAppinfo getAppinfo(WxPayOrder wxPayOrder) { - WxAppinfo wxAppinfo; + WxAppinfo wxAppinfo = new WxAppinfo(); WxCUser wxCUser = wxCUserMapper.selectByPrimaryKey(wxPayOrder.getcUserId()); if (wxCUser == null) throw new MallinkException(ErrorCode.USER_IS_EMPTY.getCode(), ErrorCode.USER_IS_EMPTY.getMessage()); - wxAppinfo = wxAppinfoMapper.selectByPrimaryKey(wxCUser.getAppId()); + + wxAppinfo.setAppId(wxCUser.getAppId()); + wxAppinfo = wxAppinfoMapper.selectOne(wxAppinfo); if (wxAppinfo == null) throw new MallinkException(ErrorCode.APP_ID_NOT_FOUND.getCode(), ErrorCode.APP_ID_NOT_FOUND.getMessage());