| | |
| | | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.common.entity.QueryRequest; |
| | | import cc.mrbird.febs.common.enumerates.AgentLevelEnum; |
| | | import cc.mrbird.febs.common.enumerates.MoneyFlowTypeEnum; |
| | | import cc.mrbird.febs.common.enumerates.YesOrNoEnum; |
| | | import cc.mrbird.febs.common.enumerates.*; |
| | | import cc.mrbird.febs.common.exception.FebsException; |
| | | import cc.mrbird.febs.common.utils.AppContants; |
| | | import cc.mrbird.febs.common.utils.MallUtils; |
| | |
| | | } |
| | | |
| | | Integer type = mallSystemPayDto.getType(); |
| | | Integer flowType = 0; |
| | | Integer moneyType = 0; |
| | | String moneyTypeDec = ""; |
| | | String filedType = ""; |
| | | if (type == 1) { |
| | | filedType = "balance"; |
| | | flowType = FlowTypeEnum.BALANCE.getValue(); |
| | | moneyType = RunVipMoneyFlowTypeEnum.SYS_BALANCE.getValue(); |
| | | moneyTypeDec = RunVipMoneyFlowTypeEnum.SYS_BALANCE.getDescription(); |
| | | } else if (type == 2) { |
| | | filedType = "score"; |
| | | flowType = FlowTypeEnum.SCORE.getValue(); |
| | | moneyType = RunVipMoneyFlowTypeEnum.SYS_SCORE.getValue(); |
| | | moneyTypeDec = RunVipMoneyFlowTypeEnum.SYS_SCORE.getDescription(); |
| | | } else if (type == 3) { |
| | | filedType = "prizeScore"; |
| | | } else { |
| | |
| | | } else { |
| | | iApiMallMemberWalletService.add(mallSystemPayDto.getAddBalance(), mallSystemPayDto.getId(), filedType); |
| | | } |
| | | mallMoneyFlowService.addMoneyFlow(memberId, bigDecimal, MoneyFlowTypeEnum.SYSTEM.getValue(), MallUtils.getOrderNum(), type, null,2); |
| | | String orderNo = MallUtils.getOrderNum("SYS"); |
| | | mallMoneyFlowService.runVipMoneyFlowAdd( |
| | | mallMember.getId(), |
| | | mallMember.getId(), |
| | | orderNo, |
| | | flowType, |
| | | moneyType, |
| | | bigDecimal, |
| | | StrUtil.format(moneyTypeDec,bigDecimal), |
| | | YesOrNoEnum.YES.getValue() |
| | | ); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |