|
@@ -312,6 +312,9 @@
|
|
|
<if test="endDate != null and endDate != ''">
|
|
|
AND month_ <= #{endDate}
|
|
|
</if>
|
|
|
+ <if test="organId != null and organId != ''">
|
|
|
+ AND FIND_IN_SET(organ_id_,#{organId})
|
|
|
+ </if>
|
|
|
GROUP BY extend_info_
|
|
|
HAVING SUM(total_num_) > 1)a
|
|
|
</select>
|
|
@@ -338,7 +341,7 @@
|
|
|
AND month_ >= #{startDate}
|
|
|
</if>
|
|
|
<if test="endDate != null and endDate != ''">
|
|
|
- AND month_ <= #{startDate}
|
|
|
+ AND month_ <= #{endDate}
|
|
|
</if>
|
|
|
<if test="organId != null and organId != ''">
|
|
|
AND FIND_IN_SET(organ_id_,#{organId})
|