1
2
3
4
5
6
7
8
9
10
11
12
|
LambdaUpdateWrapper<ColorScheme> updateWrapperForColorScheme = new LambdaUpdateWrapper<ColorScheme>()
.eq(ColorScheme::getId, colorScheme.getId())
.set(ColorScheme::getCode, colorScheme.getCode())
.set(ColorScheme::getProgress, colorScheme.getProgress())
.set(ColorScheme::getName, colorScheme.getName())
.set(ColorScheme::getStartTime, colorScheme.getStartTime())
.set(ColorScheme::getEndTime, colorScheme.getEndTime())
.set(ColorScheme::getExecutor, JSON.toJSON(colorScheme.getExecutor()));
colorSchemeMapper.update(null, updateWrapperForColorScheme);
|