Browse Source

CIM-修改查询SQL

dev-V1.0.8
niujiyi 1 month ago
parent
commit
93543d193f
  1. 5
      zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/CimDashboardOverviewMapper.xml

5
zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/CimDashboardOverviewMapper.xml

@ -985,7 +985,7 @@
<where>
t1.`level` =3
<if test="monthTime !=null">
and DATE_FORMAT(t1.c201010, '%Y-%m') = DATE_FORMAT(#{monthTime}, '%Y-%m')
and DATE_FORMAT(t3.c201010, '%Y-%m') = DATE_FORMAT(#{monthTime}, '%Y-%m')
</if>
</where>
</select>
@ -1020,7 +1020,7 @@
<where>
t1.`level` = 3
<if test="monthTime !=null">
and DATE_FORMAT(t1.c201010, '%Y-%m') = DATE_FORMAT(#{monthTime}, '%Y-%m')
and DATE_FORMAT(t3.add_time, '%Y-%m') = DATE_FORMAT(#{monthTime}, '%Y-%m')
</if>
</where>
</select>
@ -1036,7 +1036,6 @@
left join sxt_xzqzjbxx173774 t3 on
t2.dept_name = t3.c301004
<where>
<if test="monthTime !=null">
and DATE_FORMAT(t3.add_time, '%Y-%m') = DATE_FORMAT(#{monthTime}, '%Y-%m')
</if>

Loading…
Cancel
Save