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>