Selaa lähdekoodia

revert CourseRepo

deason 6 vuotta sitten
vanhempi
commit
c2d9a3d465

+ 6 - 14
examcloud-core-questions-dao/src/main/java/cn/com/qmth/examcloud/core/questions/dao/CourseRepo.java

@@ -1,28 +1,20 @@
-/*
- * *************************************************
- * Copyright (c) 2019 QMTH. All Rights Reserved.
- * Created by Deason on 2019-05-20 14:42:12.
- * *************************************************
- */
-
 package cn.com.qmth.examcloud.core.questions.dao;
 
 import cn.com.qmth.examcloud.core.questions.dao.entity.Course;
-import cn.com.qmth.examcloud.core.questions.dao.entity.ExamFile;
 import org.springframework.data.mongodb.repository.MongoRepository;
 import org.springframework.data.repository.query.QueryByExampleExecutor;
 
 import java.util.List;
 
 /**
- * @author chenken
- * @date 2017年7月13日 下午4:54:10
- * @company QMTH
- * @description ExamFileRepo.java
+ * Created by songyue on 16/12/26.
  */
 public interface CourseRepo extends MongoRepository<Course, String>, QueryByExampleExecutor<Course> {
 
-    List<Course> findByOrgId(String orgId);
+    Course findFirstByCodeAndOrgId(String code, String orgId);
 
-}
+    Course findFirstByCode(String courseNo);
+
+    List<Course> findByOrgId(String orgId);
 
+}