|
|
|
@@ -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()); |
|
|
|
|
|
|
|
|