|
@@ -1210,7 +1210,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
fs_course_red_packet_log flog
|
|
fs_course_red_packet_log flog
|
|
LEFT JOIN fs_user ON fs_user.user_id = flog.user_id
|
|
LEFT JOIN fs_user ON fs_user.user_id = flog.user_id
|
|
LEFT JOIN company_user ON company_user.user_id = fs_user.company_user_id
|
|
LEFT JOIN company_user ON company_user.user_id = fs_user.company_user_id
|
|
- <where>
|
|
|
|
|
|
+ where flog.status = 1
|
|
<if test="userId != null and userId != 0 ">
|
|
<if test="userId != null and userId != 0 ">
|
|
and (fs_user.company_user_id = #{userId} OR company_user.parent_id = #{userId} )
|
|
and (fs_user.company_user_id = #{userId} OR company_user.parent_id = #{userId} )
|
|
</if>
|
|
</if>
|
|
@@ -1233,7 +1233,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="companyUserId != null and companyUserId != ''">
|
|
<if test="companyUserId != null and companyUserId != ''">
|
|
AND company_user.user_id = #{companyUserId}
|
|
AND company_user.user_id = #{companyUserId}
|
|
</if>
|
|
</if>
|
|
- </where>
|
|
|
|
) AS redPacketNum,
|
|
) AS redPacketNum,
|
|
(
|
|
(
|
|
SELECT
|
|
SELECT
|
|
@@ -1242,7 +1241,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
fs_course_red_packet_log flog
|
|
fs_course_red_packet_log flog
|
|
LEFT JOIN fs_user ON fs_user.user_id = flog.user_id
|
|
LEFT JOIN fs_user ON fs_user.user_id = flog.user_id
|
|
LEFT JOIN company_user ON company_user.user_id = fs_user.company_user_id
|
|
LEFT JOIN company_user ON company_user.user_id = fs_user.company_user_id
|
|
- <where>
|
|
|
|
|
|
+ where flog.status = 1
|
|
<if test="userId != null and userId != 0 ">
|
|
<if test="userId != null and userId != 0 ">
|
|
and (fs_user.company_user_id = #{userId} OR company_user.parent_id = #{userId} )
|
|
and (fs_user.company_user_id = #{userId} OR company_user.parent_id = #{userId} )
|
|
</if>
|
|
</if>
|
|
@@ -1265,7 +1264,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="companyUserId != null and companyUserId != ''">
|
|
<if test="companyUserId != null and companyUserId != ''">
|
|
AND company_user.user_id = #{companyUserId}
|
|
AND company_user.user_id = #{companyUserId}
|
|
</if>
|
|
</if>
|
|
- </where>
|
|
|
|
) AS redPacketAmount
|
|
) AS redPacketAmount
|
|
</select>
|
|
</select>
|
|
|
|
|