Selaa lähdekoodia

增加贴图ID查询

xiewenjie 3 vuotta sitten
vanhempi
commit
45251b3179

+ 4 - 5
sxz-core/src/main/java/com/fdkk/sxz/webApi/controller/RenovationController.java

@@ -101,17 +101,16 @@ public class RenovationController extends BaseController {
 
 
     /**
-     * 获取所有墙面地板的数据
+     * 根据id查询贴图数据
      *
      * @return
      */
-    @ApiOperation("获取所有墙面地板的数据")
+    @ApiOperation("根据id查询贴图数据")
     @RequestMapping(value = "/getRenovationBuildByQuery", method = RequestMethod.POST)
     @ApiImplicitParams({
-            @ApiImplicitParam(name = "id", value = "装饰总类id", dataType = "number"),
-            @ApiImplicitParam(name = "keyWord", value = "分类(FLOOR,WALLPAPER)", dataType = "String")})
+            @ApiImplicitParam(name = "id", value = "装饰总类id", dataType = "number")})
     @NoAuthentication
-    @AroundLog(name = "获取所有墙面地板的数据")
+    @AroundLog(name = "根据id查询贴图数据")
     public Result getRenovationBuildByQuery(@RequestBody RequestBuildDetail parts) {
         return Result.success(renovationBuildService.getRenovationBuildByQuery(parts));
     }

+ 1 - 1
sxz-core/src/main/java/com/fdkk/sxz/webApi/service/impl/RenovationBuildServiceImpl.java

@@ -44,7 +44,7 @@ public class RenovationBuildServiceImpl extends BaseServiceImpl<IRenovationBuild
     public RenovationBuildEntity getRenovationBuildByQuery(RequestBuildDetail parts) {
         LambdaQueryWrapper<RenovationBuildEntity> wrapper = Wrappers.lambdaQuery();
         if (ObjectUtil.isNotNull(parts.getId()) && parts.getId() > 0) {
-            wrapper.in(RenovationBuildEntity::getId, parts.getId());
+            wrapper.eq(RenovationBuildEntity::getId, parts.getId());
         }
         return getOne(wrapper);
     }