|
@@ -0,0 +1,77 @@
|
|
|
+<?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.xt.js.gkaq.frame.mappers.MenuModelMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.MenuModel" >
|
|
|
+ <id column="ID" property="id" jdbcType="VARCHAR" />
|
|
|
+ <result column="PID" property="pid" jdbcType="VARCHAR" />
|
|
|
+ <result column="NAME" property="name" jdbcType="VARCHAR" />
|
|
|
+ <result column="CODE" property="code" jdbcType="VARCHAR" />
|
|
|
+ <result column="ICON" property="icon" jdbcType="VARCHAR" />
|
|
|
+ <result column="URL" property="url" jdbcType="VARCHAR" />
|
|
|
+ <result column="LEAF" property="leaf" jdbcType="CHAR" />
|
|
|
+ <result column="OUT_LINK" property="outLink" jdbcType="CHAR" />
|
|
|
+ <result column="REMARK" property="remark" jdbcType="VARCHAR" />
|
|
|
+ <result column="SORTNO" property="sortno" jdbcType="DECIMAL" />
|
|
|
+ <result column="CREATE_TIME" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="UPDATE_TIME" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="STATE" property="state" jdbcType="CHAR" />
|
|
|
+ <result column="CREATE_USER" property="createUser" jdbcType="VARCHAR" />
|
|
|
+ <result column="UPDATE_USER" property="updateUser" jdbcType="VARCHAR" />
|
|
|
+ </resultMap>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
+ delete from AQ_BASIC_FRAME_MENU
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.MenuModel" >
|
|
|
+ insert into AQ_BASIC_FRAME_MENU (ID, PID, NAME,
|
|
|
+ CODE, ICON, URL, LEAF,
|
|
|
+ OUT_LINK, REMARK, SORTNO,
|
|
|
+ CREATE_TIME, UPDATE_TIME, STATE,
|
|
|
+ CREATE_USER, UPDATE_USER)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
|
|
+ #{code,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{leaf,jdbcType=CHAR},
|
|
|
+ #{outLink,jdbcType=CHAR}, #{remark,jdbcType=VARCHAR}, #{sortno,jdbcType=DECIMAL},
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{state,jdbcType=CHAR},
|
|
|
+ #{createUser,jdbcType=VARCHAR}, #{updateUser,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.MenuModel" >
|
|
|
+ update AQ_BASIC_FRAME_MENU
|
|
|
+ set PID = #{pid,jdbcType=VARCHAR},
|
|
|
+ NAME = #{name,jdbcType=VARCHAR},
|
|
|
+ CODE = #{code,jdbcType=VARCHAR},
|
|
|
+ ICON = #{icon,jdbcType=VARCHAR},
|
|
|
+ URL = #{url,jdbcType=VARCHAR},
|
|
|
+ LEAF = #{leaf,jdbcType=CHAR},
|
|
|
+ OUT_LINK = #{outLink,jdbcType=CHAR},
|
|
|
+ REMARK = #{remark,jdbcType=VARCHAR},
|
|
|
+ SORTNO = #{sortno,jdbcType=DECIMAL},
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ STATE = #{state,jdbcType=CHAR},
|
|
|
+ CREATE_USER = #{createUser,jdbcType=VARCHAR},
|
|
|
+ UPDATE_USER = #{updateUser,jdbcType=VARCHAR}
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
+ select ID, PID, NAME, CODE, ICON, URL, LEAF, OUT_LINK, REMARK, SORTNO, CREATE_TIME,
|
|
|
+ UPDATE_TIME, STATE, CREATE_USER, UPDATE_USER
|
|
|
+ from AQ_BASIC_FRAME_MENU
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <select id="selectAll" resultMap="BaseResultMap" >
|
|
|
+ select ID, PID, NAME, CODE, ICON, URL, LEAF, OUT_LINK, REMARK, SORTNO, CREATE_TIME,
|
|
|
+ UPDATE_TIME, STATE, CREATE_USER, UPDATE_USER
|
|
|
+ from AQ_BASIC_FRAME_MENU
|
|
|
+ </select>
|
|
|
+ <select id="selectInitMenu" resultMap="BaseResultMap" >
|
|
|
+ select ID, PID, NAME, CODE, LEAF, SORTNO
|
|
|
+ from AQ_BASIC_FRAME_MENU
|
|
|
+ union all
|
|
|
+ select ID, MENU PID, NAME, CODE, 'B' LEAF, SORTNO
|
|
|
+ from AQ_BASIC_FRAME_BUTTON order by SORTNO
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPid" parameterType="java.lang.String" >
|
|
|
+ delete from AQ_BASIC_FRAME_MENU
|
|
|
+ where PID = #{pid,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+</mapper>
|