Browse Source

Merge branch 'dev_bugfix_ljj' of http://git.elinkit.com.cn:7070/r/epmet-cloud into dev

dev
jianjun 4 years ago
parent
commit
4adc7a6663
  1. 15
      epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenIndexDataMonthlyDao.xml

15
epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenIndexDataMonthlyDao.xml

@ -307,12 +307,21 @@
</if>
WHERE
score.del_flag = '0'
score.del_flag = '0'
AND score.MONTH_ID = #{monthId,jdbcType=VARCHAR}
<if test="customerId != null and customerId != ''">
AND score.CUSTOMER_ID = #{customerId,jdbcType=VARCHAR}
</if>
AND score.PARENT_ID = #{agencyId,jdbcType=VARCHAR}
AND score.MONTH_ID = #{monthId,jdbcType=VARCHAR}
<!--孔村镇ID 则跳过 直接查社区级别的-->
<choose>
<when test="agencyId == '1234085031077498881'">
AND org.PIDS like concat(#{agencyId},'%')
AND org.LEVEL = 'community'
</when>
<otherwise>
AND score.PARENT_ID = #{agencyId,jdbcType=VARCHAR}
</otherwise>
</choose>
<choose>
<when test="orgType != null and orgType != ''">
AND score.ORG_TYPE = #{orgType,jdbcType=VARCHAR}

Loading…
Cancel
Save