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.
|
|
<?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.spring.modules.grid.dao.GridTableDefaultDao"> <resultMap id="BaseResultMap" type="com.spring.modules.grid.entity.GridTableDefault"> <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"/> </resultMap> <select id="getTableDefaultListLanguage" resultType="com.spring.modules.grid.entity.GridTableDefault" parameterType="com.spring.modules.grid.query.GridTableDefaultQuery"> SELECT gtd.table_id, gtd.column_prop, ISNULL(gtl.language_value, gtd.column_label) AS 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_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 ) <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="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.sort_lv ASC
</select> <select id="getMenuTableList" resultType="com.spring.modules.grid.entity.GridTableDefault"> SELECT gtd.table_id,Max(gtd.table_name) table_name,gtd.function_id FROM grid_table_default gtd WHERE gtd.function_id = #{functionId} GROUP BY gtd.function_id,gtd.table_id </select>
</mapper>
|