|
@@ -198,7 +198,7 @@
|
|
|
and t1.start_month >= #{startMonth}
|
|
|
</if>
|
|
|
<if test="endMonth!=null">
|
|
|
- and t1.end_month <= #{endMonth}
|
|
|
+ AND (t1.end_month <= #{endMonth} OR (t1.end_month IS NULL AND t1.start_month <= #{endMonth}))
|
|
|
</if>
|
|
|
<if test="itemRun!=null">
|
|
|
and t1.item_run = #{itemRun}
|