zhs пре 3 година
родитељ
комит
7e9ed23f42

+ 4 - 0
src/main/java/com/travel/model/Travel.java

@@ -208,4 +208,8 @@ public class Travel implements Serializable {
      * 供应商名称
      */
     private String supplierName;
+    /**
+     * 特色
+     */
+    private String features;
 }

+ 18 - 0
src/main/resources/config/mapping/ReleaseTravelMapper.xml

@@ -83,6 +83,9 @@
                     <if test="jdrq != null and jdrq != ''">
                         and #{startTime} <![CDATA[ <= ]]> a.jdrq and #{endTime} <![CDATA[ > ]]> jdrq
                     </if>
+                    <if test="features != null and features != ''">
+                        and a.features = #{features}
+                    </if>
                     and state_type = '1'
                 </trim>
                 UNION ALL
@@ -125,6 +128,9 @@
                     <if test="jdrq != null and jdrq != ''">
                         and #{startTime} <![CDATA[ <= ]]> a.jdrq and #{endTime} <![CDATA[ > ]]> jdrq
                     </if>
+                    <if test="features != null and features != ''">
+                        and a.features = #{features}
+                    </if>
                     and state_type  = '1'
                 </trim>
             ) e
@@ -144,6 +150,9 @@
                     <if test="jdrq != null and jdrq != ''">
                         and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
                     </if>
+                    <if test="features != null and features != ''">
+                        and features = #{features}
+                    </if>
                     and state_type  = '1'
                 </trim>
                 UNION ALL
@@ -160,6 +169,9 @@
                     <if test="jdrq != null and jdrq != ''">
                         and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
                     </if>
+                    <if test="features != null and features != ''">
+                        and features = #{features}
+                    </if>
                     and state_type  = '1'
                 </trim>
                 ) f ORDER BY f.jdrq desc)
@@ -306,6 +318,9 @@
                     <if test="titleTravel != null and titleTravel != ''">
                         and title_travel like CONCAT(CONCAT('%', #{titleTravel}), '%')
                     </if>
+                    <if test="features != null and features != ''">
+                        and features = #{features}
+                    </if>
                     <if test="jdrq != null and jdrq != ''">
                         and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
                     </if>
@@ -330,6 +345,9 @@
                     <if test="jdrq != null and jdrq != ''">
                         and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
                     </if>
+                    <if test="features != null and features != ''">
+                        and features = #{features}
+                    </if>
                 </trim>
             ) a
     </select>