Pu Zhibing
2025-05-30 ba7d9b39ade09fc8d68ccec8cb22578cd7453a2f
ruoyi-modules/ruoyi-system/src/main/resources/mapping/system/WarnMapper.xml
@@ -27,8 +27,11 @@
      left join t_driver c on (a.driver_id = c.id)
      left join t_enterprise d on (a.enterprise_id = d.id)
      <where>
         <if test="null != item.warnType and '' != item.warnType">
            and a.warn_type = #{item.warnType}
         <if test="null != item.warnTypes and warnTypes.size() > 0">
            and a.warn_type in
            <foreach collection="warnTypes" item="item" index="index" separator="," open="(" close=")">
               #{item}
            </foreach>
         </if>
         <if test="null != item.carType and '' != item.carType">
            and b.operate_type = #{item.carType}