|
@@ -6,10 +6,12 @@
|
|
|
<result column="NAME" property="name" jdbcType="VARCHAR" />
|
|
|
<result column="CODE" property="code" jdbcType="VARCHAR" />
|
|
|
<result column="REMARK" property="remark" jdbcType="VARCHAR" />
|
|
|
- <result column="CREATE_TIME" property="createTime" jdbcType="OTHER" />
|
|
|
- <result column="UPDATE_TIME" property="updateTime" jdbcType="OTHER" />
|
|
|
+ <result column="CREATE_TIME" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="UPDATE_TIME" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="STATE" property="state" jdbcType="CHAR" />
|
|
|
<result column="SORTNO" property="sortno" jdbcType="DECIMAL" />
|
|
|
+ <result column="CREATE_USER" jdbcType="VARCHAR" property="createUser" />
|
|
|
+ <result column="UPDATE_USER" jdbcType="VARCHAR" property="updateUser" />
|
|
|
</resultMap>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
delete from AQ_BASIC_FRAME_ROLE
|
|
@@ -18,33 +20,35 @@
|
|
|
<insert id="insert" parameterType="com.xt.js.gkaq.frame.model.RoleModel" >
|
|
|
insert into AQ_BASIC_FRAME_ROLE (ID, NAME, CODE,
|
|
|
REMARK, CREATE_TIME, UPDATE_TIME,
|
|
|
- STATE, SORTNO)
|
|
|
+ STATE, SORTNO,CREATE_USER,UPDATE_USER)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
|
|
|
- #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=OTHER}, #{updateTime,jdbcType=OTHER},
|
|
|
- #{state,jdbcType=CHAR}, #{sortno,jdbcType=DECIMAL})
|
|
|
+ #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{state,jdbcType=CHAR}, #{sortno,jdbcType=DECIMAL},#{createUser,jdbcType=VARCHAR},#{updateUser,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.RoleModel" >
|
|
|
update AQ_BASIC_FRAME_ROLE
|
|
|
set NAME = #{name,jdbcType=VARCHAR},
|
|
|
CODE = #{code,jdbcType=VARCHAR},
|
|
|
REMARK = #{remark,jdbcType=VARCHAR},
|
|
|
- CREATE_TIME = #{createTime,jdbcType=OTHER},
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=OTHER},
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
STATE = #{state,jdbcType=CHAR},
|
|
|
- SORTNO = #{sortno,jdbcType=DECIMAL}
|
|
|
+ SORTNO = #{sortno,jdbcType=DECIMAL},
|
|
|
+ CREATE_USER= #{createUser,jdbcType=VARCHAR},
|
|
|
+ UPDATE_USER= #{updateUser,jdbcType=VARCHAR}
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
- select ID, NAME, CODE, REMARK, CREATE_TIME, UPDATE_TIME, STATE, SORTNO
|
|
|
+ select ID, NAME, CODE, REMARK, CREATE_TIME, UPDATE_TIME, STATE, SORTNO, CREATE_USER, UPDATE_USER
|
|
|
from AQ_BASIC_FRAME_ROLE
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<select id="selectAll" resultMap="BaseResultMap" >
|
|
|
- select ID, NAME, CODE, REMARK, CREATE_TIME, UPDATE_TIME, STATE, SORTNO
|
|
|
+ select ID, NAME, CODE, REMARK, CREATE_TIME, UPDATE_TIME, STATE, SORTNO, CREATE_USER, UPDATE_USER
|
|
|
from AQ_BASIC_FRAME_ROLE
|
|
|
</select>
|
|
|
<select id="selectByUserId" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
- SELECT R.ID, R.NAME, R.CODE, R.REMARK, R.CREATE_TIME, R.UPDATE_TIME, R.STATE, R.SORTNO
|
|
|
+ SELECT R.ID, R.NAME, R.CODE, R.REMARK, R.CREATE_TIME, R.UPDATE_TIME, R.STATE, R.SORTNO,R.CREATE_USER, R.UPDATE_USER
|
|
|
FROM AQ_BASIC_FRAME_ROLE R
|
|
|
WHERE EXISTS(
|
|
|
SELECT 1
|