Browse Source

Merge branch 'cloud_study_video'

Joburgess 4 years ago
parent
commit
b467feee0f

+ 0 - 6
mec-biz/src/main/java/com/ym/mec/biz/handler/WebSocketHandler.java

@@ -96,12 +96,6 @@ public class WebSocketHandler extends AbstractWebSocketHandler {
         String phone = session.getPrincipal().getName().split(":")[1];
         String phone = session.getPrincipal().getName().split(":")[1];
         session.close();
         session.close();
         LOGGER.info("{}异常: {}", phone, exception);
         LOGGER.info("{}异常: {}", phone, exception);
-//        appMap.values().forEach(e->e.afterConnectionClosed(session, phone));
-//        exception.printStackTrace();
-//        if(!WS_CLIENTS.containsKey(phone)){
-//            return;
-//        }
-//        WS_CLIENTS.remove(phone);
     }
     }
 
 
     @Override
     @Override

+ 14 - 0
mec-biz/src/main/resources/config/mybatis/SysMusicCompareWeekDataMapper.xml

@@ -130,6 +130,20 @@
 		</if>
 		</if>
 		WHERE smcwd.monday_ = #{monday}
 		WHERE smcwd.monday_ = #{monday}
 			AND stu.user_id_=smcwd.user_id_
 			AND stu.user_id_=smcwd.user_id_
+			<if test="orderType==1">
+				<if test="heardLevel==null">
+					AND smcwd.advanced_max_score_ > 0
+				</if>
+				<if test="heardLevel=='BEGINNER'">
+					AND smcwd.beginner_max_score_ > 0
+				</if>
+				<if test="heardLevel=='ADVANCED'">
+					AND smcwd.advanced_max_score_ > 0
+				</if>
+				<if test="heardLevel=='PERFORMER'">
+					AND smcwd.performer_max_score_ > 0,
+				</if>
+			</if>
 			ORDER BY
 			ORDER BY
 			<if test="orderType==null">
 			<if test="orderType==null">
 				smcwd.train_time_ DESC,
 				smcwd.train_time_ DESC,