Browse Source

【修复BUG】统计信息数据不一致

1.数据库记录存在空字符串'',过滤空字符串
national_dev
Bill 2 years ago
parent
commit
2e0af6052a
  1. 2
      code/smart-community/epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partymember/IcPartyMemberDao.xml

2
code/smart-community/epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partymember/IcPartyMemberDao.xml

@ -148,6 +148,7 @@
WHERE WHERE
DEL_FLAG = '0' DEL_FLAG = '0'
AND CULTURE IS NOT NULL AND CULTURE IS NOT NULL
AND CULTURE != ''
<choose> <choose>
<when test='orgId != "" and orgId != null'> <when test='orgId != "" and orgId != null'>
AND (SSZB = #{orgId} OR ORG_PIDS LIKE CONCAT('%',#{orgId},'%')) AND (SSZB = #{orgId} OR ORG_PIDS LIKE CONCAT('%',#{orgId},'%'))
@ -250,6 +251,7 @@
DEL_FLAG = '0' DEL_FLAG = '0'
<if test="null != codeType and 'education' == codeType"> <if test="null != codeType and 'education' == codeType">
AND CULTURE IS NOT NULL AND CULTURE IS NOT NULL
AND CULTURE != ''
<if test="null != code and '' != code"> <if test="null != code and '' != code">
AND CULTURE = #{code} AND CULTURE = #{code}
</if> </if>

Loading…
Cancel
Save