Commit 3533a456 by lystar

将nmshce项目中的SYS_USER替换成SYS_USER_SHCE

parent b87b0f9a
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
select t.*,rownum rn from ( select t.*,rownum rn from (
select select
<include refid="Base_Column_List" />,ROLENAME <include refid="Base_Column_List" />,ROLENAME
from SYS_USER t from SYS_USER_SHCE t
left join left join
(select u.user_id , (select u.user_id ,
listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<select id="selectDsxjglyListCountByCondition" resultType="integer"> <select id="selectDsxjglyListCountByCondition" resultType="integer">
SELECT SELECT
count(1) count(1)
from SYS_USER t from SYS_USER_SHCE t
left join left join
(select u.user_id , (select u.user_id ,
listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
select t.*,rownum rn from ( select t.*,rownum rn from (
select select
<include refid="Base_Column_List" />,ROLENAME <include refid="Base_Column_List" />,ROLENAME
from SYS_USER t from SYS_USER_SHCE t
left join left join
(select u.user_id , (select u.user_id ,
xmlagg(xmlparse(content roleName||',' wellformed) order by u.user_id).getclobval() as roleName xmlagg(xmlparse(content roleName||',' wellformed) order by u.user_id).getclobval() as roleName
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<select id="selectSxDsxjglyListCountByCondition" resultType="integer"> <select id="selectSxDsxjglyListCountByCondition" resultType="integer">
SELECT SELECT
count(1) count(1)
from SYS_USER t from SYS_USER_SHCE t
left join left join
(select u.user_id , (select u.user_id ,
xmlagg(xmlparse(content roleName||',' wellformed) order by u.user_id).getclobval() as roleName xmlagg(xmlparse(content roleName||',' wellformed) order by u.user_id).getclobval() as roleName
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
POLICEMANID as policemanid, POLICEMANID as policemanid,
TELEPHONE as telephone, TELEPHONE as telephone,
UNITNAME as unitname UNITNAME as unitname
from SYS_USER_ZXAJSP from SYS_USER_SHCE_ZXAJSP
where 1=1 where 1=1
<if test="type !=null"> and MODULECODE = #{type}</if> <if test="type !=null"> and MODULECODE = #{type}</if>
) t where ROWNUM <![CDATA[<=]]> ) t where ROWNUM <![CDATA[<=]]>
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
<!--专项案件省厅负责人审批总数--> <!--专项案件省厅负责人审批总数-->
<select id="selectZxajstfzrUserCountByCondition" resultType="java.lang.Integer"> <select id="selectZxajstfzrUserCountByCondition" resultType="java.lang.Integer">
select count(*) select count(*)
from SYS_USER_ZXAJSP from SYS_USER_SHCE_ZXAJSP
where 1=1 where 1=1
<if test="type !=null"> and MODULECODE = #{type}</if> <if test="type !=null"> and MODULECODE = #{type}</if>
</select> </select>
......
...@@ -50,16 +50,16 @@ ...@@ -50,16 +50,16 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from SYS_USER from SYS_USER_SHCE
where ID = #{id,jdbcType=VARCHAR} where ID = #{id,jdbcType=VARCHAR}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" > <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from SYS_USER delete from SYS_USER_SHCE
where ID = #{id,jdbcType=VARCHAR} where ID = #{id,jdbcType=VARCHAR}
</delete> </delete>
<insert id="insert" parameterType="com.xzxtshiro.pojo.SysUser" > <insert id="insert" parameterType="com.xzxtshiro.pojo.SysUser" >
insert into SYS_USER (ID, UNITCODE, USERNAME, insert into SYS_USER_SHCE (ID, UNITCODE, USERNAME,
PASSWORD, TRUE_NAME, OPEN_FLAG, PASSWORD, TRUE_NAME, OPEN_FLAG,
DEFAULT_MODEL, REMARK, LRR, DEFAULT_MODEL, REMARK, LRR,
LRSJ, GXR, GXSJ, LRDWDM, LRSJ, GXR, GXSJ, LRDWDM,
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.xzxtshiro.pojo.SysUser" > <insert id="insertSelective" parameterType="com.xzxtshiro.pojo.SysUser" >
insert into SYS_USER insert into SYS_USER_SHCE
<trim prefix="(" suffix=")" suffixOverrides="," > <trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" > <if test="id != null" >
ID, ID,
...@@ -296,7 +296,7 @@ ...@@ -296,7 +296,7 @@
</trim> </trim>
</insert> </insert>
<update id="updateSysUserById" parameterType="com.xzxtshiro.pojo.SysUser" > <update id="updateSysUserById" parameterType="com.xzxtshiro.pojo.SysUser" >
update SYS_USER update SYS_USER_SHCE
<set > <set >
<if test="unitcode != null" > <if test="unitcode != null" >
UNITCODE = #{unitcode,jdbcType=VARCHAR}, UNITCODE = #{unitcode,jdbcType=VARCHAR},
...@@ -401,7 +401,7 @@ ...@@ -401,7 +401,7 @@
where ID = #{id,jdbcType=VARCHAR} where ID = #{id,jdbcType=VARCHAR}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.xzxtshiro.pojo.SysUser" > <update id="updateByPrimaryKey" parameterType="com.xzxtshiro.pojo.SysUser" >
update SYS_USER update SYS_USER_SHCE
set UNITCODE = #{unitcode,jdbcType=VARCHAR}, set UNITCODE = #{unitcode,jdbcType=VARCHAR},
USERNAME = #{username,jdbcType=VARCHAR}, USERNAME = #{username,jdbcType=VARCHAR},
PASSWORD = #{password,jdbcType=VARCHAR}, PASSWORD = #{password,jdbcType=VARCHAR},
...@@ -438,7 +438,7 @@ ...@@ -438,7 +438,7 @@
where ID = #{id,jdbcType=VARCHAR} where ID = #{id,jdbcType=VARCHAR}
</update> </update>
<update id="updateShceUser"> <update id="updateShceUser">
update SYS_USER set XTLX='SHCE' where 1=1 update SYS_USER_SHCE set XTLX='SHCE' where 1=1
<if test="username !=null"> and USERNAME=#{username,jdbcType=VARCHAR}</if> <if test="username !=null"> and USERNAME=#{username,jdbcType=VARCHAR}</if>
<if test="identitycard !=null"> and IDENTITYCARD=#{identitycard,jdbcType=VARCHAR}</if> <if test="identitycard !=null"> and IDENTITYCARD=#{identitycard,jdbcType=VARCHAR}</if>
</update> </update>
...@@ -511,7 +511,7 @@ ...@@ -511,7 +511,7 @@
<select id="queryAllUserByCondition" resultMap="BaseResultMap"> <select id="queryAllUserByCondition" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" />,ROLENAME <include refid="Base_Column_List" />,ROLENAME
from SYS_USER t from SYS_USER_SHCE t
left join left join
(select u.user_id , (select u.user_id ,
listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName
...@@ -535,7 +535,7 @@ ...@@ -535,7 +535,7 @@
select t.*,rownum rn from ( select t.*,rownum rn from (
select select
<include refid="Base_Column_List" />,ROLENAME <include refid="Base_Column_List" />,ROLENAME
from SYS_USER t from SYS_USER_SHCE t
left join left join
(select u.user_id , (select u.user_id ,
listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName
...@@ -560,7 +560,7 @@ ...@@ -560,7 +560,7 @@
<select id="selectSysUserCountByCondition" resultType="integer"> <select id="selectSysUserCountByCondition" resultType="integer">
SELECT SELECT
count(1) count(1)
from SYS_USER t from SYS_USER_SHCE t
left join left join
(select u.user_id , (select u.user_id ,
listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName
...@@ -587,7 +587,7 @@ ...@@ -587,7 +587,7 @@
select t.*,rownum rn from ( select t.*,rownum rn from (
select select
<include refid="Base_Column_List" />,ROLENAME <include refid="Base_Column_List" />,ROLENAME
from SYS_USER t from SYS_USER_SHCE t
left join left join
(select u.user_id , (select u.user_id ,
xmlagg(xmlparse(content roleName||',' wellformed) order by u.user_id).getclobval() as roleName xmlagg(xmlparse(content roleName||',' wellformed) order by u.user_id).getclobval() as roleName
...@@ -610,7 +610,7 @@ ...@@ -610,7 +610,7 @@
<select id="selectSxSysUserCountByCondition" resultType="integer"> <select id="selectSxSysUserCountByCondition" resultType="integer">
SELECT SELECT
count(1) count(1)
from SYS_USER t from SYS_USER_SHCE t
left join left join
(select u.user_id , (select u.user_id ,
xmlagg(xmlparse(content roleName||',' wellformed) order by u.user_id).getclobval() as roleName xmlagg(xmlparse(content roleName||',' wellformed) order by u.user_id).getclobval() as roleName
...@@ -647,7 +647,7 @@ ...@@ -647,7 +647,7 @@
</delete> </delete>
<!--插入用户照片--> <!--插入用户照片-->
<insert id="insertUserZp" parameterType = "com.xzxtshiro.pojo.SysUserZp"> <insert id="insertUserZp" parameterType = "com.xzxtshiro.pojo.SysUserZp">
insert into SYS_USERZP( insert into SYS_USER_SHCEZP(
xxbh, xxbh,
user_id, user_id,
photo , photo ,
...@@ -664,11 +664,11 @@ ...@@ -664,11 +664,11 @@
<!--查询用户照片--> <!--查询用户照片-->
<select id="selectUserZpByUserId" resultType="com.xzxtshiro.pojo.SysUserZp"> <select id="selectUserZpByUserId" resultType="com.xzxtshiro.pojo.SysUserZp">
select * from SYS_USERZP where scbz=0 and USER_ID = #{userId,jdbcType=VARCHAR} select * from SYS_USER_SHCEZP where scbz=0 and USER_ID = #{userId,jdbcType=VARCHAR}
</select> </select>
<!--删除用户的老照片--> <!--删除用户的老照片-->
<delete id="deleteUserZpByUserId"> <delete id="deleteUserZpByUserId">
delete from SYS_USERZP where user_id = #{userId,jdbcType=VARCHAR} delete from SYS_USER_SHCEZP where user_id = #{userId,jdbcType=VARCHAR}
</delete> </delete>
<!--根据用户id真实删除用户--> <!--根据用户id真实删除用户-->
<delete id="deleteUserById"> <delete id="deleteUserById">
...@@ -679,7 +679,7 @@ ...@@ -679,7 +679,7 @@
<select id="selectSysUserDetailById" resultMap="BaseResultMap"> <select id="selectSysUserDetailById" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" />,ROLENAME <include refid="Base_Column_List" />,ROLENAME
from SYS_USER t from SYS_USER_SHCE t
left join left join
(select u.user_id , (select u.user_id ,
xmlagg(xmlparse(content roleName||',' wellformed) order by u.user_id).getclobval() as roleName xmlagg(xmlparse(content roleName||',' wellformed) order by u.user_id).getclobval() as roleName
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment