ruanqi 3 years ago
parent
commit
ea853a54bb
  1. 17
      src/main/resources/mapper/grid/GridTableDefaultDao.xml
  2. 15
      src/main/resources/mapper/grid/GridTableUserDao.xml

17
src/main/resources/mapper/grid/GridTableDefaultDao.xml

@ -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>

15
src/main/resources/mapper/grid/GridTableUserDao.xml

@ -21,7 +21,8 @@
gtd.user_id,
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,
@ -36,17 +37,17 @@
gtd.header_align
FROM
grid_table_user 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="userId != null and userId != ''">
and gtd.user_id = #{userId,jdbcType=VARCHAR}
</if>

Loading…
Cancel
Save