浏览代码

增加漫游点查询接口,JSON格式 2021-11-15 17:44:27

xiewenjie 3 年之前
父节点
当前提交
a6803be91d

+ 3 - 3
sxz-core/src/main/java/com/fdkk/sxz/webApi/mapper/IRenovationPartsDetailMapper.java

@@ -73,13 +73,13 @@ public interface IRenovationPartsDetailMapper extends IBaseMapper<RenovationPart
             "<if test= 'param.partsStyleId != null'> " +
             " and f.id  =#{param.partsStyleId}" +
             "</if> " +
-            "<if test= 'param.partsAttachingId != null and param.partsAttachingId = 1 '> " +
+            "<if test= 'param.partsAttachingId != null and param.partsAttachingType == \"wall\" '> " +
             " and g.wall_attaching= 1" +
             "</if> " +
-            "<if test= 'param.ceil_attaching != null and param.partsAttachingId = 2 '> " +
+            "<if test= 'param.partsAttachingType != null and param.partsAttachingType == \"floor\" '> " +
             " and g.floor_attaching = 1" +
             "</if> " +
-            "<if test= 'param.partsAttachingId != null and param.partsAttachingId = 3 '> " +
+            "<if test= 'param.partsAttachingId != null and param.partsAttachingType == \"ceil\" '> " +
             " and g.ceil_attaching = 1" +
             "</if> " +
             " GROUP BY a.name ORDER BY a.create_time desc" +

+ 2 - 1
sxz-modules/src/main/java/com/fdkk/sxz/vo/request/RequestRenovationParts.java

@@ -41,8 +41,9 @@ public class RequestRenovationParts extends RequestBase {
     private Long partsColorId;
     //-风格id
     private Long partsStyleId;
+    
     //-吸附方式
-    private Long partsAttachingId;
+    private String partsAttachingType;
 
 
 }