Browse Source

核酸检测记录列表查询,agencyId条件修改,不能用like,效率太低,不走索引;要用=

dev
wangxianzhang 3 years ago
parent
commit
cce06eda0b
  1. 3
      epmet-user/epmet-user-server/src/main/resources/mapper/IcNatDao.xml

3
epmet-user/epmet-user-server/src/main/resources/mapper/IcNatDao.xml

@ -55,7 +55,8 @@
a.DEL_FLAG = '0' a.DEL_FLAG = '0'
AND b.DEL_FLAG = '0' AND b.DEL_FLAG = '0'
AND a.customer_id = #{customerId} AND a.customer_id = #{customerId}
AND a.pids like concat('%', #{agencyId}, '%') <!-- AND a.pids like concat('%', #{agencyId}, '%')-->
AND a.AGENCY_ID = #{agencyId}
<if test='null != name and "" != name'> <if test='null != name and "" != name'>
AND b.name like concat('%', #{name}, '%') AND b.name like concat('%', #{name}, '%')
</if> </if>

Loading…
Cancel
Save