fwq
2024-01-25 51f09fb07752473e9d507ecbe7c12b0ccf3824b2
优化判断
1个文件已修改
6 ■■■■■ 已修改文件
phi_platform_user/src/main/java/com/hx/phip/service/userMoney/impl/UserMoneyUnclaimedServiceImpl.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/service/userMoney/impl/UserMoneyUnclaimedServiceImpl.java
@@ -361,7 +361,9 @@
        logger.info("操作资金-moneyRule规则数据:"+JSON.toJSONString(moneyRule));
        //获得操作类型
        logger.info("请求的操作类型(0系统1领取):"+userMoneyUnclaimed.getOpType());
        checkGetOpType(userMoneyUnclaimed,moneyRule);
        logger.info("最终操作类型(0系统1领取):"+userMoneyUnclaimed.getOpType());
        // 判断操作数量或金额
        if (userMoneyUnclaimed.getOpNumber() == null) {
@@ -585,9 +587,9 @@
                UserInfo userInfo = userInfoMapper.selectOneByUserId(userMoneyUnclaimed.getUserId());
                if (userInfo != null){
                    logger.info("操作用户资金(待领取记录)-用户设置增值金是否需要领取状态:{}", userInfo.getIsReceiveValueAddedFund());
                    if (userInfo.getIsReceiveValueAddedFund() != null  && BaseEntity.NO.equals(userInfo.getIsReceiveValueAddedFund())){
                    if (userInfo.getIsReceiveValueAddedFund() != null  && BaseEntity.YES.equals(userInfo.getIsReceiveValueAddedFund())){
                        // 用户设置了不用再领取,设置为系统处理
                        userMoneyUnclaimed.setOpType(UserMoneyUnclaimed.OP_TYPE_SYSTEM);
                        userMoneyUnclaimed.setOpType(UserMoneyUnclaimed.OP_TYPE_RECEIVE);
                    }
                }
            }