|
@@ -47,15 +47,8 @@ public class FusionGuidePathController {
|
|
|
(fusionGuidePath.getSort() == null && StringUtils.isEmpty(fusionGuidePath.getCover())) ){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
- LambdaUpdateWrapper<FusionGuidePath> wrapper = new LambdaUpdateWrapper<>();
|
|
|
- wrapper.eq(FusionGuidePath::getGuidePathId,fusionGuidePath.getGuidePathId());
|
|
|
- if(fusionGuidePath.getSort()!=null){
|
|
|
- wrapper.set(FusionGuidePath::getSort,fusionGuidePath.getSort());
|
|
|
- }
|
|
|
- if(StringUtils.isNotBlank(fusionGuidePath.getCover())){
|
|
|
- wrapper.set(FusionGuidePath::getCover,fusionGuidePath.getCover());
|
|
|
- }
|
|
|
- fusionGuidePathService.update(wrapper);
|
|
|
+ fusionGuidePath.setUpdateTime(null);
|
|
|
+ fusionGuidePathService.updateById(fusionGuidePath);
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
|