fix
This commit is contained in:
parent
1ed80a054e
commit
c74d643f2f
@ -125,12 +125,14 @@
|
||||
|
||||
<select id="statisticalByIndicatorType"
|
||||
resultType="com.lz.modules.performance.dto.StatisticalIndicatorTypeDto">
|
||||
SELECT t.name,l.indicator_type,count(l.indicator_type) count from lz_indicator_type t RIGHT JOIN lz_indicator_library l
|
||||
on t.id = l.indicator_type where t.is_delete = 0 and l.is_delete=0
|
||||
<if test="indicatorType!=null">
|
||||
and l.indicator_type=#{indicatorType}
|
||||
</if>
|
||||
GROUP BY indicator_type
|
||||
SELECT t.id indicatorType,t.name,IFNULL(l.count,0) count from lz_indicator_type t
|
||||
LEFT JOIN (SELECT name,indicator_type,count(indicator_type) count from lz_indicator_library where is_delete = 0
|
||||
<if test="indicatorType!=null">
|
||||
and l.indicator_type=#{indicatorType}
|
||||
</if>
|
||||
GROUP BY indicator_type) l
|
||||
on t.is_delete = 0 and t.id = l.indicator_type
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user