@@ -503,7 +503,7 @@
and tpl.principal = #{principal,jdbcType=VARCHAR}
</if>
<if test="_parameter != null">
- group by tp.id
+ group by tp.id,oi.id
</select>