Redeem 1 年之前
父节点
当前提交
64c18ec6b9
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/main/resources/com/steerinfo/dil/mapper/StatisticalReportMapper.xml

+ 5 - 2
src/main/resources/com/steerinfo/dil/mapper/StatisticalReportMapper.xml

@@ -5694,8 +5694,11 @@
             <if test="saleRemark != null">
                 and "saleRemark" like Concat('%',Concat(#{saleRemark},'%'))
             </if>
-            <if test="transportStatus != null">
-                and "transportStatus" like Concat('%',Concat(#{transportStatus},'%'))
+            <if test="transportStatus != null and transportStatus.size > 0">
+                and "transportStatus" in
+                <foreach collection="transportStatus" index="index" item="item" separator="," close=")" open="(">
+                   #{item}
+               </foreach>
             </if>
         </where>
         <include refid="orderBy"></include>