|
@@ -60,7 +60,7 @@ public class ScoreServiceImpl extends ServiceImpl<ScoreMapper, Score> implements
|
|
Score oldScore = scoreMapper.selectOne(new QueryWrapper<Score>().eq("scoring_year_month", score.getScoringYearMonth()).eq("uid",score.getUid()));
|
|
Score oldScore = scoreMapper.selectOne(new QueryWrapper<Score>().eq("scoring_year_month", score.getScoringYearMonth()).eq("uid",score.getUid()));
|
|
if (score.getScoreId() != null) {
|
|
if (score.getScoreId() != null) {
|
|
//修改打分
|
|
//修改打分
|
|
- scoreMapper.updateById(score);
|
|
|
|
|
|
+ scoreMapper.update(score,new QueryWrapper<Score>().eq("score_id",score.getScoreId()));
|
|
} else {
|
|
} else {
|
|
Date now = new Date();
|
|
Date now = new Date();
|
|
now.setDate(Integer.parseInt(parameter.getParamValue()));
|
|
now.setDate(Integer.parseInt(parameter.getParamValue()));
|