|
|
|
@ -16,7 +16,8 @@ |
|
|
|
parameterType="com.srq.modules.grid.query.GridTableDefaultQuery"> |
|
|
|
SELECT gtd.table_id, |
|
|
|
gtd.column_prop, |
|
|
|
ISNULL(gtl.language_value, gtd.column_label) AS column_label, |
|
|
|
<!-- ISNULL(gtl.language_value, gtd.column_label) AS column_label,--> |
|
|
|
gtd.column_label, |
|
|
|
gtd.column_hidden, |
|
|
|
gtd.column_image, |
|
|
|
gtd.column_sortable, |
|
|
|
@ -30,17 +31,17 @@ |
|
|
|
gtd.align, |
|
|
|
gtd.header_align |
|
|
|
FROM grid_table_default gtd |
|
|
|
LEFT JOIN sys_object_language_others gtl |
|
|
|
ON (gtd.table_id = gtl.table_id AND gtd.column_prop = gtl.object_id |
|
|
|
AND gtd.function_id = gtl.function_id ) |
|
|
|
<!-- LEFT JOIN sys_object_language_others gtl--> |
|
|
|
<!-- ON (gtd.table_id = gtl.table_id AND gtd.column_prop = gtl.object_id--> |
|
|
|
<!-- AND gtd.function_id = gtl.function_id )--> |
|
|
|
<where> |
|
|
|
gtl.object_type='table' AND gtl.language_code = #{languageCode} |
|
|
|
<!-- gtl.object_type='table' AND gtl.language_code = #{languageCode}--> |
|
|
|
<if test="tableId != null and tableId != ''"> |
|
|
|
and gtd.table_id = #{tableId,jdbcType=VARCHAR} |
|
|
|
</if> |
|
|
|
<if test="objectType != null and objectType != ''"> |
|
|
|
and gtl.object_type = #{objectType,jdbcType=VARCHAR} |
|
|
|
</if> |
|
|
|
<!-- <if test="objectType != null and objectType != ''">--> |
|
|
|
<!-- and gtl.object_type = #{objectType,jdbcType=VARCHAR}--> |
|
|
|
<!-- </if>--> |
|
|
|
<if test="status != null and status != ''"> |
|
|
|
and gtd.status = #{status,jdbcType=BOOLEAN} |
|
|
|
</if> |
|
|
|
|