|
@@ -103,6 +103,7 @@ import com.yonge.toolset.utils.easyexcel.ErrMsg;
|
|
|
import com.yonge.toolset.utils.easyexcel.ExcelDataReaderProperty;
|
|
|
import com.yonge.toolset.utils.easyexcel.ExcelException;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
+import org.joda.time.DateTime;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -1554,7 +1555,26 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- private SysUser getSysUser(Long userId) {
|
|
|
+ /**
|
|
|
+ * 曲目修复
|
|
|
+ *
|
|
|
+ * @param musicImgDto MusicImgDto
|
|
|
+ * @param musicSheetId 曲目Id
|
|
|
+ * @return Boolean
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Boolean updateMusicCorrect(MusicImgDto musicImgDto, Long musicSheetId) {
|
|
|
+
|
|
|
+ MusicSheet musicSheet = new MusicSheet();
|
|
|
+ musicSheet.setCorrectTime(DateTime.now().toDate());
|
|
|
+ musicSheet.setFixedTone(musicImgDto.getFixedTone());
|
|
|
+ musicSheet.setId(musicSheetId);
|
|
|
+ this.updateById(musicSheet);
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ private SysUser getSysUser(Long userId) {
|
|
|
return Optional.ofNullable(userId)
|
|
|
.map(sysUserFeignService::queryUserById)
|
|
|
.orElseThrow(() -> new BizException("用户不存在"));
|