Browse Source

bug,关联黑名单要在关联时加入

develop
zhangyuan 3 years ago
parent
commit
b05acf8792
  1. 3
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/rent/RentContractInfoDao.xml

3
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/rent/RentContractInfoDao.xml

@ -40,10 +40,9 @@
( b.id IS NULL, '否', '是' ) AS isBlack
FROM
pli_rent_contract_info i
LEFT JOIN pli_rent_blacklist b ON i.LESSEE_ID_CARD = b.ID_CARD
LEFT JOIN pli_rent_blacklist b ON i.LESSEE_ID_CARD = b.ID_CARD AND b.DEL_FLAG = '0'
WHERE
i.DEL_FLAG = '0'
AND b.DEL_FLAG = '0'
<if test="gridId != null and gridId != ''">
AND i.GRID_ID = #{gridId}
</if>

Loading…
Cancel
Save