Selaa lähdekoodia

bugfix:商品购买

yonge 4 vuotta sitten
vanhempi
commit
09e616e156

+ 5 - 4
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentRepairServiceImpl.java

@@ -144,11 +144,12 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
             List<Integer> stuEducation = studentRepairDao.countStuEducation(studentId);
             if (stuEducation != null && stuEducation.size() == 1) {
                 //获取学员乐团关联的教务
-                MusicGroup musicGroup = musicGroupDao.getStuMusic(studentId);
                 studentGoodsSell.setTeacherId(stuEducation.get(0));
-                if (musicGroup != null) {
-                    studentGoodsSell.setCooperationOrganId(musicGroup.getCooperationOrganId());
-                }
+            }
+            //获取学员乐团关联的教务
+            MusicGroup musicGroup = musicGroupDao.getStuMusic(studentId);
+            if (musicGroup != null) {
+                studentGoodsSell.setCooperationOrganId(musicGroup.getCooperationOrganId());
             }
         } else if (studentGoodsSell.getCooperationOrganId() == null) {
             //获取教务老师,学员关联的乐团