battery-business/src/main/resources/mapper/battery/TBatteryGroupFieldMapper.xml
@@ -102,5 +102,7 @@ where field_id = #{fieldId} and del_flag = 0) + (select count(1) from t_battery_group_relation_field 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> </mapper>