Commit 3533a456 by lystar

将nmshce项目中的SYS_USER替换成SYS_USER_SHCE

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