Explorar o código

查询条件修改

chengyao %!s(int64=3) %!d(string=hai) anos
pai
achega
36b4464e8e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      dblayer-mbg/src/main/resources/mapper/RegionMapper.xml

+ 2 - 2
dblayer-mbg/src/main/resources/mapper/RegionMapper.xml

@@ -42,8 +42,8 @@
         <if test='name != null and name != ""'>
             and t1.name like CONCAT('%',#{name},'%')
         </if>
-        <if test='status != null and status != ""'>
-            and t2.status like CONCAT('%',#{status},'%')
+        <if test='status != null'>
+            and t1.status = #{status}
         </if>
         order by t1.order_no,t1.gmt_create desc
     </select>