|
@@ -58,13 +58,12 @@ public class WxExtensionIncomeServiceImpl extends ServiceImpl<WxExtensionIncomeM
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public Response addExtensionIncomeBySourceId(Long sourceId, String sourceOpenid, Integer sourcePrice) {
|
|
|
|
|
|
+ public void addExtensionIncomeBySourceId(Long sourceId, String sourceOpenid, Integer sourcePrice) {
|
|
|
|
|
|
//查找一二级绑定关系
|
|
//查找一二级绑定关系
|
|
WxSpreadRelation oneRelation = wxSpreadRelationService.getOne(new QueryWrapper<WxSpreadRelation>().eq("openid", sourceOpenid));
|
|
WxSpreadRelation oneRelation = wxSpreadRelationService.getOne(new QueryWrapper<WxSpreadRelation>().eq("openid", sourceOpenid));
|
|
if (oneRelation == null){
|
|
if (oneRelation == null){
|
|
log.info(sourceOpenid+": 此用户不存在绑定关系");
|
|
log.info(sourceOpenid+": 此用户不存在绑定关系");
|
|
- return Response.success();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
WxSpreadRelation twoRelation = wxSpreadRelationService.getOne(new QueryWrapper<WxSpreadRelation>().eq("openid", oneRelation.getParentOpenid()));
|
|
WxSpreadRelation twoRelation = wxSpreadRelationService.getOne(new QueryWrapper<WxSpreadRelation>().eq("openid", oneRelation.getParentOpenid()));
|
|
@@ -101,8 +100,6 @@ public class WxExtensionIncomeServiceImpl extends ServiceImpl<WxExtensionIncomeM
|
|
|
|
|
|
//保存分成收益信息
|
|
//保存分成收益信息
|
|
this.saveBatch(extensionIncomes);
|
|
this.saveBatch(extensionIncomes);
|
|
-
|
|
|
|
- return Response.success();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|