chenjiahe
2024-03-01 cfedbfad423aa6fd758da748967122819b1787e2
phi_platform_common/src/main/java/com/hx/phip/tool/order/OrderTool.java
@@ -43,5 +43,18 @@
        return commonService.selectOne(UserMoneyUnclaimedMapper.class,sqlSentence);
    }
    /**获取用户活动赠送资金奖励记录-有效*/
    public static List<UserMoneyUnclaimed> getActivityGive(String userId,String commonId, CommonService commonService){
        //查找领取记录释放存在
        //领取记录是否已领取
        SqlSentence sqlSentence = new SqlSentence();
        Map<String,Object> values = new HashMap<>();
        values.put("userId",userId);
        values.put("commonId",commonId);
        sqlSentence.sqlSentence("SELECT * FROM user_money_unclaimed WHERE isDel = 0 AND isValid = 1 AND userId = #{m.userId} AND commonId = #{m.commonId}",values);
        return commonService.selectList(UserMoneyUnclaimedMapper.class,sqlSentence);
    }
}