Sfoglia il codice sorgente

fix 系统选新班

he2802 3 anni fa
parent
commit
c8dcc31556

+ 6 - 0
zhongzheng-framework/src/main/java/com/zhongzheng/framework/web/service/UserServiceImpl.java

@@ -626,6 +626,12 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
         update.setUserId(bo.getUserId());
         update.setTelphone(bo.getTel());
         update.setUpdateTime(DateUtils.getNowTime());
+        UserUpdateAddBo userUpdateAddBo = new UserUpdateAddBo();
+        userUpdateAddBo.setUserId(bo.getUserId());
+        userUpdateAddBo.setTelphone(update.getTelphone());
+        if (userUpdateAddBo != null) {
+            userUpdateService.insertByAddBo(userUpdateAddBo);
+        }
         return this.updateById(update);
     }
 

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/service/impl/UserBankRecordServiceImpl.java

@@ -138,7 +138,7 @@ public class UserBankRecordServiceImpl extends ServiceImpl<UserBankRecordMapper,
                 item.setUserId(bo.getUserId());
                 iUserBankQuestionRecordService.insertByAddBo(item);
             }*/
-            return add.getRecordId();
+            return recordId;
         }
         return 0L;
 

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/user/UserStudyRecordMapper.xml

@@ -244,7 +244,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             </if>
             AND course_id = #{courseId} ORDER BY record_id DESC LIMIT 9999 ) usr
             GROUP BY
-            usr.section_id) usr1 on m.menu_id = usr1.section_id
+            usr.section_id) usr1 on s.section_id = usr1.section_id
         WHERE
             m.type =2
         <if test="courseId != null and courseId !=''">
@@ -282,7 +282,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </if>
         AND course_id = #{courseId} ORDER BY record_id DESC LIMIT 9999 ) usr
         GROUP BY
-        usr.section_id) usr1 on m.menu_id = usr1.section_id
+        usr.section_id) usr1 on s.section_id = usr1.section_id
         WHERE
             m.type =1
         <if test="courseId != null and courseId !=''">