lyhzzz 1 week ago
parent
commit
c2bfe9c850

+ 2 - 9
src/main/java/com/fdkankan/fusion/controller/FusionGuidePathController.java

@@ -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();
     }