Forráskód Böngészése

Merge branch 'feature/0427-school' into master_saas

liujc 1 éve
szülő
commit
2cdd7b65ce

BIN
audio-analysis/src/main/.DS_Store


+ 3 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentRegistrationServiceImpl.java

@@ -1087,6 +1087,9 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
         studentRegistration.setUpdateTime(date);
 
         SysUser sysUser = studentRegistrationDao.getSysUserByPhone(studentRegistration.getParentsPhone());
+        if (sysUser !=null && sysUser.getUserType().contains("SCHOOL")) {
+            throw new BizException("用户已存在学校账户");
+        }
         StudentRegistration phoneAndMusicGroupId = null;
         if (sysUser != null) {
             if (!musicGroup.getTenantId().equals(sysUser.getTenantId())) {

+ 3 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentServiceImpl.java

@@ -1149,6 +1149,9 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
     public <T extends BaseStudentDto> SysUser upSetStudent(T baseStudent) {
         // 判断用户是否存在
         SysUser user = studentDao.getUserByPhone(baseStudent.getPhone());
+        if (user !=null && user.getUserType().contains("SCHOOL")) {
+            throw new BizException("用户已存在学校账户");
+        }
         if (user == null || user.getId() == null) {
             user = new SysUser();
             BeanUtils.copyProperties(baseStudent,user);

+ 0 - 3
mec-biz/src/main/resources/config/mybatis/CooperationOrganMapper.xml

@@ -223,8 +223,5 @@
         FROM cooperation_organ
         WHERE FIND_IN_SET(organ_id_, #{organId})
           AND del_flag_ != 1
-        <if test="enable != null">
-            AND is_enable_ = #{enable}
-        </if>
     </select>
 </mapper>