liujc 7 months ago
parent
commit
53745d9832

+ 4 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/MusicSheetAuthRecordServiceImpl.java

@@ -104,7 +104,10 @@ public class MusicSheetAuthRecordServiceImpl extends ServiceImpl<MusicSheetAuthR
             throw new BizException("曲目信息不存在");
         }
         if (param.getAuthStatus().equals(AuthStatusEnum.PASS)) {
-//            musicSheetService.updateById(musicSheet);
+            MusicSheet update = new MusicSheet();
+            update.setId(musicSheet.getId());
+            update.setFirstPassAuditTime(new Date());
+            musicSheetService.updateById(musicSheet);
             // 修改老师标签
             teacherService.setTeacherTag(musicSheet.getUserId(), TeacherTagEnum.MUSIC);
             //同步到内容平台

+ 2 - 2
cooleshow-user/user-biz/src/main/resources/config/mybatis/MusicSheetMapper.xml

@@ -101,7 +101,7 @@
         (cbs_music_sheet_id_,music_tag_,payment_type_,charge_type_,top_flag_,exquisite_flag_,sort_number_,state_,audit_status_
             ,music_sheet_name_,music_subject_,music_svg_,composer_,accompaniment_type_,play_speed_,
          music_price_,notation_,music_sheet_type_,source_type_,provider_type_,audio_type_,show_fingering_,
-         can_evaluate_,create_by_,user_id_,score_type_,is_all_subject_
+         can_evaluate_,create_by_,user_id_,score_type_,is_all_subject_,first_pass_audit_time_
         )
         values
         <foreach collection="vos" item="item" separator=",">
@@ -126,7 +126,7 @@
             #{item.musicSheetUpdate.showFingering},
             #{item.musicSheetUpdate.canEvaluate},
             #{item.musicSheetUpdate.userId},#{item.musicSheetUpdate.userId},
-            #{item.scoreType},#{item.musicSheetUpdate.isAllSubject}
+            #{item.scoreType},#{item.musicSheetUpdate.isAllSubject},now()
              )
         </foreach>
     </insert>