新版仿ok交易所-后端
1
zyy
2026-03-08 74e5a0efcda0eff0f23037c3439ef5405bafe922
trading-order-service/src/main/resources/mapper/UserMapper.xml
@@ -38,19 +38,20 @@
    <select id="listUser" resultType="com.yami.trading.bean.user.dto.UserDto">
        SELECT * FROM tz_user u LEFT JOIN tz_wallet w ON u.user_id=w.user_id
        SELECT u.*,w.money,c.money capital_money FROM tz_user u
        LEFT JOIN tz_wallet w ON u.user_id=w.user_id
        LEFT JOIN tz_capital_wallet c ON u.user_id=c.user_id
        where 1=1 and u.role_name in
        <foreach collection="roleNames" separator="," index="index" open="(" close=")" item="r">
            #{r}
        </foreach>
        <if test="userCode!=null and userCode!=''">
            and u.user_code=#{userCode}
        </if>
<!--        <if test="userCode!=null and userCode!=''">-->
<!--            and u.user_code=#{userCode}-->
<!--        </if>-->
        <if test="userName!=null and userName!=''">
            and u.user_name=#{userName}
            and u.user_name=#{userName} or  u.user_code=#{userName}
        </if>
        <if test="checkedList!=null">
@@ -91,18 +92,21 @@
        tz_user r
        ON u.user_recom=r.user_id
        where 1=1 and u.role_name in
        <foreach collection="roleNames" separator="," index="index" open="(" close=")" item="r">
            #{r}
        </foreach>
        <if test="checkedList!=null">
            and u.user_id in
            <foreach collection="checkedList" separator="," index="index" open="(" close=")" item="r">
                    #{r}
        where 1=1
        <if test="roleNames != null and roleNames.size() > 0">
            AND u.role_name IN
            <foreach collection="roleNames" separator="," open="(" close=")" item="r">
                #{r}
            </foreach>
        </if>
        <if test="checkedList != null and checkedList.size() > 0">
            AND u.user_id IN
            <foreach collection="checkedList" separator="," open="(" close=")" item="r">
                #{r}
            </foreach>
        </if>
        <if test="userCode!=null and userCode!=''">
            and u.user_code=#{userCode}
        </if>