فهرست منبع

git-svn-id: https://192.168.57.71/svn/jsgkj@578 931142cf-59ea-a443-aa0e-51397b428577

xt_yuanxd 9 سال پیش
والد
کامیت
2f4a995219

+ 44 - 0
gkaqv2/trunk/modules/frame/src/main/resources/com/xt/js/gkaq/frame/mappers/GroupModelMapper.xml

@@ -0,0 +1,44 @@
+<?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.GroupModelMapper" >
+  <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.GroupModel" >
+    <id column="ID" property="id" jdbcType="VARCHAR" />
+    <result column="ORG" property="org" jdbcType="VARCHAR" />
+    <result column="ROLE" property="role" jdbcType="VARCHAR" />
+    <result column="REMARK" property="remark" jdbcType="VARCHAR" />
+    <result column="CREATE_TIME" property="createTime" jdbcType="OTHER" />
+    <result column="UPDATE_TIME" property="updateTime" jdbcType="OTHER" />
+    <result column="STATE" property="state" jdbcType="CHAR" />
+  </resultMap>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
+    delete from AQ_BASIC_FRAME_GROUP
+    where ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.GroupModel" >
+    insert into AQ_BASIC_FRAME_GROUP (ID, ORG, ROLE, 
+      REMARK, CREATE_TIME, UPDATE_TIME, 
+      STATE)
+    values (#{id,jdbcType=VARCHAR}, #{org,jdbcType=VARCHAR}, #{role,jdbcType=VARCHAR}, 
+      #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=OTHER}, #{updateTime,jdbcType=OTHER}, 
+      #{state,jdbcType=CHAR})
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.GroupModel" >
+    update AQ_BASIC_FRAME_GROUP
+    set ORG = #{org,jdbcType=VARCHAR},
+      ROLE = #{role,jdbcType=VARCHAR},
+      REMARK = #{remark,jdbcType=VARCHAR},
+      CREATE_TIME = #{createTime,jdbcType=OTHER},
+      UPDATE_TIME = #{updateTime,jdbcType=OTHER},
+      STATE = #{state,jdbcType=CHAR}
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
+    select ID, ORG, ROLE, REMARK, CREATE_TIME, UPDATE_TIME, STATE
+    from AQ_BASIC_FRAME_GROUP
+    where ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <select id="selectAll" resultMap="BaseResultMap" >
+    select ID, ORG, ROLE, REMARK, CREATE_TIME, UPDATE_TIME, STATE
+    from AQ_BASIC_FRAME_GROUP
+  </select>
+</mapper>

+ 44 - 0
gkaqv2/trunk/modules/frame/src/main/resources/com/xt/js/gkaq/frame/mappers/OrgModelMapper.xml

@@ -0,0 +1,44 @@
+<?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.OrgModelMapper" >
+  <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.OrgModel" >
+    <id column="ID" property="id" jdbcType="VARCHAR" />
+    <result column="NAME" property="name" jdbcType="OTHER" />
+    <result column="ORG_TYPE" property="orgType" jdbcType="VARCHAR" />
+    <result column="REMARK" property="remark" jdbcType="OTHER" />
+    <result column="PID" property="pid" jdbcType="VARCHAR" />
+    <result column="SORTNO" property="sortno" jdbcType="DECIMAL" />
+    <result column="CODE" property="code" jdbcType="VARCHAR" />
+  </resultMap>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
+    delete from AQ_BASIC_FRAME_ORG
+    where ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.OrgModel" >
+    insert into AQ_BASIC_FRAME_ORG (ID, NAME, ORG_TYPE, 
+      REMARK, PID, SORTNO, 
+      CODE)
+    values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=OTHER}, #{orgType,jdbcType=VARCHAR}, 
+      #{remark,jdbcType=OTHER}, #{pid,jdbcType=VARCHAR}, #{sortno,jdbcType=DECIMAL}, 
+      #{code,jdbcType=VARCHAR})
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.OrgModel" >
+    update AQ_BASIC_FRAME_ORG
+    set NAME = #{name,jdbcType=OTHER},
+      ORG_TYPE = #{orgType,jdbcType=VARCHAR},
+      REMARK = #{remark,jdbcType=OTHER},
+      PID = #{pid,jdbcType=VARCHAR},
+      SORTNO = #{sortno,jdbcType=DECIMAL},
+      CODE = #{code,jdbcType=VARCHAR}
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
+    select ID, NAME, ORG_TYPE, REMARK, PID, SORTNO, CODE
+    from AQ_BASIC_FRAME_ORG
+    where ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <select id="selectAll" resultMap="BaseResultMap" >
+    select ID, NAME, ORG_TYPE, REMARK, PID, SORTNO, CODE
+    from AQ_BASIC_FRAME_ORG
+  </select>
+</mapper>

+ 52 - 0
gkaqv2/trunk/modules/frame/src/main/resources/com/xt/js/gkaq/frame/mappers/RoleModelMapper.xml

@@ -0,0 +1,52 @@
+<?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.RoleModelMapper" >
+  <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.RoleModel" >
+    <id column="ID" property="id" jdbcType="VARCHAR" />
+    <result column="NAME" property="name" jdbcType="VARCHAR" />
+    <result column="CODE" property="code" jdbcType="VARCHAR" />
+    <result column="REMARK" property="remark" jdbcType="VARCHAR" />
+    <result column="STATUS" property="status" jdbcType="CHAR" />
+    <result column="PHONE" property="phone" jdbcType="VARCHAR" />
+    <result column="CREATE_TIME" property="createTime" jdbcType="OTHER" />
+    <result column="UPDATE_TIME" property="updateTime" jdbcType="OTHER" />
+    <result column="STATE" property="state" jdbcType="CHAR" />
+    <result column="SORTNO" property="sortno" jdbcType="DECIMAL" />
+  </resultMap>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
+    delete from AQ_BASIC_FRAME_ROLE
+    where ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.RoleModel" >
+    insert into AQ_BASIC_FRAME_ROLE (ID, NAME, CODE, 
+      REMARK, STATUS, PHONE, 
+      CREATE_TIME, UPDATE_TIME, STATE, 
+      SORTNO)
+    values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, 
+      #{remark,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, #{phone,jdbcType=VARCHAR}, 
+      #{createTime,jdbcType=OTHER}, #{updateTime,jdbcType=OTHER}, #{state,jdbcType=CHAR}, 
+      #{sortno,jdbcType=DECIMAL})
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.RoleModel" >
+    update AQ_BASIC_FRAME_ROLE
+    set NAME = #{name,jdbcType=VARCHAR},
+      CODE = #{code,jdbcType=VARCHAR},
+      REMARK = #{remark,jdbcType=VARCHAR},
+      STATUS = #{status,jdbcType=CHAR},
+      PHONE = #{phone,jdbcType=VARCHAR},
+      CREATE_TIME = #{createTime,jdbcType=OTHER},
+      UPDATE_TIME = #{updateTime,jdbcType=OTHER},
+      STATE = #{state,jdbcType=CHAR},
+      SORTNO = #{sortno,jdbcType=DECIMAL}
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
+    select ID, NAME, CODE, REMARK, STATUS, PHONE, CREATE_TIME, UPDATE_TIME, STATE, SORTNO
+    from AQ_BASIC_FRAME_ROLE
+    where ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <select id="selectAll" resultMap="BaseResultMap" >
+    select ID, NAME, CODE, REMARK, STATUS, PHONE, CREATE_TIME, UPDATE_TIME, STATE, SORTNO
+    from AQ_BASIC_FRAME_ROLE
+  </select>
+</mapper>

+ 42 - 0
gkaqv2/trunk/modules/frame/src/main/resources/com/xt/js/gkaq/frame/mappers/UserGroupModelMapper.xml

@@ -0,0 +1,42 @@
+<?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.UserGroupModelMapper" >
+  <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.UserGroupModel" >
+    <id column="ID" property="id" jdbcType="OTHER" />
+    <result column="GROUP_ID" property="groupId" jdbcType="OTHER" />
+    <result column="USER_ID" property="userId" jdbcType="OTHER" />
+    <result column="CREATE_TIME" property="createTime" jdbcType="OTHER" />
+    <result column="UPDATE_TIME" property="updateTime" jdbcType="OTHER" />
+    <result column="STATE" property="state" jdbcType="CHAR" />
+  </resultMap>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Object" >
+    delete from AQ_BASIC_FRAME_USER_GROUP
+    where ID = #{id,jdbcType=OTHER}
+  </delete>
+  <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.UserGroupModel" >
+    insert into AQ_BASIC_FRAME_USER_GROUP (ID, GROUP_ID, USER_ID, 
+      CREATE_TIME, UPDATE_TIME, STATE
+      )
+    values (#{id,jdbcType=OTHER}, #{groupId,jdbcType=OTHER}, #{userId,jdbcType=OTHER}, 
+      #{createTime,jdbcType=OTHER}, #{updateTime,jdbcType=OTHER}, #{state,jdbcType=CHAR}
+      )
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.UserGroupModel" >
+    update AQ_BASIC_FRAME_USER_GROUP
+    set GROUP_ID = #{groupId,jdbcType=OTHER},
+      USER_ID = #{userId,jdbcType=OTHER},
+      CREATE_TIME = #{createTime,jdbcType=OTHER},
+      UPDATE_TIME = #{updateTime,jdbcType=OTHER},
+      STATE = #{state,jdbcType=CHAR}
+    where ID = #{id,jdbcType=OTHER}
+  </update>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Object" >
+    select ID, GROUP_ID, USER_ID, CREATE_TIME, UPDATE_TIME, STATE
+    from AQ_BASIC_FRAME_USER_GROUP
+    where ID = #{id,jdbcType=OTHER}
+  </select>
+  <select id="selectAll" resultMap="BaseResultMap" >
+    select ID, GROUP_ID, USER_ID, CREATE_TIME, UPDATE_TIME, STATE
+    from AQ_BASIC_FRAME_USER_GROUP
+  </select>
+</mapper>

+ 5 - 1
gkaqv2/trunk/modules/frame/src/main/resources/generatorConfig.xml

@@ -22,6 +22,10 @@
 			targetPackage="com.xt.js.gkaq.frame.mappers" targetProject="src/main/java">
 			<property name="enableSubPackages" value="true" />
 		</javaClientGenerator>
-		<table tableName="AQ_BASIC_FRAME_USER" domainObjectName="UserModel"></table>
+		<!-- <table tableName="AQ_BASIC_FRAME_USER" domainObjectName="UserModel"></table> -->
+		<!-- <table tableName="AQ_BASIC_FRAME_ROLE" domainObjectName="RoleModel"></table> -->
+		 <!-- <table tableName="AQ_BASIC_FRAME_ORG" domainObjectName="OrgModel"></table> -->
+		 <!-- <table tableName="AQ_BASIC_FRAME_GROUP" domainObjectName="GroupModel"></table> -->
+		 <!-- <table tableName="AQ_BASIC_FRAME_USER_GROUP" domainObjectName="UserGroupModel"></table> -->
 	</context>
 </generatorConfiguration>