|
@@ -106,30 +106,6 @@ public interface FsCourseRedPacketLogMapper
|
|
|
"</script>"})
|
|
"</script>"})
|
|
|
List<FsCourseRedPacketLogListPVO> selectRedPacketLogListVO(@Param("maps") FsCourseRedPacketLogParam param);
|
|
List<FsCourseRedPacketLogListPVO> selectRedPacketLogListVO(@Param("maps") FsCourseRedPacketLogParam param);
|
|
|
|
|
|
|
|
- @Select({"<script> " +
|
|
|
|
|
- "select l.*,v.title,u.nick_name as fsNickName,u.avatar as fsAvatar,u.phone,cu.nick_name company_user_name,c.company_name,qu.qw_user_name,fuc.course_name,u.phone as phoneNumber from fs_course_red_packet_log l \n" +
|
|
|
|
|
- "left join fs_user_course_video v on v.video_id = l.video_id \n" +
|
|
|
|
|
- "left join fs_user u on u.user_id = l.user_id \n" +
|
|
|
|
|
- "left join fs_user_course fuc on fuc.course_id = l.course_id \n" +
|
|
|
|
|
- "left join company_user cu on cu.user_id=l.company_user_id \n" +
|
|
|
|
|
- "left join company c on c.company_id=l.company_id \n" +
|
|
|
|
|
- "LEFT JOIN qw_user qu on qu.id= l.qw_user_id " +
|
|
|
|
|
- "where 1=1 " +
|
|
|
|
|
- "<if test = ' maps.userId !=null '> and l.user_id = #{maps.userId} </if>" +
|
|
|
|
|
- "<if test = ' maps.watchLogId !=null '> and l.watch_log_id = #{maps.watchLogId} </if>" +
|
|
|
|
|
- "<if test = ' maps.companyId !=null '> and l.company_id = #{maps.companyId} </if>" +
|
|
|
|
|
- "<if test = ' maps.companyUserId !=null '> and l.company_user_id = #{maps.companyUserId} </if>" +
|
|
|
|
|
- "<if test = ' maps.companyUserName !=null '> and cu.nick_name like concat('%', #{maps.companyUserName}, '%') </if>" +
|
|
|
|
|
- "<if test = ' maps.nickName !=null '> and u.nick_name like concat('%', #{maps.nickName}, '%') </if>" +
|
|
|
|
|
- "<if test = ' maps.courseId !=null '> and l.course_id = #{maps.courseId} </if>" +
|
|
|
|
|
- "<if test = ' maps.videoId !=null '> and l.video_id = #{maps.videoId} </if>" +
|
|
|
|
|
- "<if test = ' maps.status !=null '> and l.status = #{maps.status} </if>" +
|
|
|
|
|
- "<if test = \"maps.phone !=null and maps.phone != '' \"> and u.phone = #{maps.phone} </if>" +
|
|
|
|
|
- "<if test = ' maps.qwUserId !=null '> and l.qw_user_id = #{maps.qwUserId} </if>" +
|
|
|
|
|
- "<if test=\"maps.sTime != null \"> and DATE(l.create_time) >= DATE(#{maps.sTime})</if>\n" +
|
|
|
|
|
- "<if test=\"maps.eTime != null \"> and DATE(l.create_time) <= DATE(#{maps.eTime})</if>\n" +
|
|
|
|
|
- " order by l.log_id desc "+
|
|
|
|
|
- "</script>"})
|
|
|
|
|
List<FsCourseRedPacketLogListPVO> selectFsCourseRedPacketLogListVO(@Param("maps")FsCourseRedPacketLogParam fsCourseRedPacketLog);
|
|
List<FsCourseRedPacketLogListPVO> selectFsCourseRedPacketLogListVO(@Param("maps")FsCourseRedPacketLogParam fsCourseRedPacketLog);
|
|
|
|
|
|
|
|
@Select("SELECT company_id, SUM(amount) as money FROM fs_course_red_packet_log WHERE status in (0,1) and create_time >= DATE_SUB(CURDATE(), INTERVAL 1 DAY) AND create_time < CURDATE() GROUP BY company_id " )
|
|
@Select("SELECT company_id, SUM(amount) as money FROM fs_course_red_packet_log WHERE status in (0,1) and create_time >= DATE_SUB(CURDATE(), INTERVAL 1 DAY) AND create_time < CURDATE() GROUP BY company_id " )
|