|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.zkqy.system.mapper.DragTableBtnMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="com.zkqy.system.entity.DragTableBtn" id="DragTableBtnResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="btnParentId" column="btn_parent_id" />
|
|
@@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="btnType" column="btn_type" />
|
|
|
<result property="btnIcon" column="btn_icon"/>
|
|
|
<result property="btnFormKey" column="btn_form_key" />
|
|
|
+ <result property="btnFormType" column="btn_form_type" />
|
|
|
<result property="btnProcessKey" column="btn_process_key" />
|
|
|
<result property="btnTableKey" column="btn_table_key" />
|
|
|
<result property="btnScriptKey" column="btn_script_key" />
|
|
@@ -32,36 +33,42 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDragTableBtnVo">
|
|
|
- select id, btn_parent_id,ancestors_id, btn_key,btn_group_name, btn_name, btn_type,btn_icon, btn_form_key, btn_process_key, btn_table_key, btn_script_key,btn_table_form_group_key,btn_show_condition, btn_params, btn_has_permi, btn_sort, del_flag, create_by, create_by_id, create_time, update_by, update_by_id, update_time, remark from drag_table_btn
|
|
|
+ select id, btn_parent_id,ancestors_id, btn_key,btn_group_name, btn_name, btn_type,btn_icon, btn_form_key, btn_form_type,btn_process_key, btn_table_key, btn_script_key,btn_table_form_group_key,btn_show_condition, btn_params, btn_has_permi, btn_sort, del_flag, create_by, create_by_id, create_time, update_by, update_by_id, update_time, remark from drag_table_btn
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectDragTableBtnList" parameterType="com.zkqy.system.entity.DragTableBtn" resultMap="DragTableBtnResult">
|
|
|
<include refid="selectDragTableBtnVo"/>
|
|
|
where del_flag = '0'
|
|
|
- <if test="btnParentId != null "> and btn_parent_id = #{btnParentId}</if>
|
|
|
- <if test="btnKey != null and btnKey != ''"> and btn_key = #{btnKey}</if>
|
|
|
- <if test="btnGroupName != null and btnGroupName != ''"> and btn_group_name like concat('%', #{btnGroupName}, '%')</if>
|
|
|
- <if test="btnName != null and btnName != ''"> and btn_name like concat('%', #{btnName}, '%')</if>
|
|
|
- <if test="btnType != null and btnType != ''"> and btn_type = #{btnType}</if>
|
|
|
- <if test="btnFormKey != null and btnFormKey != ''"> and btn_form_key = #{btnFormKey}</if>
|
|
|
- <if test="btnProcessKey != null and btnProcessKey != ''"> and btn_process_key = #{btnProcessKey}</if>
|
|
|
- <if test="btnTableFormGroupKey !=null and btnTableFormGroupKey!=''">and btn_table_form_group_key=#{btnTableFormGroupKey}</if>
|
|
|
- <if test="btnTableKey != null and btnTableKey != ''"> and btn_table_key = #{btnTableKey}</if>
|
|
|
- <if test="btnScriptKey != null and btnScriptKey != ''"> and btn_script_key = #{btnScriptKey}</if>
|
|
|
- <if test="btnShowCondition != null and btnShowCondition != ''"> and btn_show_condition = #{btnShowCondition}</if>
|
|
|
- <if test="btnParams != null and btnParams != ''"> and btn_params = #{btnParams}</if>
|
|
|
- <if test="btnHasPermi != null and btnHasPermi != ''"> and btn_has_permi = #{btnHasPermi}</if>
|
|
|
- <if test="btnSort != null "> and btn_sort = #{btnSort}</if>
|
|
|
- <if test="createById != null "> and create_by_id = #{createById}</if>
|
|
|
- <if test="updateById != null "> and update_by_id = #{updateById}</if>
|
|
|
- order by btn_sort asc
|
|
|
+ <if test="btnParentId != null ">and btn_parent_id = #{btnParentId}</if>
|
|
|
+ <if test="btnKey != null and btnKey != ''">and btn_key = #{btnKey}</if>
|
|
|
+ <if test="btnGroupName != null and btnGroupName != ''">and btn_group_name like concat('%', #{btnGroupName},
|
|
|
+ '%')
|
|
|
+ </if>
|
|
|
+ <if test="btnName != null and btnName != ''">and btn_name like concat('%', #{btnName}, '%')</if>
|
|
|
+ <if test="btnType != null and btnType != ''">and btn_type = #{btnType}</if>
|
|
|
+ <if test="btnFormKey != null and btnFormKey != ''">and btn_form_key = #{btnFormKey}</if>
|
|
|
+ <if test="btnFormType != null and btnFormType != ''">and btn_form_type = #{btnFormType}</if>
|
|
|
+ <if test="btnProcessKey != null and btnProcessKey != ''">and btn_process_key = #{btnProcessKey}</if>
|
|
|
+ <if test="btnTableFormGroupKey !=null and btnTableFormGroupKey!=''">and
|
|
|
+ btn_table_form_group_key=#{btnTableFormGroupKey}
|
|
|
+ </if>
|
|
|
+ <if test="btnTableKey != null and btnTableKey != ''">and btn_table_key = #{btnTableKey}</if>
|
|
|
+ <if test="btnScriptKey != null and btnScriptKey != ''">and btn_script_key = #{btnScriptKey}</if>
|
|
|
+ <if test="btnShowCondition != null and btnShowCondition != ''">and btn_show_condition = #{btnShowCondition}
|
|
|
+ </if>
|
|
|
+ <if test="btnParams != null and btnParams != ''">and btn_params = #{btnParams}</if>
|
|
|
+ <if test="btnHasPermi != null and btnHasPermi != ''">and btn_has_permi = #{btnHasPermi}</if>
|
|
|
+ <if test="btnSort != null ">and btn_sort = #{btnSort}</if>
|
|
|
+ <if test="createById != null ">and create_by_id = #{createById}</if>
|
|
|
+ <if test="updateById != null ">and update_by_id = #{updateById}</if>
|
|
|
+ order by btn_sort asc
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectDragTableBtnById" parameterType="Long" resultMap="DragTableBtnResult">
|
|
|
<include refid="selectDragTableBtnVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertDragTableBtn" parameterType="com.zkqy.system.entity.DragTableBtn">
|
|
|
insert into drag_table_btn
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -73,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="btnType != null">btn_type,</if>
|
|
|
<if test="btnIcon != null">btn_icon,</if>
|
|
|
<if test="btnFormKey != null">btn_form_key,</if>
|
|
|
+ <if test="btnFormType != null">btn_form_type,</if>
|
|
|
<if test="btnProcessKey != null">btn_process_key,</if>
|
|
|
<if test="btnTableKey != null">btn_table_key,</if>
|
|
|
<if test="btnScriptKey != null">btn_script_key,</if>
|
|
@@ -95,6 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="btnType != null">#{btnType},</if>
|
|
|
<if test="btnIcon != null">#{btnIcon},</if>
|
|
|
<if test="btnFormKey != null">#{btnFormKey},</if>
|
|
|
+ <if test="btnFormType != null">#{btnFormType},</if>
|
|
|
<if test="btnProcessKey != null">#{btnProcessKey},</if>
|
|
|
<if test="btnTableKey != null">#{btnTableKey},</if>
|
|
|
<if test="btnScriptKey != null">#{btnScriptKey},</if>
|
|
@@ -121,6 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="btnType != null">btn_type = #{btnType},</if>
|
|
|
<if test="btnIcon != null">btn_icon = #{btnIcon},</if>
|
|
|
<if test="btnFormKey != null">btn_form_key = #{btnFormKey},</if>
|
|
|
+ <if test="btnFormType != null">btn_form_type = #{btnFormType},</if>
|
|
|
<if test="btnProcessKey != null">btn_process_key = #{btnProcessKey},</if>
|
|
|
<if test="btnTableKey != null">btn_table_key = #{btnTableKey},</if>
|
|
|
<if test="btnScriptKey != null">btn_script_key = #{btnScriptKey},</if>
|