suochencheng il y a 7 ans
Parent
commit
bda94e69b4

+ 26 - 0
src/main/java/com/izouma/awesomeadmin/dao/LandMarkMapper.xml

@@ -575,6 +575,9 @@
             <if test="addStep != null and !&quot;&quot;.equals(addStep)">
             <if test="addStep != null and !&quot;&quot;.equals(addStep)">
                 and add_step = #{addStep}
                 and add_step = #{addStep}
             </if>
             </if>
+            <if test="addStepStr != null and !&quot;&quot;.equals(addStepStr)">
+                and add_step in (${addStepStr})
+            </if>
             <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
             <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
 
 
                 and (front_level_id = #{frontLevelId}
                 and (front_level_id = #{frontLevelId}
@@ -765,6 +768,11 @@
             <if test="record.addStep != null and !&quot;&quot;.equals(record.addStep)">
             <if test="record.addStep != null and !&quot;&quot;.equals(record.addStep)">
                 and add_step = #{record.addStep}
                 and add_step = #{record.addStep}
             </if>
             </if>
+
+            <if test="record.addStepStr != null and !&quot;&quot;.equals(record.addStepStr)">
+                and add_step in (${record.addStepStr})
+            </if>
+
             <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
             <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
 
 
                 and (front_level_id = #{record.frontLevelId}
                 and (front_level_id = #{record.frontLevelId}
@@ -973,6 +981,11 @@
             <if test="record.addStep != null and !&quot;&quot;.equals(record.addStep)">
             <if test="record.addStep != null and !&quot;&quot;.equals(record.addStep)">
                 and add_step = #{record.addStep}
                 and add_step = #{record.addStep}
             </if>
             </if>
+
+            <if test="record.addStepStr != null and !&quot;&quot;.equals(record.addStepStr)">
+                and add_step in (${record.addStepStr})
+            </if>
+
             <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
             <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
 
 
                 and (front_level_id = #{record.frontLevelId}
                 and (front_level_id = #{record.frontLevelId}
@@ -1181,6 +1194,11 @@
             <if test="addStep != null and !&quot;&quot;.equals(addStep)">
             <if test="addStep != null and !&quot;&quot;.equals(addStep)">
                 and add_step = #{addStep}
                 and add_step = #{addStep}
             </if>
             </if>
+
+            <if test="addStepStr != null and !&quot;&quot;.equals(addStepStr)">
+                and add_step in (${addStepStr})
+            </if>
+
             <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
             <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
 
 
                 and (front_level_id = #{frontLevelId}
                 and (front_level_id = #{frontLevelId}
@@ -1372,6 +1390,10 @@
                 and add_step = #{addStep}
                 and add_step = #{addStep}
             </if>
             </if>
 
 
+            <if test="addStepStr != null and !&quot;&quot;.equals(addStepStr)">
+                and add_step in (${addStepStr})
+            </if>
+
         </where>
         </where>
         LIMIT 1
         LIMIT 1
     </select>
     </select>
@@ -1481,6 +1503,10 @@
                 and add_step = #{addStep}
                 and add_step = #{addStep}
             </if>
             </if>
 
 
+            <if test="addStepStr != null and !&quot;&quot;.equals(addStepStr)">
+                and add_step in (${addStepStr})
+            </if>
+
         </where>
         </where>
         LIMIT 1
         LIMIT 1
     </select>
     </select>

+ 13 - 0
src/main/java/com/izouma/awesomeadmin/model/LandMark.java

@@ -87,6 +87,11 @@ public class LandMark {
      */
      */
     private Integer addStep;
     private Integer addStep;
 
 
+    /**
+     * 查询步骤
+     */
+    private String addStepStr;
+
     /**
     /**
      * 闪屏广告图片
      * 闪屏广告图片
      */
      */
@@ -522,5 +527,13 @@ public class LandMark {
     public void setBusRoute(String busRoute) {
     public void setBusRoute(String busRoute) {
         this.busRoute = busRoute;
         this.busRoute = busRoute;
     }
     }
+
+    public String getAddStepStr() {
+        return addStepStr;
+    }
+
+    public void setAddStepStr(String addStepStr) {
+        this.addStepStr = addStepStr;
+    }
 }
 }