xiaoyong931011
2022-10-25 29a53109bdab489d23285af3d12d197eed98f3a4
src/main/resources/mapper/dapp/IgtOnHookPlanOrderDao.xml
@@ -50,4 +50,27 @@
        where and date_format(a.create_time, '%Y-%m-%d') = #{createTime}
    </select>
    <select id="findMemberPlanListInPage" resultType="cc.mrbird.febs.dapp.vo.AdminIgtOnHookPlanOrderVo">
        SELECT
        s.*,
        m.username username
        FROM
        igt_on_hook_plan_order s
        left join dapp_member m on m.id = s.member_id
        <where>
            <if test="record != null" >
                <if test="record.description!=null and record.description!=''">
                    (s.member_id in (select id from dapp_member where FIND_IN_SET(#{record.description}, referer_ids)))
                </if>
                <if test="record.state!=null and record.state!=''">
                    and s.state= #{record.state}
                </if>
                <if test="record.profitState!=null and record.profitState!=''">
                    and s.profit_state= #{record.profitState}
                </if>
            </if>
        </where>
        order by s.create_time desc
    </select>
</mapper>