| | |
| | | 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 count(1) from t_formation_report_field_template |
| | | where template_type = 'formation' and JSON_CONTAINS(fields_json, JSON_OBJECT('fieldDefinitionId', #{fieldId}))) |
| | | </select> |
| | | </mapper> |