فهرست منبع

删除无用配置

周浩 9 سال پیش
والد
کامیت
0c8f1920c2
20فایلهای تغییر یافته به همراه0 افزوده شده و 1693 حذف شده
  1. 0 95
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/basic/BasicMapper.xml
  2. 0 72
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/config/ConfigMapper.xml
  3. 0 91
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/form/FormMapper.xml
  4. 0 89
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/module/ModuleMapper.xml
  5. 0 85
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/resource/ResourcesMapper.xml
  6. 0 70
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/role/RoleMapper.xml
  7. 0 80
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/role/RoleModuleMapper.xml
  8. 0 74
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/role/UserRoleMapper.xml
  9. 0 81
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/script/DynamicScriptMapper.xml
  10. 0 90
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/user/UserMapper.xml
  11. 0 133
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/basic/BasicMapper.xml
  12. 0 73
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/config/ConfigMapper.xml
  13. 0 91
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/form/FormMapper.xml
  14. 0 89
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/module/ModuleMapper.xml
  15. 0 85
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/resource/ResourcesMapper.xml
  16. 0 70
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/role/RoleMapper.xml
  17. 0 80
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/role/RoleModuleMapper.xml
  18. 0 74
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/role/UserRoleMapper.xml
  19. 0 81
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/script/DynamicScriptMapper.xml
  20. 0 90
      hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/user/UserMapper.xml

+ 0 - 95
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/basic/BasicMapper.xml

@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="BasicMapper">
-    <!--通用查询条件-->
-    <sql id="selectCondition">
-            <!--动态生成查询条件-->
-            <foreach item="item" index="index" collection="$fields">
-                <if test="#this['term.'+item]!=null">
-                    AND ${$tableName}.${item}=#{term.${item}}
-                </if>
-                <if test="#this['term.'+item+'$NOT']!=null">
-                    AND ${$tableName}.${item}!=#{term.${item+'$NOT'}}
-                </if>
-                <if test="#this['term.'+item+'$LIKE']!=null">
-                    AND INSTR(${$tableName}.${item},#{term.${item+'$LIKE'}})>0
-                </if>
-                <if test="#this['term.'+item+'$NOTLIKE']!=null">
-                    AND INSTR(${$tableName}.${item},#{term.${item+'$NOTLIKE'}})&lt;=0
-                </if>
-                <if test="#this['term.'+item+'$START']!=null">
-                    AND ${$tableName}.${item} LIKE CONCAT(#{term.${item+'$START'}},'%')
-                </if>
-                <if test="#this['term.'+item+'$END']!=null">
-                    AND ${$tableName}.${item} LIKE CONCAT('%',#{term.${item+'$END'})
-                </if>
-                <if test="#this['term.'+item+'$IN']!=null">
-                    AND ${$tableName}.${item} IN
-                    <foreach item="it" index="i" collection="#this['term.'+item+'$IN']" open="(" separator="," close=")">
-                        #{it}
-                    </foreach>
-                </if>
-                <if test="#this['term.'+item+'$NOTIN']!=null">
-                    AND ${$tableName}.${item} NOT IN
-                    <foreach item="it" index="i" collection="#this['term.'+item+'$NOTIN']" open="(" separator="," close=")">
-                        #{it}
-                    </foreach>
-                </if>
-                <if test="#this['term.'+item+'$ISNULL']!=null">
-                    AND ${$tableName}.${item} IS NULL
-                </if>
-                <if test="#this['term.'+item+'$NOTNULL']!=null">
-                    AND ${$tableName}.${item} IS NOT NULL
-                </if>
-                <if test="#this['term.'+item+'$GT']!=null">
-                    AND ${$tableName}.${item} &gt;=#{term.${item+'$GT'}}
-                </if>
-                <if test="#this['term.'+item+'$LT']!=null">
-                    AND ${$tableName}.${item} &lt;=#{term.${item+'$LT'}}
-                </if>
-            </foreach>
-        <!--动态生成查询条件结束-->
-    </sql>
-    <!--生成查询字段-->
-    <sql id="selectField">
-            <choose>
-                <!--指定查询的字段 -->
-                <when test="#this['includes']!=null and #this['includes'].size()>0">
-                    <foreach item="item" index="index" collection="#this['includes']" open="" separator="," close="">
-                        <if test="item in $fields">
-                            ${$tableName}.${item} as `${item}`
-                        </if>
-                    </foreach>
-                </when>
-                <!--指定不查询的字段-->
-                <when test="(#this['includes']==null or #this['includes'].size()==0) and #this['excludes']!=null and #this['excludes'].size()>0">
-                    <foreach item="item" index="index" collection="$fields" open=" " separator="," close="">
-                        <if test="!(item in #this['excludes'])">
-                            ${$tableName}.${item} as `${item}`
-                        </if>
-                    </foreach>
-                </when>
-                <otherwise>*</otherwise>
-            </choose>
-    </sql>
-
-    <!--生成查询sql-->
-    <sql id="selectSql">
-        SELECT
-        <include refid="BasicMapper.selectField"/>
-        FROM ${$tableName}
-        <where>
-            <include refid="BasicMapper.selectCondition"/>
-        </where>
-    </sql>
-
-    <!--生成查询数量sql-->
-    <sql id="totalSql">
-        SELECT count(0) AS total FROM ${$tableName}
-        <where>
-            <include refid="BasicMapper.selectCondition"/>
-        </where>
-    </sql>
-</mapper>

+ 0 - 72
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/config/ConfigMapper.xml

@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.config.ConfigMapper">
-    <resultMap id="ConfigResultMap" type="Config" >
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR" />
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="remark" column="remark" javaType="String" jdbcType="VARCHAR" />
-        <result property="content" column="content" javaType="String" jdbcType="VARCHAR" />
-        <result property="create_date" column="create_date" javaType="java.util.Date" jdbcType="TIMESTAMP" />
-        <result property="update_date" column="update_date" javaType="java.util.Date" jdbcType="TIMESTAMP" />
-    </resultMap>
-    <!--字段信息配置-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','remark':'string','content':'string'
-                    ,'create_date':'date','update_date':'date'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_CONFIG'"/>
-    </sql>
-
-    <insert id="insert" parameterType="Config" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_CONFIG
-        (u_id,remark,content,create_date,update_date)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{create_date,jdbcType=TIMESTAMP},#{update_date,jdbcType=TIMESTAMP})
-    </insert>
-
-    <delete id="delete" parameterType="Config" >
-        DELETE FROM S_CONFIG WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="Config" >
-        UPDATE S_CONFIG
-        <set>
-            <if test="remark != null">
-                remark=#{remark,jdbcType=VARCHAR},
-            </if>
-            <if test="content != null">
-                content=#{content,jdbcType=VARCHAR},
-            </if>
-            <if test="create_date != null">
-                create_date=#{create_date,jdbcType=TIMESTAMP},
-            </if>
-            <if test="update_date != null">
-                update_date=#{update_date,jdbcType=TIMESTAMP},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="ConfigResultMap">
-        SELECT * FROM S_CONFIG WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="ConfigResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 91
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/form/FormMapper.xml

@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.form.FormMapper">
-    <resultMap id="FormResultMap" type="Form">
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR"/>
-        <result property="content" column="content" javaType="String" jdbcType="VARCHAR"/>
-        <result property="table_name" column="table_name" javaType="String" jdbcType="VARCHAR"/>
-        <result property="foreigns" column="foreigns" javaType="String" jdbcType="VARCHAR"/>
-        <result property="remark" column="remark" javaType="String" jdbcType="VARCHAR"/>
-        <result property="auto_alter" column="auto_alter" javaType="boolean" jdbcType="INTEGER"/>
-        <result property="create_date" column="create_date" javaType="java.util.Date" jdbcType="TIMESTAMP"/>
-        <result property="update_date" column="update_date" javaType="java.util.Date" jdbcType="TIMESTAMP"/>
-        <result property="db_name" column="db_name" javaType="String" jdbcType="VARCHAR"/>
-    </resultMap>
-
-    <!--字段信息绑定-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','name':'string','content':'string','table_name':'string'
-                        ,'foreigns':'string','remark':'string','auto_alter':'string','create_date':'string'
-                       ,'update_date':'string','db_name':'string'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_FORM'"/>
-    </sql>
-
-    <insert id="insert" parameterType="Form" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_FORM
-        (u_id,name,content,table_name,foreigns,remark,auto_alter,create_date,update_date,db_name)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{table_name,jdbcType=VARCHAR},#{foreigns,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR},#{auto_alter,jdbcType=INTEGER},#{create_date,jdbcType=TIMESTAMP},#{update_date,jdbcType=TIMESTAMP},#{db_name,jdbcType=VARCHAR})
-    </insert>
-
-    <delete id="delete" parameterType="Form">
-        DELETE FROM S_FORM WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="Form">
-        UPDATE S_FORM
-        <set>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="content != null">
-                content=#{content,jdbcType=VARCHAR},
-            </if>
-            <if test="table_name != null">
-                table_name=#{table_name,jdbcType=VARCHAR},
-            </if>
-            <if test="foreigns != null">
-                foreigns=#{foreigns,jdbcType=VARCHAR},
-            </if>
-            <if test="remark != null">
-                remark=#{remark,jdbcType=VARCHAR},
-            </if>
-            <if test="auto_alter != null">
-                auto_alter=#{auto_alter,jdbcType=INTEGER},
-            </if>
-            <if test="update_date != null">
-                update_date=#{update_date,jdbcType=TIMESTAMP},
-            </if>
-            <if test="db_name != null">
-                db_name=#{db_name,jdbcType=VARCHAR},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="FormResultMap">
-        SELECT * FROM S_FORM WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="FormResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 89
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/module/ModuleMapper.xml

@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.module.ModuleMapper">
-    <resultMap id="ModuleResultMap" type="Module">
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR"/>
-        <result property="uri" column="uri" javaType="String" jdbcType="VARCHAR"/>
-        <result property="icon" column="icon" javaType="String" jdbcType="VARCHAR"/>
-        <result property="p_id" column="p_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="remark" column="remark" javaType="String" jdbcType="VARCHAR"/>
-        <result property="status" column="status" javaType="int" jdbcType="INTEGER"/>
-        <result property="m_option" column="m_option" javaType="String" jdbcType="VARCHAR"/>
-        <result property="sort_index" column="sort_index" javaType="int" jdbcType="INTEGER"/>
-    </resultMap>
-
-    <!--字段信息绑定-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','name':'string','uri':'string','icon':'string','p_id':'string','sort_index':'number','m_option':'string','remark':'string','type':'string','status':'number'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_MODULES'"/>
-    </sql>
-
-    <insert id="insert" parameterType="Module" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_MODULES
-        (u_id,name,uri,icon,p_id,remark,status,m_option,sort_index)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{uri,jdbcType=VARCHAR},#{icon,jdbcType=VARCHAR},#{p_id,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR},#{status,jdbcType=INTEGER},#{m_option,jdbcType=VARCHAR},#{sort_index,jdbcType=INTEGER})
-    </insert>
-
-    <delete id="delete" parameterType="Module">
-        DELETE FROM S_MODULES WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="Module">
-        UPDATE S_MODULES
-        <set>
-            <if test="u_id != null">
-                u_id=#{u_id,jdbcType=VARCHAR},
-            </if>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="uri != null">
-                uri=#{uri,jdbcType=VARCHAR},
-            </if>
-            <if test="icon != null">
-                icon=#{icon,jdbcType=VARCHAR},
-            </if>
-            <if test="p_id != null">
-                p_id=#{p_id,jdbcType=VARCHAR},
-            </if>
-            <if test="remark != null">
-                remark=#{remark,jdbcType=VARCHAR},
-            </if>
-            <if test="status != null">
-                status=#{status,jdbcType=INTEGER},
-            </if>
-            <if test="m_option != null">
-                m_option=#{m_option,jdbcType=VARCHAR},
-            </if>
-            sort_index=#{sort_index,jdbcType=INTEGER}
-        </set>
-        WHERE u_id=#{old_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="ModuleResultMap">
-        SELECT * FROM S_MODULES WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="ModuleResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 85
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/resource/ResourcesMapper.xml

@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.resource.ResourcesMapper">
-    <resultMap id="ResourcesResultMap" type="Resources" >
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR" />
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR" />
-        <result property="path" column="path" javaType="String" jdbcType="VARCHAR" />
-        <result property="create_date" column="create_date" javaType="java.util.Date" jdbcType="TIMESTAMP" />
-        <result property="creator_id" column="creator_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="md5" column="md5" javaType="String" jdbcType="VARCHAR" />
-        <result property="type" column="type" javaType="String" jdbcType="VARCHAR" />
-        <result property="status" column="status" javaType="int" jdbcType="INTEGER" />
-    </resultMap>
-
-    <!--字段信息绑定-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','name':'string','path':'string','create_date':'date'
-                    ,'creator_id':'string','md5':'string','type':'string','status':'number'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_RESOURCES'"/>
-    </sql>
-
-    <insert id="insert" parameterType="Resources" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_RESOURCES
-        (u_id,name,path,create_date,creator_id,md5,type,status)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{path,jdbcType=VARCHAR},#{create_date,jdbcType=TIMESTAMP},#{creator_id,jdbcType=VARCHAR},#{md5,jdbcType=VARCHAR},#{type,jdbcType=VARCHAR},#{status,jdbcType=INTEGER})
-    </insert>
-
-    <delete id="delete" parameterType="Resources" >
-        DELETE FROM S_RESOURCES WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="Resources" >
-        UPDATE S_RESOURCES
-        <set>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="path != null">
-                path=#{path,jdbcType=VARCHAR},
-            </if>
-            <if test="create_date != null">
-                create_date=#{create_date,jdbcType=TIMESTAMP},
-            </if>
-            <if test="creator_id != null">
-                creator_id=#{creator_id,jdbcType=VARCHAR},
-            </if>
-            <if test="md5 != null">
-                md5=#{md5,jdbcType=VARCHAR},
-            </if>
-            <if test="type != null">
-                type=#{type,jdbcType=VARCHAR},
-            </if>
-            <if test="status != null">
-                status=#{status,jdbcType=INTEGER},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="ResourcesResultMap">
-        SELECT * FROM S_RESOURCES WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="ResourcesResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 70
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/role/RoleMapper.xml

@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="org.hsweb.web.dao.role.RoleMapper">
-    <resultMap id="RoleResultMap" type="Role">
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR"/>
-        <result property="remark" column="remark" javaType="String" jdbcType="VARCHAR"/>
-        <result property="type" column="type" javaType="String" jdbcType="VARCHAR"/>
-        <collection property="modules" column="u_id" ofType="RoleModule"
-                    select="org.hsweb.web.dao.role.RoleModuleMapper.selectByRoleId"/>
-    </resultMap>
-
-    <!--字段信息绑定-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','name':'string','remark':'string','type':'string'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_ROLE'"/>
-    </sql>
-
-    <insert id="insert" parameterType="Role" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_ROLE
-        (u_id,name,remark,type)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR},#{type,jdbcType=VARCHAR})
-    </insert>
-
-    <delete id="delete" parameterType="Role">
-        DELETE FROM S_ROLE WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="Role">
-        UPDATE S_ROLE
-        <set>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="remark != null">
-                remark=#{remark,jdbcType=VARCHAR},
-            </if>
-            <if test="type != null">
-                type=#{type,jdbcType=VARCHAR},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="RoleResultMap">
-        SELECT * FROM S_ROLE WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="RoleResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 80
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/role/RoleModuleMapper.xml

@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.role.RoleModuleMapper">
-    <resultMap id="RoleModuleResultMap" type="RoleModule" >
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR" />
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="module_id" column="module_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="role_id" column="role_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="o_level" column="o_level" javaType="String" jdbcType="VARCHAR" />
-        <collection property="module" column="module_id" ofType="Module" select="org.hsweb.web.dao.module.ModuleMapper.selectByPk"/>
-    </resultMap>
-
-    <!--字段信息绑定-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo" value="#{'u_id':'string','module_id':'string','role_id':'string','o_level':'string'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_ROLE_MODULES'"/>
-    </sql>
-
-    <insert id="insert" parameterType="RoleModule" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_ROLE_MODULES
-        (u_id,module_id,role_id,o_level)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{module_id,jdbcType=VARCHAR},#{role_id,jdbcType=VARCHAR},#{o_level,jdbcType=VARCHAR})
-    </insert>
-
-    <delete id="delete" parameterType="RoleModule" >
-        DELETE FROM S_ROLE_MODULES WHERE u_id=#{u_id}
-    </delete>
-
-    <delete id="deleteByRoleId" parameterType="string" >
-        DELETE FROM S_ROLE_MODULES WHERE role_id=#{role_id}
-    </delete>
-
-    <delete id="deleteByModuleId" parameterType="string" >
-        DELETE FROM S_ROLE_MODULES WHERE module_id=#{module_id}
-    </delete>
-
-    <update id="update" parameterType="RoleModule" >
-        UPDATE S_ROLE_MODULES
-        <set>
-            <if test="module_id != null">
-                module_id=#{module_id,jdbcType=VARCHAR},
-            </if>
-            <if test="role_id != null">
-                role_id=#{role_id,jdbcType=VARCHAR},
-            </if>
-            <if test="o_level != null">
-                o_level=#{o_level,jdbcType=VARCHAR},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByRoleId" parameterType="string" resultMap="RoleModuleResultMap">
-        SELECT * FROM S_ROLE_MODULES WHERE role_id=#{role_id}
-    </select>
-
-    <select id="selectByPk" parameterType="string" resultMap="RoleModuleResultMap">
-        SELECT * FROM S_ROLE_MODULES WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="RoleModuleResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 74
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/role/UserRoleMapper.xml

@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.role.UserRoleMapper">
-    <resultMap id="UserRoleResultMap" type="UserRole">
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="user_id" column="user_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="role_id" column="role_id" javaType="String" jdbcType="VARCHAR"/>
-        <collection property="role" column="role_id" jdbcType="VARCHAR" ofType="Role"
-                    select="org.hsweb.web.dao.role.RoleMapper.selectByPk"></collection>
-    </resultMap>
-
-    <!--字段信息配置-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo" value="#{'u_id':'string','user_id':'string','role_id':'string'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_USER_ROLE'"/>
-    </sql>
-
-    <insert id="insert" parameterType="UserRole" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_USER_ROLE
-        (u_id,user_id,role_id)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{user_id,jdbcType=VARCHAR},#{role_id,jdbcType=VARCHAR})
-    </insert>
-
-    <delete id="delete" parameterType="UserRole">
-        DELETE FROM S_USER_ROLE WHERE u_id=#{u_id}
-    </delete>
-
-    <delete id="deleteByUserId" parameterType="string">
-        DELETE FROM S_USER_ROLE WHERE user_id=#{user_id}
-    </delete>
-
-    <update id="update" parameterType="UserRole">
-        UPDATE S_USER_ROLE
-        <set>
-            <if test="user_id != null">
-                user_id=#{user_id,jdbcType=VARCHAR},
-            </if>
-            <if test="role_id != null">
-                role_id=#{role_id,jdbcType=VARCHAR},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByUserId" parameterType="string" resultMap="UserRoleResultMap">
-        SELECT * FROM S_USER_ROLE WHERE user_id=#{user_id}
-    </select>
-
-    <select id="selectByPk" parameterType="string" resultMap="UserRoleResultMap">
-        SELECT * FROM S_USER_ROLE WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="UserRoleResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 81
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/script/DynamicScriptMapper.xml

@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.script.DynamicScriptMapper">
-    <resultMap id="DynamicScriptResultMap" type="DynamicScript" >
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR" />
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR" />
-        <result property="type" column="type" javaType="String" jdbcType="VARCHAR" />
-        <result property="content" column="content" javaType="String" jdbcType="VARCHAR" />
-        <result property="remark" column="remark" javaType="String" jdbcType="VARCHAR" />
-        <result property="path" column="path" javaType="String" jdbcType="VARCHAR" />
-        <result property="status" column="status" javaType="int" jdbcType="INTEGER" />
-    </resultMap>
-
-    <!--字段配置-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','name':'string','type':'string','content':'string','remark':'string','path':'string','status':'number'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_SCRIPT'"/>
-    </sql>
-
-    <insert id="insert" parameterType="DynamicScript" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_SCRIPT
-        (u_id,name,type,content,remark,path,status)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{type,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR},#{path,jdbcType=VARCHAR},#{status,jdbcType=INTEGER})
-    </insert>
-
-    <delete id="delete" parameterType="DynamicScript" >
-        DELETE FROM S_SCRIPT WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="DynamicScript" >
-        UPDATE S_SCRIPT
-        <set>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="type != null">
-                type=#{type,jdbcType=VARCHAR},
-            </if>
-            <if test="content != null">
-                content=#{content,jdbcType=VARCHAR},
-            </if>
-            <if test="remark != null">
-                remark=#{remark,jdbcType=VARCHAR},
-            </if>
-            <if test="path != null">
-                path=#{path,jdbcType=VARCHAR},
-            </if>
-            <if test="status != null">
-                status=#{status,jdbcType=INTEGER},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="DynamicScriptResultMap">
-        SELECT * FROM S_SCRIPT WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="DynamicScriptResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 90
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/mysql/user/UserMapper.xml

@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.user.UserMapper">
-    <resultMap id="UserResultMap" type="User">
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="username" column="username" javaType="String" jdbcType="VARCHAR"/>
-        <result property="password" column="password" javaType="String" jdbcType="VARCHAR"/>
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR"/>
-        <result property="email" column="email" javaType="String" jdbcType="VARCHAR"/>
-        <result property="phone" column="phone" javaType="String" jdbcType="VARCHAR"/>
-        <result property="status" column="status" javaType="int" jdbcType="INTEGER"/>
-        <result property="create_date" column="create_date" javaType="java.util.Date" jdbcType="TIMESTAMP"/>
-        <result property="update_date" column="update_date" javaType="java.util.Date" jdbcType="TIMESTAMP"/>
-        <collection property="userRoles" column="u_id" ofType="UserRole"
-                    select="org.hsweb.web.dao.role.UserRoleMapper.selectByUserId"/>
-    </resultMap>
-    <!--字段信息配置-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','username':'string','name':'string'
-                    ,'email':'string','phone':'string','status':'number'
-                    ,'create_date':'date','update_date':'date'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_USER'"/>
-    </sql>
-
-    <insert id="insert" parameterType="User" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_USER
-        (u_id,username,password,name,email,phone,status,create_date,update_date)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{username,jdbcType=VARCHAR},#{password,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{email,jdbcType=VARCHAR},#{phone,jdbcType=VARCHAR},#{status,jdbcType=INTEGER},#{create_date,jdbcType=TIMESTAMP},#{update_date,jdbcType=TIMESTAMP})
-    </insert>
-
-    <delete id="delete" parameterType="User">
-        DELETE FROM S_USER WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="updatePassword" parameterType="User">
-        UPDATE S_USER set password=#{password,jdbcType=VARCHAR} where u_id = #{u_id}
-    </update>
-
-    <update id="update" parameterType="User">
-        UPDATE S_USER
-        <set>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="email != null">
-                email=#{email,jdbcType=VARCHAR},
-            </if>
-            <if test="phone != null">
-                phone=#{phone,jdbcType=VARCHAR},
-            </if>
-            <if test="status != null">
-                status=#{status,jdbcType=INTEGER},
-            </if>
-            <if test="update_date != null">
-                update_date=#{update_date,jdbcType=TIMESTAMP},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByUserName" parameterType="string" resultMap="UserResultMap">
-        SELECT * FROM S_USER WHERE username=#{username}
-    </select>
-
-    <select id="selectByPk" parameterType="string" resultMap="UserResultMap">
-        SELECT * FROM S_USER WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="UserResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 133
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/basic/BasicMapper.xml

@@ -1,133 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="BasicMapper">
-    <!--通用查询条件-->
-    <sql id="selectCondition">
-            <!--动态生成查询条件-->
-            <foreach item="item" index="index" collection="$fields">
-                <if test="#this['term.'+item]!=null">
-                    <choose>
-                        <when test="$fieldsInfo[item] == 'date' ">
-                            AND ${$tableName}.${item}=to_date(#{term.${item}},'YYYY-MM-DD HH24:MI:SS')
-                        </when>
-                        <otherwise>AND ${$tableName}.${item}=#{term.${item}}</otherwise>
-                    </choose>
-                </if>
-                <if test="#this['term.'+item+'$NOT']!=null">
-                    <choose>
-                        <when test="$fieldsInfo[item] == 'date' ">
-                            AND ${$tableName}.${item}!=to_date(#{term.${item+'$NOT'}},'YYYY-MM-DD HH24:MI:SS')
-                        </when>
-                        <otherwise>AND ${$tableName}.${item}!=#{term.${item+'$NOT'}}</otherwise>
-                    </choose>
-                </if>
-                <if test="#this['term.'+item+'$LIKE']!=null">
-                    AND INSTR(${$tableName}.${item},#{term.${item+'$LIKE'}})>0
-                </if>
-                <if test="#this['term.'+item+'$NOTLIKE']!=null">
-                    AND INSTR(${$tableName}.${item},#{term.${item+'$NOTLIKE'}})&lt;=0
-                </if>
-                <if test="#this['term.'+item+'$START']!=null">
-                    AND ${$tableName}.${item} LIKE #{term.${item+'$START'}}||'%'
-                </if>
-                <if test="#this['term.'+item+'$END']!=null">
-                    AND ${$tableName}.${item} LIKE '%'||#{term.${item+'$END'}}
-                </if>
-                <if test="#this['term.'+item+'$IN']!=null">
-                    AND ${$tableName}.${item} IN
-                    <foreach item="it" index="i" collection="#this['term.'+item+'$IN']" open="(" separator="," close=")">
-                        #{it}
-                    </foreach>
-                </if>
-                <if test="#this['term.'+item+'$NOTIN']!=null">
-                    AND ${$tableName}.${item} NOT IN
-                    <foreach item="it" index="i" collection="#this['term.'+item+'$NOTIN']" open="(" separator="," close=")">
-                        #{it}
-                    </foreach>
-                </if>
-                <if test="#this['term.'+item+'$ISNULL']!=null">
-                    AND ${$tableName}.${item} IS NULL
-                </if>
-                <if test="#this['term.'+item+'$NOTNULL']!=null">
-                    AND ${$tableName}.${item} IS NOT NULL
-                </if>
-                <if test="#this['term.'+item+'$GT']!=null">
-                    <choose>
-                        <when test="$fieldsInfo[item] == 'date' ">
-                            AND ${$tableName}.${item} &gt;=to_date(#{term.${item+'$GT'}},'YYYY-MM-DD HH24:MI:SS')
-                        </when>
-                        <when test="$fieldsInfo[item] == 'number' ">
-                            AND ${$tableName}.${item} &gt;=#{term.${item+'$GT'}}
-                        </when>
-                        <otherwise></otherwise>
-                    </choose>
-                </if>
-                <if test="#this['term.'+item+'$LT']!=null">
-                    <choose>
-                        <when test="$fieldsInfo[item] == 'date' ">
-                            AND ${$tableName}.${item} &lt;=to_date(#{term.${item+'$LT'}},'YYYY-MM-DD HH24:MI:SS')
-                        </when>
-                        <when test="$fieldsInfo[item] == 'number' ">
-                            AND ${$tableName}.${item} &lt;=#{term.${item+'$LT'}}
-                        </when>
-                        <otherwise></otherwise>
-                    </choose>
-                </if>
-            </foreach>
-        <!--动态生成查询条件结束-->
-    </sql>
-    <!--生成查询字段-->
-    <sql id="selectField">
-            <choose>
-                <!--指定查询的字段-->
-                <when test="includes!=null and includes.size()>0">
-                    <foreach item="item" index="index" collection="$includes" open="" separator="," close="">
-                        <if test="item in $fields">
-                            ${$tableName}.${item} as "${item}"
-                        </if>
-                    </foreach>
-                </when>
-                <!--指定不查询的字段-->
-                <when test="(includes==null or includes.size()==0) and excludes!=null and excludes.size()>0">
-                    <foreach item="item" index="index" collection="$fields" open=" " separator="," close="">
-                        <if test="!(item in excludes)">
-                            ${$tableName}.${item} as "${item}"
-                        </if>
-                    </foreach>
-                </when>
-                <otherwise>*</otherwise>
-            </choose>
-    </sql>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="map">
-        <include refid="selectSql"></include>
-    </select>
-
-    <select id="selectSql" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="map">
-        ${$sql}
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="totalSql"></include>
-    </select>
-
-    <!--生成查询sql-->
-    <sql id="selectSql">
-        SELECT
-        <include refid="BasicMapper.selectField"/>
-        FROM ${$tableName}
-        <where>
-            <include refid="BasicMapper.selectCondition"/>
-        </where>
-    </sql>
-
-    <!--生成查询数量sql-->
-    <sql id="totalSql">
-        SELECT count(0) AS total FROM ${$tableName}
-        <where>
-            <include refid="BasicMapper.selectCondition"/>
-        </where>
-    </sql>
-</mapper>

+ 0 - 73
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/config/ConfigMapper.xml

@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.config.ConfigMapper">
-    <resultMap id="ConfigResultMap" type="Config" >
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR" />
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="remark" column="remark" javaType="String" jdbcType="VARCHAR" />
-        <result property="content" column="content" javaType="String" jdbcType="VARCHAR" />
-        <result property="create_date" column="create_date" javaType="java.util.Date" jdbcType="TIMESTAMP" />
-        <result property="update_date" column="update_date" javaType="java.util.Date" jdbcType="TIMESTAMP" />
-    </resultMap>
-
-    <!--字段信息配置-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','remark':'string','content':'string'
-                    ,'create_date':'date','update_date':'date'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_CONFIG'"/>
-    </sql>
-
-    <insert id="insert" parameterType="Config" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_CONFIG
-        (u_id,remark,content,create_date,update_date)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{create_date,jdbcType=TIMESTAMP},#{update_date,jdbcType=TIMESTAMP})
-    </insert>
-
-    <delete id="delete" parameterType="Config" >
-        DELETE FROM S_CONFIG WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="Config" >
-        UPDATE S_CONFIG
-        <set>
-            <if test="remark != null">
-                remark=#{remark,jdbcType=VARCHAR},
-            </if>
-            <if test="content != null">
-                content=#{content,jdbcType=VARCHAR},
-            </if>
-            <if test="create_date != null">
-                create_date=#{create_date,jdbcType=TIMESTAMP},
-            </if>
-            <if test="update_date != null">
-                update_date=#{update_date,jdbcType=TIMESTAMP},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="ConfigResultMap">
-        SELECT * FROM S_CONFIG WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="ConfigResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 91
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/form/FormMapper.xml

@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.form.FormMapper">
-    <resultMap id="FormResultMap" type="Form">
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR"/>
-        <result property="content" column="content" javaType="String" jdbcType="VARCHAR"/>
-        <result property="table_name" column="table_name" javaType="String" jdbcType="VARCHAR"/>
-        <result property="foreigns" column="foreigns" javaType="String" jdbcType="VARCHAR"/>
-        <result property="remark" column="remark" javaType="String" jdbcType="VARCHAR"/>
-        <result property="auto_alter" column="auto_alter" javaType="boolean" jdbcType="INTEGER"/>
-        <result property="create_date" column="create_date" javaType="java.util.Date" jdbcType="TIMESTAMP"/>
-        <result property="update_date" column="update_date" javaType="java.util.Date" jdbcType="TIMESTAMP"/>
-        <result property="db_name" column="db_name" javaType="String" jdbcType="VARCHAR"/>
-    </resultMap>
-
-    <!--字段信息绑定-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','name':'string','content':'string','table_name':'string'
-                        ,'foreigns':'string','remark':'string','auto_alter':'string','create_date':'string'
-                       ,'update_date':'string','db_name':'string'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_FORM'"/>
-    </sql>
-
-    <insert id="insert" parameterType="Form" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_FORM
-        (u_id,name,content,table_name,foreigns,remark,auto_alter,create_date,update_date,db_name)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{table_name,jdbcType=VARCHAR},#{foreigns,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR},#{auto_alter,jdbcType=INTEGER},#{create_date,jdbcType=TIMESTAMP},#{update_date,jdbcType=TIMESTAMP},#{db_name,jdbcType=VARCHAR})
-    </insert>
-
-    <delete id="delete" parameterType="Form">
-        DELETE FROM S_FORM WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="Form">
-        UPDATE S_FORM
-        <set>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="content != null">
-                content=#{content,jdbcType=VARCHAR},
-            </if>
-            <if test="table_name != null">
-                table_name=#{table_name,jdbcType=VARCHAR},
-            </if>
-            <if test="foreigns != null">
-                foreigns=#{foreigns,jdbcType=VARCHAR},
-            </if>
-            <if test="remark != null">
-                remark=#{remark,jdbcType=VARCHAR},
-            </if>
-            <if test="auto_alter != null">
-                auto_alter=#{auto_alter,jdbcType=INTEGER},
-            </if>
-            <if test="update_date != null">
-                update_date=#{update_date,jdbcType=TIMESTAMP},
-            </if>
-            <if test="db_name != null">
-                db_name=#{db_name,jdbcType=VARCHAR},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="FormResultMap">
-        SELECT * FROM S_FORM WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="FormResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 89
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/module/ModuleMapper.xml

@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.module.ModuleMapper">
-    <resultMap id="ModuleResultMap" type="Module">
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR"/>
-        <result property="uri" column="uri" javaType="String" jdbcType="VARCHAR"/>
-        <result property="icon" column="icon" javaType="String" jdbcType="VARCHAR"/>
-        <result property="p_id" column="p_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="remark" column="remark" javaType="String" jdbcType="VARCHAR"/>
-        <result property="status" column="status" javaType="int" jdbcType="INTEGER"/>
-        <result property="m_option" column="m_option" javaType="String" jdbcType="VARCHAR"/>
-        <result property="sort_index" column="sort_index" javaType="int" jdbcType="INTEGER"/>
-    </resultMap>
-
-    <!--字段信息绑定-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','name':'string','uri':'string','icon':'string','p_id':'string','sort_index':'number','m_option':'string','remark':'string','type':'string','status':'number'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_MODULES'"/>
-    </sql>
-
-    <insert id="insert" parameterType="Module" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_MODULES
-        (u_id,name,uri,icon,p_id,remark,status,m_option,sort_index)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{uri,jdbcType=VARCHAR},#{icon,jdbcType=VARCHAR},#{p_id,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR},#{status,jdbcType=INTEGER},#{m_option,jdbcType=VARCHAR},#{sort_index,jdbcType=INTEGER})
-    </insert>
-
-    <delete id="delete" parameterType="Module">
-        DELETE FROM S_MODULES WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="Module">
-        UPDATE S_MODULES
-        <set>
-            <if test="u_id != null">
-                u_id=#{u_id,jdbcType=VARCHAR},
-            </if>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="uri != null">
-                uri=#{uri,jdbcType=VARCHAR},
-            </if>
-            <if test="icon != null">
-                icon=#{icon,jdbcType=VARCHAR},
-            </if>
-            <if test="p_id != null">
-                p_id=#{p_id,jdbcType=VARCHAR},
-            </if>
-            <if test="remark != null">
-                remark=#{remark,jdbcType=VARCHAR},
-            </if>
-            <if test="status != null">
-                status=#{status,jdbcType=INTEGER},
-            </if>
-            <if test="m_option != null">
-                m_option=#{m_option,jdbcType=VARCHAR},
-            </if>
-            sort_index=#{sort_index,jdbcType=INTEGER}
-        </set>
-        WHERE u_id=#{old_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="ModuleResultMap">
-        SELECT * FROM S_MODULES WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="ModuleResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 85
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/resource/ResourcesMapper.xml

@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.resource.ResourcesMapper">
-    <resultMap id="ResourcesResultMap" type="Resources" >
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR" />
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR" />
-        <result property="path" column="path" javaType="String" jdbcType="VARCHAR" />
-        <result property="create_date" column="create_date" javaType="java.util.Date" jdbcType="TIMESTAMP" />
-        <result property="creator_id" column="creator_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="md5" column="md5" javaType="String" jdbcType="VARCHAR" />
-        <result property="type" column="type" javaType="String" jdbcType="VARCHAR" />
-        <result property="status" column="status" javaType="int" jdbcType="INTEGER" />
-    </resultMap>
-
-    <!--字段信息绑定-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','name':'string','path':'string','create_date':'date'
-                    ,'creator_id':'string','md5':'string','type':'string','status':'number'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_RESOURCES'"/>
-    </sql>
-
-    <insert id="insert" parameterType="Resources" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_RESOURCES
-        (u_id,name,path,create_date,creator_id,md5,type,status)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{path,jdbcType=VARCHAR},#{create_date,jdbcType=TIMESTAMP},#{creator_id,jdbcType=VARCHAR},#{md5,jdbcType=VARCHAR},#{type,jdbcType=VARCHAR},#{status,jdbcType=INTEGER})
-    </insert>
-
-    <delete id="delete" parameterType="Resources" >
-        DELETE FROM S_RESOURCES WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="Resources" >
-        UPDATE S_RESOURCES
-        <set>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="path != null">
-                path=#{path,jdbcType=VARCHAR},
-            </if>
-            <if test="create_date != null">
-                create_date=#{create_date,jdbcType=TIMESTAMP},
-            </if>
-            <if test="creator_id != null">
-                creator_id=#{creator_id,jdbcType=VARCHAR},
-            </if>
-            <if test="md5 != null">
-                md5=#{md5,jdbcType=VARCHAR},
-            </if>
-            <if test="type != null">
-                type=#{type,jdbcType=VARCHAR},
-            </if>
-            <if test="status != null">
-                status=#{status,jdbcType=INTEGER},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="ResourcesResultMap">
-        SELECT * FROM S_RESOURCES WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="ResourcesResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 70
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/role/RoleMapper.xml

@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="org.hsweb.web.dao.role.RoleMapper">
-    <resultMap id="RoleResultMap" type="Role">
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR"/>
-        <result property="remark" column="remark" javaType="String" jdbcType="VARCHAR"/>
-        <result property="type" column="type" javaType="String" jdbcType="VARCHAR"/>
-        <collection property="modules" column="u_id" ofType="RoleModule"
-                    select="org.hsweb.web.dao.role.RoleModuleMapper.selectByRoleId"/>
-    </resultMap>
-
-    <!--字段信息绑定-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','name':'string','remark':'string','type':'string'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_ROLE'"/>
-    </sql>
-
-    <insert id="insert" parameterType="Role" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_ROLE
-        (u_id,name,remark,type)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR},#{type,jdbcType=VARCHAR})
-    </insert>
-
-    <delete id="delete" parameterType="Role">
-        DELETE FROM S_ROLE WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="Role">
-        UPDATE S_ROLE
-        <set>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="remark != null">
-                remark=#{remark,jdbcType=VARCHAR},
-            </if>
-            <if test="type != null">
-                type=#{type,jdbcType=VARCHAR},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="RoleResultMap">
-        SELECT * FROM S_ROLE WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="RoleResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 80
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/role/RoleModuleMapper.xml

@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.role.RoleModuleMapper">
-    <resultMap id="RoleModuleResultMap" type="RoleModule" >
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR" />
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="module_id" column="module_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="role_id" column="role_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="o_level" column="o_level" javaType="String" jdbcType="VARCHAR" />
-        <collection property="module" column="module_id" ofType="Module" select="org.hsweb.web.dao.module.ModuleMapper.selectByPk"/>
-    </resultMap>
-
-    <!--字段信息绑定-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo" value="#{'u_id':'string','module_id':'string','role_id':'string','o_level':'string'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_ROLE_MODULES'"/>
-    </sql>
-
-    <insert id="insert" parameterType="RoleModule" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_ROLE_MODULES
-        (u_id,module_id,role_id,o_level)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{module_id,jdbcType=VARCHAR},#{role_id,jdbcType=VARCHAR},#{o_level,jdbcType=VARCHAR})
-    </insert>
-
-    <delete id="delete" parameterType="RoleModule" >
-        DELETE FROM S_ROLE_MODULES WHERE u_id=#{u_id}
-    </delete>
-
-    <delete id="deleteByRoleId" parameterType="string" >
-        DELETE FROM S_ROLE_MODULES WHERE role_id=#{role_id}
-    </delete>
-
-    <delete id="deleteByModuleId" parameterType="string" >
-        DELETE FROM S_ROLE_MODULES WHERE module_id=#{module_id}
-    </delete>
-
-    <update id="update" parameterType="RoleModule" >
-        UPDATE S_ROLE_MODULES
-        <set>
-            <if test="module_id != null">
-                module_id=#{module_id,jdbcType=VARCHAR},
-            </if>
-            <if test="role_id != null">
-                role_id=#{role_id,jdbcType=VARCHAR},
-            </if>
-            <if test="o_level != null">
-                o_level=#{o_level,jdbcType=VARCHAR},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByRoleId" parameterType="string" resultMap="RoleModuleResultMap">
-        SELECT * FROM S_ROLE_MODULES WHERE role_id=#{role_id}
-    </select>
-
-    <select id="selectByPk" parameterType="string" resultMap="RoleModuleResultMap">
-        SELECT * FROM S_ROLE_MODULES WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="RoleModuleResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 74
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/role/UserRoleMapper.xml

@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.role.UserRoleMapper">
-    <resultMap id="UserRoleResultMap" type="UserRole">
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="user_id" column="user_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="role_id" column="role_id" javaType="String" jdbcType="VARCHAR"/>
-        <collection property="role" column="role_id" jdbcType="VARCHAR" ofType="Role"
-                    select="org.hsweb.web.dao.role.RoleMapper.selectByPk"></collection>
-    </resultMap>
-
-    <!--字段信息配置-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo" value="#{'u_id':'string','user_id':'string','role_id':'string'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_USER_ROLE'"/>
-    </sql>
-
-    <insert id="insert" parameterType="UserRole" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_USER_ROLE
-        (u_id,user_id,role_id)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{user_id,jdbcType=VARCHAR},#{role_id,jdbcType=VARCHAR})
-    </insert>
-
-    <delete id="delete" parameterType="UserRole">
-        DELETE FROM S_USER_ROLE WHERE u_id=#{u_id}
-    </delete>
-
-    <delete id="deleteByUserId" parameterType="string">
-        DELETE FROM S_USER_ROLE WHERE user_id=#{user_id}
-    </delete>
-
-    <update id="update" parameterType="UserRole">
-        UPDATE S_USER_ROLE
-        <set>
-            <if test="user_id != null">
-                user_id=#{user_id,jdbcType=VARCHAR},
-            </if>
-            <if test="role_id != null">
-                role_id=#{role_id,jdbcType=VARCHAR},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByUserId" parameterType="string" resultMap="UserRoleResultMap">
-        SELECT * FROM S_USER_ROLE WHERE user_id=#{user_id}
-    </select>
-
-    <select id="selectByPk" parameterType="string" resultMap="UserRoleResultMap">
-        SELECT * FROM S_USER_ROLE WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="UserRoleResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 81
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/script/DynamicScriptMapper.xml

@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.script.DynamicScriptMapper">
-    <resultMap id="DynamicScriptResultMap" type="DynamicScript" >
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR" />
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR" />
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR" />
-        <result property="type" column="type" javaType="String" jdbcType="VARCHAR" />
-        <result property="content" column="content" javaType="String" jdbcType="VARCHAR" />
-        <result property="remark" column="remark" javaType="String" jdbcType="VARCHAR" />
-        <result property="path" column="path" javaType="String" jdbcType="VARCHAR" />
-        <result property="status" column="status" javaType="int" jdbcType="INTEGER" />
-    </resultMap>
-
-    <!--字段配置-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','name':'string','type':'string','content':'string','remark':'string','path':'string','status':'number'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_SCRIPT'"/>
-    </sql>
-
-    <insert id="insert" parameterType="DynamicScript" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_SCRIPT
-        (u_id,name,type,content,remark,path,status)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{type,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR},#{path,jdbcType=VARCHAR},#{status,jdbcType=INTEGER})
-    </insert>
-
-    <delete id="delete" parameterType="DynamicScript" >
-        DELETE FROM S_SCRIPT WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="update" parameterType="DynamicScript" >
-        UPDATE S_SCRIPT
-        <set>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="type != null">
-                type=#{type,jdbcType=VARCHAR},
-            </if>
-            <if test="content != null">
-                content=#{content,jdbcType=VARCHAR},
-            </if>
-            <if test="remark != null">
-                remark=#{remark,jdbcType=VARCHAR},
-            </if>
-            <if test="path != null">
-                path=#{path,jdbcType=VARCHAR},
-            </if>
-            <if test="status != null">
-                status=#{status,jdbcType=INTEGER},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByPk" parameterType="string" resultMap="DynamicScriptResultMap">
-        SELECT * FROM S_SCRIPT WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="DynamicScriptResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>

+ 0 - 90
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/mybatis/plgins/mapper/oracle/user/UserMapper.xml

@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.hsweb.web.dao.user.UserMapper">
-    <resultMap id="UserResultMap" type="User">
-        <id property="u_id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
-        <result property="u_id" column="u_id" javaType="String" jdbcType="VARCHAR"/>
-        <result property="username" column="username" javaType="String" jdbcType="VARCHAR"/>
-        <result property="password" column="password" javaType="String" jdbcType="VARCHAR"/>
-        <result property="name" column="name" javaType="String" jdbcType="VARCHAR"/>
-        <result property="email" column="email" javaType="String" jdbcType="VARCHAR"/>
-        <result property="phone" column="phone" javaType="String" jdbcType="VARCHAR"/>
-        <result property="status" column="status" javaType="int" jdbcType="INTEGER"/>
-        <result property="create_date" column="create_date" javaType="java.util.Date" jdbcType="TIMESTAMP"/>
-        <result property="update_date" column="update_date" javaType="java.util.Date" jdbcType="TIMESTAMP"/>
-        <collection property="userRoles" column="u_id" ofType="UserRole"
-                    select="org.hsweb.web.dao.role.UserRoleMapper.selectByUserId"/>
-    </resultMap>
-    <!--字段信息配置-->
-    <sql id="fieldConfig">
-        <bind name="$fieldsInfo"
-              value="#{'u_id':'string','username':'string','name':'string'
-                    ,'email':'string','phone':'string','status':'number'
-                    ,'create_date':'date','update_date':'date'}"/>
-        <bind name="$fields" value="$fieldsInfo.keySet()"/>
-    </sql>
-    <!--表名-->
-    <sql id="tableName">
-        <bind name="$tableName" value="'S_USER'"/>
-    </sql>
-
-    <insert id="insert" parameterType="User" useGeneratedKeys="true" keyProperty="u_id" keyColumn="U_ID">
-        INSERT INTO S_USER
-        (u_id,username,password,name,email,phone,status,create_date,update_date)
-        VALUES
-        (#{u_id,jdbcType=VARCHAR},#{username,jdbcType=VARCHAR},#{password,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{email,jdbcType=VARCHAR},#{phone,jdbcType=VARCHAR},#{status,jdbcType=INTEGER},#{create_date,jdbcType=TIMESTAMP},#{update_date,jdbcType=TIMESTAMP})
-    </insert>
-
-    <delete id="delete" parameterType="User">
-        DELETE FROM S_USER WHERE u_id=#{u_id}
-    </delete>
-
-    <update id="updatePassword" parameterType="User">
-        UPDATE S_USER set password=#{password,jdbcType=VARCHAR} where u_id = #{u_id}
-    </update>
-
-    <update id="update" parameterType="User">
-        UPDATE S_USER
-        <set>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="email != null">
-                email=#{email,jdbcType=VARCHAR},
-            </if>
-            <if test="phone != null">
-                phone=#{phone,jdbcType=VARCHAR},
-            </if>
-            <if test="status != null">
-                status=#{status,jdbcType=INTEGER},
-            </if>
-            <if test="update_date != null">
-                update_date=#{update_date,jdbcType=TIMESTAMP},
-            </if>
-        </set>
-        WHERE u_id=#{u_id}
-    </update>
-
-    <select id="selectByUserName" parameterType="string" resultMap="UserResultMap">
-        SELECT * FROM S_USER WHERE username=#{username}
-    </select>
-
-    <select id="selectByPk" parameterType="string" resultMap="UserResultMap">
-        SELECT * FROM S_USER WHERE u_id=#{u_id}
-    </select>
-
-    <select id="select" parameterType="org.hsweb.web.bean.common.QueryParam" resultMap="UserResultMap">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.selectSql"/>
-    </select>
-
-    <select id="total" parameterType="org.hsweb.web.bean.common.QueryParam" resultType="int">
-        <include refid="fieldConfig"/>
-        <include refid="tableName"/>
-        <include refid="BasicMapper.totalSql"/>
-    </select>
-</mapper>