斯瑞奇mes后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

65 lines
3.0 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.srq.modules.grid.dao.GridTableUserDao">
<resultMap id="BaseResultMap" type="com.srq.modules.grid.entity.GridTableUser">
<result column="user_id" jdbcType="VARCHAR" property="userId"/>
<result column="function_id" jdbcType="VARCHAR" property="functionId"/>
<result column="table_id" jdbcType="VARCHAR" property="tableId"/>
<result column="table_name" jdbcType="VARCHAR" property="tableName"/>
<result column="column_prop" jdbcType="VARCHAR" property="columnProp"/>
<result column="column_label" jdbcType="VARCHAR" property="columnLabel"/>
<result column="column_hidden" jdbcType="INTEGER" property="columnHidden"/>
<result column="column_image" jdbcType="INTEGER" property="columnImage"/>
<result column="column_sortable" jdbcType="INTEGER" property="columnSortable"/>
<result column="column_width" jdbcType="INTEGER" property="columnWidth"/>
<result column="format" jdbcType="VARCHAR" property="format"/>
<result column="sort_lv" jdbcType="INTEGER" property="sortLv"/>
</resultMap>
<select id="getTableUserListLanguage" resultType="com.srq.modules.grid.entity.GridTableUser"
parameterType="com.srq.modules.grid.query.GridTableUserQuery">
SELECT
gtd.user_id,
gtd.table_id,
gtd.column_prop,
<!-- ISNULL( gtl.language_value, gtd.column_label ) AS column_label,-->
gtd.column_label,
gtd.column_hidden,
gtd.column_image,
gtd.column_sortable,
gtd.column_width,
gtd.fixed,
gtd.sort_lv,
gtd.status,
gtd.table_name,
gtd.function_id,
gtd.column_type,
gtd.align,
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 )-->
<where>
<!-- 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="userId != null and userId != ''">
and gtd.user_id = #{userId,jdbcType=VARCHAR}
</if>
<if test="status != null and status != ''">
and gtd.status = #{status,jdbcType=BOOLEAN}
</if>
<if test="functionId != null and functionId != ''">
and gtd.function_id = #{functionId,jdbcType=VARCHAR}
</if>
</where>
ORDER BY gtd.status desc , gtd.sort_lv asc
</select>
</mapper>