yeg
2026-09-07 551bf2b42dddc3a0d8d0949da17bb2b1ec733b01
battery-business/src/main/resources/mapper/battery/TBatteryGroupFieldMapper.xml
@@ -104,5 +104,7 @@
             where battery_group_field_id = #{fieldId} and del_flag = '0')
          + (select count(1) from t_compare_report_field_template
             where template_type = 'compare' and JSON_CONTAINS(fields_json, JSON_OBJECT('fieldDefinitionId', #{fieldId})))
          + (select count(1) from t_formation_report_field_template
             where template_type = 'formation' and JSON_CONTAINS(fields_json, JSON_OBJECT('fieldDefinitionId', #{fieldId})))
    </select>
</mapper>