上级奖励 bug fix
This commit is contained in:
parent
b6d9eaa2de
commit
ba5ba7e16b
|
|
@ -239,7 +239,7 @@ public class WuyouController {
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
//满3笔
|
//满3笔
|
||||||
Integer sumOrderNum = ordersService.countOrderNum(user.getUserId(), null);
|
Integer sumOrderNum = ordersService.countOrderNum(user.getUserId(), null);
|
||||||
if (sumOrderNum > Integer.parseInt(commonRepository.findOne(913).getValue())) {
|
if (sumOrderNum >= Integer.parseInt(commonRepository.findOne(913).getValue())) {
|
||||||
String amount = commonRepository.findOne(912).getValue();
|
String amount = commonRepository.findOne(912).getValue();
|
||||||
UserMoneyDetails userMoneyDetails = new UserMoneyDetails();
|
UserMoneyDetails userMoneyDetails = new UserMoneyDetails();
|
||||||
userMoneyDetails.setClassify(6);
|
userMoneyDetails.setClassify(6);
|
||||||
|
|
@ -262,7 +262,7 @@ public class WuyouController {
|
||||||
null, sysUser.getUserId(), null, "[分享达标额外奖励]", 6, 1, 2,
|
null, sysUser.getUserId(), null, "[分享达标额外奖励]", 6, 1, 2,
|
||||||
new BigDecimal(qdAward), "推广人员首次达标,额外奖励现金红包" + qdAward, 2);
|
new BigDecimal(qdAward), "推广人员首次达标,额外奖励现金红包" + qdAward, 2);
|
||||||
|
|
||||||
userMoneyService.updateSysMoney(1, sysUser.getUserId(), Double.valueOf(qdAward));
|
userMoneyService.updateSysAmount(1, sysUser.getUserId(), Double.valueOf(qdAward));
|
||||||
userMoneyDetailsService.save(userMoneyDetails4);
|
userMoneyDetailsService.save(userMoneyDetails4);
|
||||||
|
|
||||||
Invite invite = inviteService.selectInviteByUser(sourceUser.getUserId(), user.getUserId(), 1);
|
Invite invite = inviteService.selectInviteByUser(sourceUser.getUserId(), user.getUserId(), 1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue