Commit f9e7d8c8 by Suvalue

mapper用户名前缀修改

parent 2ca44b68
......@@ -9,20 +9,20 @@
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.DIC_DIM
delete from DIC_DIM
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.DicDim">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_DIC_DIM_ID.nextval from dual
</selectKey>
insert into LL.DIC_DIM (
insert into DIC_DIM (
DIM_NAME, DIM_FIELD,DIM_TYPE)
values (
#{dimName,jdbcType=VARCHAR}, #{dimField,jdbcType=VARCHAR},#{dimType,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.DicDim">
update LL.DIC_DIM
update DIC_DIM
set
DIM_NAME = #{dimName,jdbcType=VARCHAR},
DIM_FIELD = #{dimField,jdbcType=VARCHAR},
......@@ -31,12 +31,12 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, DIM_NAME, DIM_FIELD,DIM_TYPE
from LL.DIC_DIM
from DIC_DIM
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, DIM_NAME, DIM_FIELD,DIM_TYPE
from LL.DIC_DIM
from DIC_DIM
</select>
<select id="selectByPageid" resultMap="BaseResultMap">
select dd.* from SER_PAGE_DIM_RS spdr,DIC_DIM dd
......
......@@ -15,14 +15,14 @@
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.DIC_IND
delete from DIC_IND
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.DicInd">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_DIC_IND_ID.nextval from dual
</selectKey>
insert into LL.DIC_IND (CREATE_DATE, CREATE_USERID, STATE,
insert into DIC_IND (CREATE_DATE, CREATE_USERID, STATE,
IND_CODE, IND_NAME, COMPUTE_MODE,
EXEC_SQL, DESCRIBE)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
......@@ -30,7 +30,7 @@
#{execSql,jdbcType=VARCHAR}, #{describe,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.DicInd">
update LL.DIC_IND
update DIC_IND
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
......@@ -44,18 +44,18 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, IND_CODE, IND_NAME, COMPUTE_MODE, EXEC_SQL,
DESCRIBE
from LL.DIC_IND
from DIC_IND
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, IND_CODE, IND_NAME, COMPUTE_MODE, EXEC_SQL,
DESCRIBE
from LL.DIC_IND
from DIC_IND
</select>
<select id="selectAllByFilter" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, IND_CODE, IND_NAME,IND_FIELD, COMPUTE_MODE, EXEC_SQL,
DESCRIBE
from LL.DIC_IND
from DIC_IND
where IND_NAME LIKE '%'||#{filter,jdbcType=VARCHAR}||'%'
</select>
</mapper>
\ No newline at end of file
......@@ -14,14 +14,14 @@
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.DIC_ORG
delete from DIC_ORG
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.DicOrg">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_DIC_ORG_ID.nextval from dual
</selectKey>
insert into LL.DIC_ORG (CREATE_DATE, CREATE_USERID, STATE,
insert into DIC_ORG (CREATE_DATE, CREATE_USERID, STATE,
ORG_CODE, ORG_NAME, ORG_NO,
ORG_SHORT_NAME, ORG_GROUP, ORG_TYPE,
ORG_ADDRESS, PARENT_ID)
......@@ -34,7 +34,7 @@
#{orgAddress,jdbcType=VARCHAR}, #{parentId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.DicOrg">
update LL.DIC_ORG
update DIC_ORG
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
......@@ -51,13 +51,13 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
ORG_GROUP, ORG_TYPE, ORG_ADDRESS, PARENT_ID
from LL.DIC_ORG
from DIC_ORG
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
ORG_GROUP, ORG_TYPE, ORG_ADDRESS, PARENT_ID
from LL.DIC_ORG
from DIC_ORG
</select>
<select id="selectByUser" resultMap="BaseResultMap">
SELECT o.*
......
......@@ -11,14 +11,14 @@
<result column="RETURN_TYPE" jdbcType="DECIMAL" property="returnType" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SER_BLOCK
delete from SER_BLOCK
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerBlock">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SER_BLOCK_ID.nextval from dual
</selectKey>
insert into LL.SER_BLOCK (CREATE_DATE, CREATE_USERID, STATE,
insert into SER_BLOCK (CREATE_DATE, CREATE_USERID, STATE,
BLOCK_CODE, BLOCK_NAME, RETURN_TYPE
)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
......@@ -26,7 +26,7 @@
)
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerBlock">
update LL.SER_BLOCK
update SER_BLOCK
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
......@@ -37,11 +37,11 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, BLOCK_CODE, BLOCK_NAME, RETURN_TYPE
from LL.SER_BLOCK
from SER_BLOCK
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, BLOCK_CODE, BLOCK_NAME, RETURN_TYPE
from LL.SER_BLOCK
from SER_BLOCK
</select>
</mapper>
\ No newline at end of file
......@@ -10,20 +10,20 @@
<result column="DIM_ID" jdbcType="DECIMAL" property="dimId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
delete from LL.SER_DIM_VALUE
delete from SER_DIM_VALUE
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerDimValue">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_DIM_VALUE_ID.nextval from dual
</selectKey>
insert into LL.SER_DIM_VALUE (ORG_ID, ITEM_NAME, ITEM_VALUE,
insert into SER_DIM_VALUE (ORG_ID, ITEM_NAME, ITEM_VALUE,
"DATE", DIM_ID)
values (#{orgId,jdbcType=DECIMAL}, #{itemName,jdbcType=VARCHAR}, #{itemValue,jdbcType=VARCHAR},
#{date,jdbcType=DECIMAL}, #{dimId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerDimValue">
update LL.SER_DIM_VALUE
update SER_DIM_VALUE
set ORG_ID = #{orgId,jdbcType=DECIMAL},
ITEM_NAME = #{itemName,jdbcType=VARCHAR},
ITEM_VALUE = #{itemValue,jdbcType=VARCHAR},
......@@ -33,12 +33,12 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
select ID, ORG_ID, ITEM_NAME, ITEM_VALUE, "DATE", DIM_ID
from LL.SER_DIM_VALUE
from SER_DIM_VALUE
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, ORG_ID, ITEM_NAME, ITEM_VALUE, "DATE", DIM_ID
from LL.SER_DIM_VALUE
from SER_DIM_VALUE
</select>
<select id="selectByDimId" resultMap="BaseResultMap">
SELECT dv.*
......
......@@ -13,14 +13,14 @@
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
delete from LL.SER_DISEASE_DOC_RS
delete from SER_DISEASE_DOC_RS
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerDiseaseDocRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_DISEASE_DOC_RS_ID.nextval from dual
</selectKey>
insert into LL.SER_DISEASE_DOC_RS (ORG_ID, DOC_CODE, DOC_NAME,
insert into SER_DISEASE_DOC_RS (ORG_ID, DOC_CODE, DOC_NAME,
MDC_CODE, "DATE", DEPT_CODE,
DEPT_NAME)
values (#{orgId,jdbcType=DECIMAL}, #{docCode,jdbcType=VARCHAR}, #{docName,jdbcType=VARCHAR},
......@@ -28,7 +28,7 @@
#{deptName,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerDiseaseDocRs">
update LL.SER_DISEASE_DOC_RS
update SER_DISEASE_DOC_RS
set ORG_ID = #{orgId,jdbcType=DECIMAL},
DOC_CODE = #{docCode,jdbcType=VARCHAR},
DOC_NAME = #{docName,jdbcType=VARCHAR},
......@@ -40,16 +40,16 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
select ID, ORG_ID, DOC_CODE, DOC_NAME, MDC_CODE, "DATE", DEPT_CODE, DEPT_NAME
from LL.SER_DISEASE_DOC_RS
from SER_DISEASE_DOC_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, ORG_ID, DOC_CODE, DOC_NAME, MDC_CODE, "DATE", DEPT_CODE, DEPT_NAME
from LL.SER_DISEASE_DOC_RS
from SER_DISEASE_DOC_RS
</select>
<select id="selectByCode" resultMap="BaseResultMap">
select ID, ORG_ID, DOC_CODE, DOC_NAME, MDC_CODE, "DATE", DEPT_CODE, DEPT_NAME
from LL.SER_DISEASE_DOC_RS
from SER_DISEASE_DOC_RS
where 1=1
<if test="docCode!=null">
and DOC_CODE = #{docCode,jdbcType=VARCHAR}
......
......@@ -25,14 +25,14 @@
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
delete from LL.SER_DISEASE
delete from SER_DISEASE
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerDisease">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_DISEASE_ID.nextval from dual
</selectKey>
insert into LL.SER_DISEASE (
insert into SER_DISEASE (
MDC_CODE, MDC_NAME, DATE,
MDC_NUM, PARENT_ID, LEVEL,
ORG_ID, ORG_NAME)
......@@ -42,7 +42,7 @@
#{orgId,jdbcType=DECIMAL}, #{orgName,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerDisease">
update LL.SER_DISEASE
update SER_DISEASE
set
MDC_CODE = #{mdcCode,jdbcType=VARCHAR},
MDC_NAME = #{mdcName,jdbcType=VARCHAR},
......@@ -57,24 +57,24 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, MDC_CODE, MDC_NAME, "DATE", MDC_NUM,
PARENT_ID, "LEVEL", ORG_ID, ORG_NAME
from LL.SER_DISEASE
from SER_DISEASE
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectByCode" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, MDC_CODE, MDC_NAME, "DATE", MDC_NUM,
PARENT_ID, "LEVEL", ORG_ID, ORG_NAME
from LL.SER_DISEASE
from SER_DISEASE
where MDC_CODE = #{code,jdbcType=VARCHAR} and "DATE" = #{date,jdbcType=VARCHAR}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, MDC_CODE, MDC_NAME, DATE, MDC_NUM,
PARENT_ID, LEVEL, ORG_ID, ORG_NAME
from LL.SER_DISEASE
from SER_DISEASE
</select>
<select id="selectByMdcName" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, MDC_CODE, MDC_NAME, "DATE", MDC_NUM,
PARENT_ID,"LEVEL", ORG_ID, ORG_NAME
from LL.SER_DISEASE
from SER_DISEASE
where 1 = 1 and STATE=1
<if test="date!=null">
and "DATE" = #{date,jdbcType=VARCHAR}
......@@ -86,7 +86,7 @@
<select id="selectByLevel" resultMap="DiseaseLevel">
select ID, CREATE_DATE, CREATE_USERID, STATE, MDC_CODE, MDC_NAME, "DATE", MDC_NUM,
PARENT_ID,"LEVEL", ORG_ID, ORG_NAME
from LL.SER_DISEASE
from SER_DISEASE
where 1 = 1 and STATE=1
<if test="date!=null">
and "DATE" = #{date,jdbcType=VARCHAR}
......@@ -98,7 +98,7 @@
<select id="selectByParentId" resultMap="DiseaseLevel">
select ID, CREATE_DATE, CREATE_USERID, STATE, MDC_CODE, MDC_NAME, "DATE", MDC_NUM,
PARENT_ID,"LEVEL", ORG_ID, ORG_NAME
from LL.SER_DISEASE
from SER_DISEASE
where 1 = 1 and STATE=1
<if test="date!=null">
and "DATE" = #{date,jdbcType=VARCHAR}
......
......@@ -10,20 +10,20 @@
<result column="PAGE_ID" jdbcType="DECIMAL" property="pageId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SER_PAGE_BLOCK_RS
delete from SER_PAGE_BLOCK_RS
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerPageBlockRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SER_PAGE_BLOCK_RS_ID.nextval from dual
</selectKey>
insert into LL.SER_PAGE_BLOCK_RS (CREATE_DATE, CREATE_USERID, STATE,
insert into SER_PAGE_BLOCK_RS (CREATE_DATE, CREATE_USERID, STATE,
BLOCK_ID, PAGE_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{blockId,jdbcType=DECIMAL}, #{pageId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerPageBlockRs">
update LL.SER_PAGE_BLOCK_RS
update SER_PAGE_BLOCK_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
......@@ -33,16 +33,16 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, BLOCK_ID, PAGE_ID
from LL.SER_PAGE_BLOCK_RS
from SER_PAGE_BLOCK_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, BLOCK_ID, PAGE_ID
from LL.SER_PAGE_BLOCK_RS
from SER_PAGE_BLOCK_RS
</select>
<select id="selectByPageId" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, BLOCK_ID, PAGE_ID
from LL.SER_PAGE_BLOCK_RS
from SER_PAGE_BLOCK_RS
where PAGE_ID=#{pageID,jdbcType=DECIMAL}
</select>
</mapper>
\ No newline at end of file
......@@ -10,20 +10,20 @@
<result column="PAGE_ID" jdbcType="DECIMAL" property="pageId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SER_PAGE_DIM_RS
delete from SER_PAGE_DIM_RS
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerPageDimRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SER_PAGE_DIM_RS_ID.nextval from dual
</selectKey>
insert into LL.SER_PAGE_DIM_RS (CREATE_DATE, CREATE_USERID, STATE,
insert into SER_PAGE_DIM_RS (CREATE_DATE, CREATE_USERID, STATE,
DIM_ID, PAGE_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{dimId,jdbcType=DECIMAL}, #{pageId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerPageDimRs">
update LL.SER_PAGE_DIM_RS
update SER_PAGE_DIM_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
......@@ -33,11 +33,11 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, DIM_ID, PAGE_ID
from LL.SER_PAGE_DIM_RS
from SER_PAGE_DIM_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, DIM_ID, PAGE_ID
from LL.SER_PAGE_DIM_RS
from SER_PAGE_DIM_RS
</select>
</mapper>
\ No newline at end of file
......@@ -10,20 +10,20 @@
<result column="PAGE_NAME" jdbcType="VARCHAR" property="pageName"/>
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SER_PAGE
delete from SER_PAGE
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerPage">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SER_PAGE_ID.nextval from dual
</selectKey>
insert into LL.SER_PAGE (CREATE_DATE, CREATE_USERID, STATE,
insert into SER_PAGE (CREATE_DATE, CREATE_USERID, STATE,
PAGE_CODE, PAGE_NAME)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{pageCode,jdbcType=VARCHAR}, #{pageName,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerPage">
update LL.SER_PAGE
update SER_PAGE
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
......@@ -33,12 +33,12 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, PAGE_CODE, PAGE_NAME
from LL.SER_PAGE
from SER_PAGE
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, PAGE_CODE, PAGE_NAME
from LL.SER_PAGE
from SER_PAGE
</select>
<select id="selectByCodeAndDim" resultMap="BaseResultMap">
select d.* from SER_PAGE d,
......
......@@ -10,14 +10,14 @@
</resultMap>
<resultMap id="sysMenuResultMap" type="com.bsoft.api.model.respmodel.SysMenuList" extends="BaseResultMap"/>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SYS_MENU
delete from SYS_MENU
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_MENU_ID.nextval from dual
</selectKey>
insert into LL.SYS_MENU (
insert into SYS_MENU (
MENU_NAME, MENU_URL, MENU_IMAGE,
PARENT_ID)
values (
......@@ -27,7 +27,7 @@
#{parentId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysMenu">
update LL.SYS_MENU
update SYS_MENU
set
MENU_NAME = #{menuName,jdbcType=VARCHAR},
MENU_URL = #{menuUrl,jdbcType=VARCHAR},
......@@ -37,12 +37,12 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID,MENU_NAME, MENU_URL, MENU_IMAGE, PARENT_ID
from LL.SYS_MENU
from SYS_MENU
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID,MENU_NAME, MENU_URL, MENU_IMAGE, PARENT_ID
from LL.SYS_MENU
from SYS_MENU
</select>
<select id="selectMenuByUser" resultMap="sysMenuResultMap">
select DISTINCT m.ID,m.MENU_NAME,m.MENU_URL,m.MENU_IMAGE,m.PARENT_ID
......
......@@ -16,14 +16,14 @@
<result column="PARENT_ID" jdbcType="DECIMAL" property="parentId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SYS_ORG
delete from SYS_ORG
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysOrg">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_ORG_ID.nextval from dual
</selectKey>
insert into LL.SYS_ORG (CREATE_DATA, CREATE_USERID, STATE,
insert into SYS_ORG (CREATE_DATA, CREATE_USERID, STATE,
ORG_CODE, ORG_NAME, ORG_NO,
ORG_SHORT_NAME, ORG_GROUP, ORG_TYPE,
ORG_ADDRESS, PARENT_ID)
......@@ -33,7 +33,7 @@
#{orgAddress,jdbcType=VARCHAR}, #{parentId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysOrg">
update LL.SYS_ORG
update SYS_ORG
set CREATE_DATA = #{createData,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=VARCHAR},
STATE = #{state,jdbcType=DECIMAL},
......@@ -50,12 +50,12 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATA, CREATE_USERID, STATE, ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
ORG_GROUP, ORG_TYPE, ORG_ADDRESS, PARENT_ID
from LL.SYS_ORG
from SYS_ORG
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATA, CREATE_USERID, STATE, ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
ORG_GROUP, ORG_TYPE, ORG_ADDRESS, PARENT_ID
from LL.SYS_ORG
from SYS_ORG
</select>
</mapper>
\ No newline at end of file
......@@ -10,20 +10,20 @@
<result column="PROJECT_NAME" jdbcType="VARCHAR" property="projectName" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SYS_PROJECT
delete from SYS_PROJECT
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysProject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_PROJECT_ID.nextval from dual
</selectKey>
insert into LL.SYS_PROJECT (CREATE_DATE, CREATE_USERID, STATE,
insert into SYS_PROJECT (CREATE_DATE, CREATE_USERID, STATE,
PROJECT_CODE, PROJECT_NAME)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{projectCode,jdbcType=VARCHAR}, #{projectName,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysProject">
update LL.SYS_PROJECT
update SYS_PROJECT
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
......@@ -33,11 +33,11 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, PROJECT_CODE, PROJECT_NAME
from LL.SYS_PROJECT
from SYS_PROJECT
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, PROJECT_CODE, PROJECT_NAME
from LL.SYS_PROJECT
from SYS_PROJECT
</select>
</mapper>
\ No newline at end of file
......@@ -10,20 +10,20 @@
<result column="ROLE_CODE" jdbcType="DECIMAL" property="roleCode" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SYS_ROLE
delete from SYS_ROLE
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysRole">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_ROLE_ID.nextval from dual
</selectKey>
insert into LL.SYS_ROLE (CREATE_DATE, CREATE_USERID, STATE,
insert into SYS_ROLE (CREATE_DATE, CREATE_USERID, STATE,
ROLE_NAME, ROLE_CODE)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{roleName,jdbcType=VARCHAR}, #{roleCode,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysRole">
update LL.SYS_ROLE
update SYS_ROLE
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
......@@ -33,11 +33,11 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, ROLE_NAME, ROLE_CODE
from LL.SYS_ROLE
from SYS_ROLE
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, ROLE_NAME, ROLE_CODE
from LL.SYS_ROLE
from SYS_ROLE
</select>
</mapper>
\ No newline at end of file
......@@ -10,20 +10,20 @@
<result column="ROLE_ID" jdbcType="DECIMAL" property="roleId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SYS_ROLE_MENU_RS
delete from SYS_ROLE_MENU_RS
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysRoleMenuRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_ROLE_MENU_RS_ID.nextval from dual
</selectKey>
insert into LL.SYS_ROLE_MENU_RS (CREATE_DATE, CREATE_USERID, STATE,
insert into SYS_ROLE_MENU_RS (CREATE_DATE, CREATE_USERID, STATE,
MENU_ID, ROLE_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{menuId,jdbcType=DECIMAL}, #{roleId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysRoleMenuRs">
update LL.SYS_ROLE_MENU_RS
update SYS_ROLE_MENU_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
......@@ -33,11 +33,11 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, MENU_ID, ROLE_ID
from LL.SYS_ROLE_MENU_RS
from SYS_ROLE_MENU_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, MENU_ID, ROLE_ID
from LL.SYS_ROLE_MENU_RS
from SYS_ROLE_MENU_RS
</select>
</mapper>
\ No newline at end of file
......@@ -19,14 +19,14 @@
<result column="LAST_IP" jdbcType="VARCHAR" property="lastIp"/>
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SYS_USER
delete from SYS_USER
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysUser">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_USER_ID.nextval from dual
</selectKey>
insert into LL.SYS_USER (
insert into SYS_USER (
USER_CODE, USER_NAME, PASSWORD,
IDCARD, SEX, MOBILE,
PAGE_COUNT, ERROR_COUNT, ERROR_TIME,
......@@ -38,7 +38,7 @@
#{lastTime,jdbcType=TIMESTAMP}, #{lastIp,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysUser">
update LL.SYS_USER
update SYS_USER
set
USER_CODE = #{userCode,jdbcType=VARCHAR},
USER_NAME = #{userName,jdbcType=VARCHAR},
......@@ -56,18 +56,18 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_CODE, USER_NAME, PASSWORD, IDCARD,
SEX, MOBILE, PAGE_COUNT, ERROR_COUNT, ERROR_TIME, LAST_TIME, LAST_IP
from LL.SYS_USER
from SYS_USER
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_CODE, USER_NAME, PASSWORD, IDCARD,
SEX, MOBILE, PAGE_COUNT, ERROR_COUNT, ERROR_TIME, LAST_TIME, LAST_IP
from LL.SYS_USER
from SYS_USER
</select>
<select id="selectByCode" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_CODE, USER_NAME, PASSWORD, IDCARD,
SEX, MOBILE, PAGE_COUNT, ERROR_COUNT, ERROR_TIME, LAST_TIME, LAST_IP
from LL.SYS_USER
from SYS_USER
where USER_CODE=#{userCode,jdbcType=VARCHAR}
and STATE != 0
</select>
......
......@@ -10,20 +10,20 @@
<result column="MENU_ID" jdbcType="DECIMAL" property="menuId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SYS_USER_MENU_RS
delete from SYS_USER_MENU_RS
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysUserMenuRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_USER_MENU_RS_ID.nextval from dual
</selectKey>
insert into LL.SYS_USER_MENU_RS (CREATE_DATE, CREATE_USERID, STATE,
insert into SYS_USER_MENU_RS (CREATE_DATE, CREATE_USERID, STATE,
USER_ID, MENU_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{userId,jdbcType=DECIMAL}, #{menuId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysUserMenuRs">
update LL.SYS_USER_MENU_RS
update SYS_USER_MENU_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
......@@ -33,11 +33,11 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_ID, MENU_ID
from LL.SYS_USER_MENU_RS
from SYS_USER_MENU_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_ID, MENU_ID
from LL.SYS_USER_MENU_RS
from SYS_USER_MENU_RS
</select>
</mapper>
\ No newline at end of file
......@@ -10,20 +10,20 @@
<result column="ORG_ID" jdbcType="DECIMAL" property="orgId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SYS_USER_ORG_RS
delete from SYS_USER_ORG_RS
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysUserOrgRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_USER_ORG_RS_ID.nextval from dual
</selectKey>
insert into LL.SYS_USER_ORG_RS (CREATE_DATE, CREATE_USERID, STATE,
insert into SYS_USER_ORG_RS (CREATE_DATE, CREATE_USERID, STATE,
USER_ID, ORG_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{userId,jdbcType=DECIMAL}, #{orgId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysUserOrgRs">
update LL.SYS_USER_ORG_RS
update SYS_USER_ORG_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
......@@ -33,11 +33,11 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_ID, ORG_ID
from LL.SYS_USER_ORG_RS
from SYS_USER_ORG_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_ID, ORG_ID
from LL.SYS_USER_ORG_RS
from SYS_USER_ORG_RS
</select>
</mapper>
\ No newline at end of file
......@@ -7,20 +7,20 @@
<result column="ROLE_ID" jdbcType="DECIMAL" property="roleId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from LL.SYS_USER_ROLE_RS
delete from SYS_USER_ROLE_RS
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysUserRoleRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_USER_ROLE_RS_ID.nextval from dual
</selectKey>
insert into LL.SYS_USER_ROLE_RS (
insert into SYS_USER_ROLE_RS (
USER_ID, ROLE_ID)
values (
#{userId,jdbcType=DECIMAL}, #{roleId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysUserRoleRs">
update LL.SYS_USER_ROLE_RS
update SYS_USER_ROLE_RS
set
USER_ID = #{userId,jdbcType=DECIMAL},
ROLE_ID = #{roleId,jdbcType=DECIMAL}
......@@ -28,16 +28,16 @@
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID,USER_ID, ROLE_ID
from LL.SYS_USER_ROLE_RS
from SYS_USER_ROLE_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID,USER_ID, ROLE_ID
from LL.SYS_USER_ROLE_RS
from SYS_USER_ROLE_RS
</select>
<select id="selectRoleByUser" resultMap="BaseResultMap">
select ID,USER_ID, ROLE_ID
from LL.SYS_USER_ROLE_RS
from SYS_USER_ROLE_RS
where USER_ID=#{userId,jdbcType=DECIMAL}
</select>
</mapper>
\ No newline at end of file
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