瀏覽代碼

行情\行情产品修改查询条件

刘浩男 1 年之前
父節點
當前提交
726482bc61

+ 2 - 0
sooka-jnb/src/main/java/com/sooka/jnb/quotations/domain/JnbQuotations.java

@@ -64,4 +64,6 @@ public class JnbQuotations extends BaseEntity
     /** 审核状态 */
     private String status;
 
+    private String[] types;
+
 }

+ 6 - 1
sooka-jnb/src/main/resources/mapper/quotations/JnbQuotationsMapper.xml

@@ -57,7 +57,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 '%')
             </if>
             <if test="area != null  and area != ''">and a.area = #{area}</if>
-            <if test="type != null  and type != ''">and a.type = #{type}</if>
+            <if test="types != null and types.length > 0">
+                and a.type IN
+                <foreach item="type" collection="types" open="(" separator="," close=")">
+                    #{type}
+                </foreach>
+            </if>
             and a.del_flag = 0
             <if test="status != null  and status != ''">and a.status = #{status}</if>
         </where>