<?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.th.demo.mapping.develop.DevTablePropertyMapper" >
  <resultMap id="BaseResultMap" type="com.th.demo.model.develop.DevTableProperty" >
    <id column="ID" property="id" jdbcType="VARCHAR" />
    <result column="TABLE_NAME" property="tableName" jdbcType="VARCHAR" />
    <result column="TABLE_FIELD" property="tableField" jdbcType="VARCHAR" />
    <result column="TABLE_TYPE" property="tableType" jdbcType="VARCHAR" />
    <result column="TABLE_INDEX" property="tableIndex" jdbcType="VARCHAR" />
    <result column="TABLE_COLUMN_KEY" property="tableColumnKey" jdbcType="VARCHAR" />
    <result column="TABLE_LABEL" property="tableLabel" jdbcType="VARCHAR" />
    <result column="TABLE_PROP" property="tableProp" jdbcType="VARCHAR" />
    <result column="TABLE_WIDTH" property="tableWidth" jdbcType="VARCHAR" />
    <result column="TABLE_MIN_WIDTH" property="tableMinWidth" jdbcType="VARCHAR" />
    <result column="TABLE_FIXED" property="tableFixed" jdbcType="VARCHAR" />
    <result column="TABLE_RENDER_HEADER" property="tableRenderHeader" jdbcType="VARCHAR" />
    <result column="TABLE_SORTABLE" property="tableSortable" jdbcType="VARCHAR" />
    <result column="TABLE_SORT_METHOD" property="tableSortMethod" jdbcType="VARCHAR" />
    <result column="TABLE_SORT_BY" property="tableSortBy" jdbcType="VARCHAR" />
    <result column="TABLE_SORT_ORDERS" property="tableSortOrders" jdbcType="VARCHAR" />
    <result column="TABLE_RESIZABLE" property="tableResizable" jdbcType="VARCHAR" />
    <result column="TABLE_FORMATTER" property="tableFormatter" jdbcType="VARCHAR" />
    <result column="TABLE_SHOW_OVERFLOW_TOOLTIP" property="tableShowOverflowTooltip" jdbcType="VARCHAR" />
    <result column="TABLE_ALIGN" property="tableAlign" jdbcType="VARCHAR" />
    <result column="TABLE_HEADER_ALIGN" property="tableHeaderAlign" jdbcType="VARCHAR" />
    <result column="TABLE_CLASS_NAME" property="tableClassName" jdbcType="VARCHAR" />
    <result column="TABLE_LABEL_CLASS_NAME" property="tableLabelClassName" jdbcType="VARCHAR" />
    <result column="TABLE_SELECTABLE" property="tableSelectable" jdbcType="VARCHAR" />
    <result column="TABLE_RESERVE_SELECTION" property="tableReserveSelection" jdbcType="VARCHAR" />
    <result column="TABLE_FILTERS" property="tableFilters" jdbcType="VARCHAR" />
    <result column="TABLE_FILTER_PLACEMENT" property="tableFilterPlacement" jdbcType="VARCHAR" />
    <result column="TABLE_FILTER_MULTIPLE" property="tableFilterMultiple" jdbcType="VARCHAR" />
    <result column="TABLE_FILTER_METHOD" property="tableFilterMethod" jdbcType="VARCHAR" />
    <result column="TABLE_FILTERED_VALUE" property="tableFilteredValue" jdbcType="VARCHAR" />
    <result column="ADD_ID" property="addId" jdbcType="VARCHAR" />
    <result column="ADD_TIME" property="addTime" jdbcType="TIMESTAMP" />
    <result column="MODIFY_ID" property="modifyId" jdbcType="VARCHAR" />
    <result column="MODIFY_TIME" property="modifyTime" jdbcType="TIMESTAMP" />
    <result column="CANCEL_ID" property="cancelId" jdbcType="VARCHAR" />
    <result column="CANCEL_TIME" property="cancelTime" jdbcType="TIMESTAMP" />
    <result column="CANCEL_FLAG" property="cancelFlag" jdbcType="VARCHAR" />
    <result column="ATTR1" property="attr1" jdbcType="VARCHAR" />
    <result column="ATTR2" property="attr2" jdbcType="VARCHAR" />
    <result column="ATTR3" property="attr3" jdbcType="VARCHAR" />
    <result column="ATTR4" property="attr4" jdbcType="DECIMAL" />
    <result column="ATTR5" property="attr5" jdbcType="DECIMAL" />
    <result column="ATTR6" property="attr6" jdbcType="DECIMAL" />
    <result column="SORT" property="sort" jdbcType="DECIMAL" />
    <result column="IS_FORM" property="isForm" jdbcType="VARCHAR" />
    <result column="FORM_TYPE" property="formType" jdbcType="VARCHAR" />
    <result column="FORM_SORT" property="formSort" jdbcType="VARCHAR" />
    <result column="IS_QUERY" property="isQuery" jdbcType="VARCHAR" />
    <result column="QUERY_TYPE" property="queryType" jdbcType="VARCHAR" />
    <result column="QUERY_SORT" property="querySort" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    ID, TABLE_NAME, TABLE_FIELD, TABLE_TYPE, TABLE_INDEX, TABLE_COLUMN_KEY, TABLE_LABEL, 
    TABLE_PROP, TABLE_WIDTH, TABLE_MIN_WIDTH, TABLE_FIXED, TABLE_RENDER_HEADER, TABLE_SORTABLE, 
    TABLE_SORT_METHOD, TABLE_SORT_BY, TABLE_SORT_ORDERS, TABLE_RESIZABLE, TABLE_FORMATTER, 
    TABLE_SHOW_OVERFLOW_TOOLTIP, TABLE_ALIGN, TABLE_HEADER_ALIGN, TABLE_CLASS_NAME, TABLE_LABEL_CLASS_NAME, 
    TABLE_SELECTABLE, TABLE_RESERVE_SELECTION, TABLE_FILTERS, TABLE_FILTER_PLACEMENT, 
    TABLE_FILTER_MULTIPLE, TABLE_FILTER_METHOD, TABLE_FILTERED_VALUE, ADD_ID, ADD_TIME, 
    MODIFY_ID, MODIFY_TIME, CANCEL_ID, CANCEL_TIME, CANCEL_FLAG, ATTR1, ATTR2, ATTR3, 
    ATTR4, ATTR5, ATTR6, SORT,IS_FORM,FORM_TYPE,FORM_SORT,IS_QUERY,QUERY_TYPE,QUERY_SORT
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    select 
    <include refid="Base_Column_List" />
    from dev_table_property
    where ID = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    delete from dev_table_property
    where ID = #{id,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.th.demo.model.develop.DevTableProperty" >
    <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.String">
      SELECT  REPLACE(UUID(),'-','') as id from dual
    </selectKey>

     insert into dev_table_property (ID, TABLE_NAME, TABLE_FIELD,
      TABLE_TYPE, TABLE_INDEX, TABLE_COLUMN_KEY, 
      TABLE_LABEL, TABLE_PROP, TABLE_WIDTH, 
      TABLE_MIN_WIDTH, TABLE_FIXED, TABLE_RENDER_HEADER, 
      TABLE_SORTABLE, TABLE_SORT_METHOD, TABLE_SORT_BY, 
      TABLE_SORT_ORDERS, TABLE_RESIZABLE, TABLE_FORMATTER, 
      TABLE_SHOW_OVERFLOW_TOOLTIP, TABLE_ALIGN, TABLE_HEADER_ALIGN, 
      TABLE_CLASS_NAME, TABLE_LABEL_CLASS_NAME, TABLE_SELECTABLE, 
      TABLE_RESERVE_SELECTION, TABLE_FILTERS, TABLE_FILTER_PLACEMENT, 
      TABLE_FILTER_MULTIPLE, TABLE_FILTER_METHOD, 
      TABLE_FILTERED_VALUE, ADD_ID, ADD_TIME, 
      MODIFY_ID, MODIFY_TIME, CANCEL_ID, 
      CANCEL_TIME, CANCEL_FLAG, ATTR1, 
      ATTR2, ATTR3, ATTR4, 
      ATTR5, ATTR6, SORT,IS_FORM,FORM_TYPE,FORM_SORT,IS_QUERY,QUERY_TYPE,QUERY_SORT)
    values (#{id,jdbcType=VARCHAR},  #{tableName,jdbcType=VARCHAR}, #{tableField,jdbcType=VARCHAR},
      #{tableType,jdbcType=VARCHAR}, #{tableIndex,jdbcType=VARCHAR}, #{tableColumnKey,jdbcType=VARCHAR}, 
      #{tableLabel,jdbcType=VARCHAR}, #{tableProp,jdbcType=VARCHAR}, #{tableWidth,jdbcType=VARCHAR}, 
      #{tableMinWidth,jdbcType=VARCHAR}, #{tableFixed,jdbcType=VARCHAR}, #{tableRenderHeader,jdbcType=VARCHAR}, 
      #{tableSortable,jdbcType=VARCHAR}, #{tableSortMethod,jdbcType=VARCHAR}, #{tableSortBy,jdbcType=VARCHAR}, 
      #{tableSortOrders,jdbcType=VARCHAR}, #{tableResizable,jdbcType=VARCHAR}, #{tableFormatter,jdbcType=VARCHAR}, 
      #{tableShowOverflowTooltip,jdbcType=VARCHAR}, #{tableAlign,jdbcType=VARCHAR}, #{tableHeaderAlign,jdbcType=VARCHAR}, 
      #{tableClassName,jdbcType=VARCHAR}, #{tableLabelClassName,jdbcType=VARCHAR}, #{tableSelectable,jdbcType=VARCHAR}, 
      #{tableReserveSelection,jdbcType=VARCHAR}, #{tableFilters,jdbcType=VARCHAR}, #{tableFilterPlacement,jdbcType=VARCHAR}, 
      #{tableFilterMultiple,jdbcType=VARCHAR}, #{tableFilterMethod,jdbcType=VARCHAR}, 
      #{tableFilteredValue,jdbcType=VARCHAR}, #{addId,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, 
      #{modifyId,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{cancelId,jdbcType=VARCHAR}, 
      #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{attr1,jdbcType=VARCHAR}, 
      #{attr2,jdbcType=VARCHAR}, #{attr3,jdbcType=VARCHAR}, #{attr4,jdbcType=DECIMAL}, 
      #{attr5,jdbcType=DECIMAL}, #{attr6,jdbcType=DECIMAL}, #{sort,jdbcType=DECIMAL},
      #{isForm,jdbcType=VARCHAR}, #{formType,jdbcType=VARCHAR}, #{formSort,jdbcType=VARCHAR}, #{isQuery,jdbcType=VARCHAR}
      , #{queryType,jdbcType=VARCHAR}, #{querySort,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.th.demo.model.develop.DevTableProperty" >
    insert into dev_table_property
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        ID,
      </if>
      <if test="tableName != null" >
        TABLE_NAME,
      </if>
      <if test="tableField != null" >
        TABLE_FIELD,
      </if>
      <if test="tableType != null" >
        TABLE_TYPE,
      </if>
      <if test="tableIndex != null" >
        TABLE_INDEX,
      </if>
      <if test="tableColumnKey != null" >
        TABLE_COLUMN_KEY,
      </if>
      <if test="tableLabel != null" >
        TABLE_LABEL,
      </if>
      <if test="tableProp != null" >
        TABLE_PROP,
      </if>
      <if test="tableWidth != null" >
        TABLE_WIDTH,
      </if>
      <if test="tableMinWidth != null" >
        TABLE_MIN_WIDTH,
      </if>
      <if test="tableFixed != null" >
        TABLE_FIXED,
      </if>
      <if test="tableRenderHeader != null" >
        TABLE_RENDER_HEADER,
      </if>
      <if test="tableSortable != null" >
        TABLE_SORTABLE,
      </if>
      <if test="tableSortMethod != null" >
        TABLE_SORT_METHOD,
      </if>
      <if test="tableSortBy != null" >
        TABLE_SORT_BY,
      </if>
      <if test="tableSortOrders != null" >
        TABLE_SORT_ORDERS,
      </if>
      <if test="tableResizable != null" >
        TABLE_RESIZABLE,
      </if>
      <if test="tableFormatter != null" >
        TABLE_FORMATTER,
      </if>
      <if test="tableShowOverflowTooltip != null" >
        TABLE_SHOW_OVERFLOW_TOOLTIP,
      </if>
      <if test="tableAlign != null" >
        TABLE_ALIGN,
      </if>
      <if test="tableHeaderAlign != null" >
        TABLE_HEADER_ALIGN,
      </if>
      <if test="tableClassName != null" >
        TABLE_CLASS_NAME,
      </if>
      <if test="tableLabelClassName != null" >
        TABLE_LABEL_CLASS_NAME,
      </if>
      <if test="tableSelectable != null" >
        TABLE_SELECTABLE,
      </if>
      <if test="tableReserveSelection != null" >
        TABLE_RESERVE_SELECTION,
      </if>
      <if test="tableFilters != null" >
        TABLE_FILTERS,
      </if>
      <if test="tableFilterPlacement != null" >
        TABLE_FILTER_PLACEMENT,
      </if>
      <if test="tableFilterMultiple != null" >
        TABLE_FILTER_MULTIPLE,
      </if>
      <if test="tableFilterMethod != null" >
        TABLE_FILTER_METHOD,
      </if>
      <if test="tableFilteredValue != null" >
        TABLE_FILTERED_VALUE,
      </if>
      <if test="addId != null" >
        ADD_ID,
      </if>
      <if test="addTime != null" >
        ADD_TIME,
      </if>
      <if test="modifyId != null" >
        MODIFY_ID,
      </if>
      <if test="modifyTime != null" >
        MODIFY_TIME,
      </if>
      <if test="cancelId != null" >
        CANCEL_ID,
      </if>
      <if test="cancelTime != null" >
        CANCEL_TIME,
      </if>
      <if test="cancelFlag != null" >
        CANCEL_FLAG,
      </if>
      <if test="attr1 != null" >
        ATTR1,
      </if>
      <if test="attr2 != null" >
        ATTR2,
      </if>
      <if test="attr3 != null" >
        ATTR3,
      </if>
      <if test="attr4 != null" >
        ATTR4,
      </if>
      <if test="attr5 != null" >
        ATTR5,
      </if>
      <if test="attr6 != null" >
        ATTR6,
      </if>
      <if test="sort != null" >
        SORT,
      </if>
      <if test="isForm != null" >
        IS_FORM,
      </if>
      <if test="formType != null" >
        FORM_TYPE,
      </if>
      <if test="formSort != null" >
        FORM_SORT,
      </if>
      <if test="isQuery != null" >
        IS_QUERY,
      </if>
      <if test="queryType != null" >
        QUERY_TYPE,
      </if>
      <if test="querySort != null" >
        QUERY_SORT,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="tableName != null" >
        #{tableName,jdbcType=VARCHAR},
      </if>
      <if test="tableField != null" >
        #{tableField,jdbcType=VARCHAR},
      </if>
      <if test="tableType != null" >
        #{tableType,jdbcType=VARCHAR},
      </if>
      <if test="tableIndex != null" >
        #{tableIndex,jdbcType=VARCHAR},
      </if>
      <if test="tableColumnKey != null" >
        #{tableColumnKey,jdbcType=VARCHAR},
      </if>
      <if test="tableLabel != null" >
        #{tableLabel,jdbcType=VARCHAR},
      </if>
      <if test="tableProp != null" >
        #{tableProp,jdbcType=VARCHAR},
      </if>
      <if test="tableWidth != null" >
        #{tableWidth,jdbcType=VARCHAR},
      </if>
      <if test="tableMinWidth != null" >
        #{tableMinWidth,jdbcType=VARCHAR},
      </if>
      <if test="tableFixed != null" >
        #{tableFixed,jdbcType=VARCHAR},
      </if>
      <if test="tableRenderHeader != null" >
        #{tableRenderHeader,jdbcType=VARCHAR},
      </if>
      <if test="tableSortable != null" >
        #{tableSortable,jdbcType=VARCHAR},
      </if>
      <if test="tableSortMethod != null" >
        #{tableSortMethod,jdbcType=VARCHAR},
      </if>
      <if test="tableSortBy != null" >
        #{tableSortBy,jdbcType=VARCHAR},
      </if>
      <if test="tableSortOrders != null" >
        #{tableSortOrders,jdbcType=VARCHAR},
      </if>
      <if test="tableResizable != null" >
        #{tableResizable,jdbcType=VARCHAR},
      </if>
      <if test="tableFormatter != null" >
        #{tableFormatter,jdbcType=VARCHAR},
      </if>
      <if test="tableShowOverflowTooltip != null" >
        #{tableShowOverflowTooltip,jdbcType=VARCHAR},
      </if>
      <if test="tableAlign != null" >
        #{tableAlign,jdbcType=VARCHAR},
      </if>
      <if test="tableHeaderAlign != null" >
        #{tableHeaderAlign,jdbcType=VARCHAR},
      </if>
      <if test="tableClassName != null" >
        #{tableClassName,jdbcType=VARCHAR},
      </if>
      <if test="tableLabelClassName != null" >
        #{tableLabelClassName,jdbcType=VARCHAR},
      </if>
      <if test="tableSelectable != null" >
        #{tableSelectable,jdbcType=VARCHAR},
      </if>
      <if test="tableReserveSelection != null" >
        #{tableReserveSelection,jdbcType=VARCHAR},
      </if>
      <if test="tableFilters != null" >
        #{tableFilters,jdbcType=VARCHAR},
      </if>
      <if test="tableFilterPlacement != null" >
        #{tableFilterPlacement,jdbcType=VARCHAR},
      </if>
      <if test="tableFilterMultiple != null" >
        #{tableFilterMultiple,jdbcType=VARCHAR},
      </if>
      <if test="tableFilterMethod != null" >
        #{tableFilterMethod,jdbcType=VARCHAR},
      </if>
      <if test="tableFilteredValue != null" >
        #{tableFilteredValue,jdbcType=VARCHAR},
      </if>
      <if test="addId != null" >
        #{addId,jdbcType=VARCHAR},
      </if>
      <if test="addTime != null" >
        #{addTime,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyId != null" >
        #{modifyId,jdbcType=VARCHAR},
      </if>
      <if test="modifyTime != null" >
        #{modifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="cancelId != null" >
        #{cancelId,jdbcType=VARCHAR},
      </if>
      <if test="cancelTime != null" >
        #{cancelTime,jdbcType=TIMESTAMP},
      </if>
      <if test="cancelFlag != null" >
        #{cancelFlag,jdbcType=VARCHAR},
      </if>
      <if test="attr1 != null" >
        #{attr1,jdbcType=VARCHAR},
      </if>
      <if test="attr2 != null" >
        #{attr2,jdbcType=VARCHAR},
      </if>
      <if test="attr3 != null" >
        #{attr3,jdbcType=VARCHAR},
      </if>
      <if test="attr4 != null" >
        #{attr4,jdbcType=DECIMAL},
      </if>
      <if test="attr5 != null" >
        #{attr5,jdbcType=DECIMAL},
      </if>
      <if test="attr6 != null" >
        #{attr6,jdbcType=DECIMAL},
      </if>
      <if test="sort != null" >
        #{sort,jdbcType=DECIMAL},
      </if>
      <if test="isForm != null" >
        #{isForm,jdbcType=VARCHAR},
      </if>
      <if test="formType != null" >
        #{formType,jdbcType=VARCHAR},
      </if>
      <if test="formSort != null" >
        #{formSort,jdbcType=VARCHAR},
      </if>
      <if test="isQuery != null" >
        #{isQuery,jdbcType=VARCHAR},
      </if>
      <if test="queryType != null" >
        #{queryType,jdbcType=VARCHAR},
      </if>
      <if test="querySort != null" >
        #{querySort,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.th.demo.model.develop.DevTableProperty" >
    update DEV_TABLE_PROPERTY
    <set >
      <if test="tableName != null" >
        TABLE_NAME = #{tableName,jdbcType=VARCHAR},
      </if>
      <if test="tableField != null" >
        TABLE_FIELD = #{tableField,jdbcType=VARCHAR},
      </if>
      <if test="tableType != null" >
        TABLE_TYPE = #{tableType,jdbcType=VARCHAR},
      </if>
      <if test="tableIndex != null" >
        TABLE_INDEX = #{tableIndex,jdbcType=VARCHAR},
      </if>
      <if test="tableColumnKey != null" >
        TABLE_COLUMN_KEY = #{tableColumnKey,jdbcType=VARCHAR},
      </if>
      <if test="tableLabel != null" >
        TABLE_LABEL = #{tableLabel,jdbcType=VARCHAR},
      </if>
      <if test="tableProp != null" >
        TABLE_PROP = #{tableProp,jdbcType=VARCHAR},
      </if>
      <if test="tableWidth != null" >
        TABLE_WIDTH = #{tableWidth,jdbcType=VARCHAR},
      </if>
      <if test="tableMinWidth != null" >
        TABLE_MIN_WIDTH = #{tableMinWidth,jdbcType=VARCHAR},
      </if>
      <if test="tableFixed != null" >
        TABLE_FIXED = #{tableFixed,jdbcType=VARCHAR},
      </if>
      <if test="tableRenderHeader != null" >
        TABLE_RENDER_HEADER = #{tableRenderHeader,jdbcType=VARCHAR},
      </if>
      <if test="tableSortable != null" >
        TABLE_SORTABLE = #{tableSortable,jdbcType=VARCHAR},
      </if>
      <if test="tableSortMethod != null" >
        TABLE_SORT_METHOD = #{tableSortMethod,jdbcType=VARCHAR},
      </if>
      <if test="tableSortBy != null" >
        TABLE_SORT_BY = #{tableSortBy,jdbcType=VARCHAR},
      </if>
      <if test="tableSortOrders != null" >
        TABLE_SORT_ORDERS = #{tableSortOrders,jdbcType=VARCHAR},
      </if>
      <if test="tableResizable != null" >
        TABLE_RESIZABLE = #{tableResizable,jdbcType=VARCHAR},
      </if>
      <if test="tableFormatter != null" >
        TABLE_FORMATTER = #{tableFormatter,jdbcType=VARCHAR},
      </if>
      <if test="tableShowOverflowTooltip != null" >
        TABLE_SHOW_OVERFLOW_TOOLTIP = #{tableShowOverflowTooltip,jdbcType=VARCHAR},
      </if>
      <if test="tableAlign != null" >
        TABLE_ALIGN = #{tableAlign,jdbcType=VARCHAR},
      </if>
      <if test="tableHeaderAlign != null" >
        TABLE_HEADER_ALIGN = #{tableHeaderAlign,jdbcType=VARCHAR},
      </if>
      <if test="tableClassName != null" >
        TABLE_CLASS_NAME = #{tableClassName,jdbcType=VARCHAR},
      </if>
      <if test="tableLabelClassName != null" >
        TABLE_LABEL_CLASS_NAME = #{tableLabelClassName,jdbcType=VARCHAR},
      </if>
      <if test="tableSelectable != null" >
        TABLE_SELECTABLE = #{tableSelectable,jdbcType=VARCHAR},
      </if>
      <if test="tableReserveSelection != null" >
        TABLE_RESERVE_SELECTION = #{tableReserveSelection,jdbcType=VARCHAR},
      </if>
      <if test="tableFilters != null" >
        TABLE_FILTERS = #{tableFilters,jdbcType=VARCHAR},
      </if>
      <if test="tableFilterPlacement != null" >
        TABLE_FILTER_PLACEMENT = #{tableFilterPlacement,jdbcType=VARCHAR},
      </if>
      <if test="tableFilterMultiple != null" >
        TABLE_FILTER_MULTIPLE = #{tableFilterMultiple,jdbcType=VARCHAR},
      </if>
      <if test="tableFilterMethod != null" >
        TABLE_FILTER_METHOD = #{tableFilterMethod,jdbcType=VARCHAR},
      </if>
      <if test="tableFilteredValue != null" >
        TABLE_FILTERED_VALUE = #{tableFilteredValue,jdbcType=VARCHAR},
      </if>
      <if test="addId != null" >
        ADD_ID = #{addId,jdbcType=VARCHAR},
      </if>
      <if test="addTime != null" >
        ADD_TIME = #{addTime,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyId != null" >
        MODIFY_ID = #{modifyId,jdbcType=VARCHAR},
      </if>
      <if test="modifyTime != null" >
        MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="cancelId != null" >
        CANCEL_ID = #{cancelId,jdbcType=VARCHAR},
      </if>
      <if test="cancelTime != null" >
        CANCEL_TIME = #{cancelTime,jdbcType=TIMESTAMP},
      </if>
      <if test="cancelFlag != null" >
        CANCEL_FLAG = #{cancelFlag,jdbcType=VARCHAR},
      </if>
      <if test="attr1 != null" >
        ATTR1 = #{attr1,jdbcType=VARCHAR},
      </if>
      <if test="attr2 != null" >
        ATTR2 = #{attr2,jdbcType=VARCHAR},
      </if>
      <if test="attr3 != null" >
        ATTR3 = #{attr3,jdbcType=VARCHAR},
      </if>
      <if test="attr4 != null" >
        ATTR4 = #{attr4,jdbcType=DECIMAL},
      </if>
      <if test="attr5 != null" >
        ATTR5 = #{attr5,jdbcType=DECIMAL},
      </if>
      <if test="attr6 != null" >
        ATTR6 = #{attr6,jdbcType=DECIMAL},
      </if>
      <if test="sort != null" >
        SORT = #{sort,jdbcType=DECIMAL},
      </if>
      <if test="isForm != null" >
        IS_FORM = #{isForm,jdbcType=VARCHAR},
      </if>
      <if test="formType != null" >
        FORM_TYPE = #{formType,jdbcType=VARCHAR},
      </if>
      <if test="formSort != null" >
        FORM_SORT = #{formSort,jdbcType=VARCHAR},
      </if>
      <if test="isQuery != null" >
        IS_QUERY = #{isQuery,jdbcType=VARCHAR},
      </if>
      <if test="queryType != null" >
        QUERY_TYPE = #{queryType,jdbcType=VARCHAR},
      </if>
      <if test="querySort != null" >
        QUERY_SORT = #{querySort,jdbcType=VARCHAR},
      </if>
    </set>
    where ID = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.th.demo.model.develop.DevTableProperty" >
    update dev_table_property
    set TABLE_NAME = #{tableName,jdbcType=VARCHAR},
      TABLE_FIELD = #{tableField,jdbcType=VARCHAR},
      TABLE_TYPE = #{tableType,jdbcType=VARCHAR},
      TABLE_INDEX = #{tableIndex,jdbcType=VARCHAR},
      TABLE_COLUMN_KEY = #{tableColumnKey,jdbcType=VARCHAR},
      TABLE_LABEL = #{tableLabel,jdbcType=VARCHAR},
      TABLE_PROP = #{tableProp,jdbcType=VARCHAR},
      TABLE_WIDTH = #{tableWidth,jdbcType=VARCHAR},
      TABLE_MIN_WIDTH = #{tableMinWidth,jdbcType=VARCHAR},
      TABLE_FIXED = #{tableFixed,jdbcType=VARCHAR},
      TABLE_RENDER_HEADER = #{tableRenderHeader,jdbcType=VARCHAR},
      TABLE_SORTABLE = #{tableSortable,jdbcType=VARCHAR},
      TABLE_SORT_METHOD = #{tableSortMethod,jdbcType=VARCHAR},
      TABLE_SORT_BY = #{tableSortBy,jdbcType=VARCHAR},
      TABLE_SORT_ORDERS = #{tableSortOrders,jdbcType=VARCHAR},
      TABLE_RESIZABLE = #{tableResizable,jdbcType=VARCHAR},
      TABLE_FORMATTER = #{tableFormatter,jdbcType=VARCHAR},
      TABLE_SHOW_OVERFLOW_TOOLTIP = #{tableShowOverflowTooltip,jdbcType=VARCHAR},
      TABLE_ALIGN = #{tableAlign,jdbcType=VARCHAR},
      TABLE_HEADER_ALIGN = #{tableHeaderAlign,jdbcType=VARCHAR},
      TABLE_CLASS_NAME = #{tableClassName,jdbcType=VARCHAR},
      TABLE_LABEL_CLASS_NAME = #{tableLabelClassName,jdbcType=VARCHAR},
      TABLE_SELECTABLE = #{tableSelectable,jdbcType=VARCHAR},
      TABLE_RESERVE_SELECTION = #{tableReserveSelection,jdbcType=VARCHAR},
      TABLE_FILTERS = #{tableFilters,jdbcType=VARCHAR},
      TABLE_FILTER_PLACEMENT = #{tableFilterPlacement,jdbcType=VARCHAR},
      TABLE_FILTER_MULTIPLE = #{tableFilterMultiple,jdbcType=VARCHAR},
      TABLE_FILTER_METHOD = #{tableFilterMethod,jdbcType=VARCHAR},
      TABLE_FILTERED_VALUE = #{tableFilteredValue,jdbcType=VARCHAR},
      ADD_ID = #{addId,jdbcType=VARCHAR},
      ADD_TIME = #{addTime,jdbcType=TIMESTAMP},
      MODIFY_ID = #{modifyId,jdbcType=VARCHAR},
      MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP},
      CANCEL_ID = #{cancelId,jdbcType=VARCHAR},
      CANCEL_TIME = #{cancelTime,jdbcType=TIMESTAMP},
      CANCEL_FLAG = #{cancelFlag,jdbcType=VARCHAR},
      ATTR1 = #{attr1,jdbcType=VARCHAR},
      ATTR2 = #{attr2,jdbcType=VARCHAR},
      ATTR3 = #{attr3,jdbcType=VARCHAR},
      ATTR4 = #{attr4,jdbcType=DECIMAL},
      ATTR5 = #{attr5,jdbcType=DECIMAL},
      ATTR6 = #{attr6,jdbcType=DECIMAL},
      SORT = #{sort,jdbcType=DECIMAL},
      IS_FORM = #{isForm,jdbcType=VARCHAR},
      FORM_TYPE = #{formType,jdbcType=VARCHAR},
      FORM_SORT = #{formSort,jdbcType=VARCHAR},
      IS_QUERY = #{isQuery,jdbcType=VARCHAR},
      QUERY_TYPE = #{queryType,jdbcType=VARCHAR},
      QUERY_SORT = #{querySort,jdbcType=VARCHAR}
    where ID = #{id,jdbcType=VARCHAR}
  </update>

  <select id="selectByBussinessName" resultMap="BaseResultMap"  >
    select   *   from dev_table_property
    where TABLE_NAME = #{param1,jdbcType=VARCHAR}
    order by sort asc
  </select>

  <select id="select" resultMap="BaseResultMap">
    select * from dev_table_property where CANCEL_FLAG != '9'
    and TABLE_LABEL like  '%'||#{param1,jdbcType=VARCHAR}||'%'
  </select>



  <select id="selectForGenerateVueForm" resultMap="BaseResultMap"  >
    select   *   from dev_table_property
    where TABLE_NAME = #{param1,jdbcType=VARCHAR} and ifnull(is_form,'0') = '0'
    order by to_number(form_sort) asc
  </select>




  <select id="selectByTableName" resultMap="BaseResultMap"  >
    select   *   from dev_table_property
    where TABLE_NAME = #{param1,jdbcType=VARCHAR} and ifnull(is_form,'0') = '0'
    order by to_number(form_sort) asc
  </select>



  <delete id="deleteByTableName" parameterType="java.lang.String" >
    delete from dev_table_property
    where TABLE_NAME = #{param1,jdbcType=VARCHAR}
  </delete>
</mapper>