|
|
@@ -18,9 +18,9 @@
|
|
|
<result column="remarks" property="remarks"/>
|
|
|
<result column="flg_valid" property="flgValid"/>
|
|
|
<result column="op_create_time" property="opCreateTime" typeHandler="TimestampTypeHandler"/>
|
|
|
- <result column="op_create_user_id" property="opCreateUserId"/>
|
|
|
+ <result column="op_create_user_id" property="opCreateUserId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="op_update_time" property="opUpdateTime" typeHandler="TimestampTypeHandler"/>
|
|
|
- <result column="op_update_user_id" property="opUpdateUserId"/>
|
|
|
+ <result column="op_update_user_id" property="opUpdateUserId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="op_app_code" property="opAppCode"/>
|
|
|
<result column="op_timestamp" property="opTimestamp" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="op_db_user" property="opDbUser"/>
|
|
|
@@ -81,7 +81,7 @@
|
|
|
<select id="selectByCond" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
- FROM dkic_m.t_mst_role
|
|
|
+ FROM dkic_b.t_mst_role
|
|
|
<include refid="Condition"/>
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
limit #{end} offset #{start}
|
|
|
@@ -92,17 +92,17 @@
|
|
|
<select id="countByCond" resultType="Long">
|
|
|
SELECT
|
|
|
count(1)
|
|
|
- FROM dkic_m.t_mst_role
|
|
|
+ FROM dkic_b.t_mst_role
|
|
|
<include refid="Condition"/>
|
|
|
</select>
|
|
|
|
|
|
<!--编码是否重复-->
|
|
|
<select id="selectByCode" resultType="Long">
|
|
|
select count(1)
|
|
|
- from dkic_m.t_mst_role
|
|
|
+ from dkic_b.t_mst_role
|
|
|
where #{roleCode} = role_code
|
|
|
<if test="roleId != null">
|
|
|
- and role_id != #{roleId}
|
|
|
+ and role_id != #{roleId} ::uuid
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
@@ -110,50 +110,7 @@
|
|
|
<select id="selectById" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
- FROM dkic_m.t_mst_role
|
|
|
+ FROM dkic_b.t_mst_role
|
|
|
WHERE role_id = #{roleId}::uuid
|
|
|
</select>
|
|
|
-
|
|
|
- <!-- 根据主键锁定表t_mst_role的一行数据 -->
|
|
|
- <select id="selectByIdForUpdate" resultMap="BaseResultMap">
|
|
|
- SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
- FROM t_mst_role
|
|
|
- WHERE role_id = #{roleId}
|
|
|
- for update
|
|
|
- </select>
|
|
|
-
|
|
|
- <!-- 根据主键锁定表t_mst_role的多行数据 -->
|
|
|
- <select id="selectByIdsForUpdate" resultMap="BaseResultMap">
|
|
|
- SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
- FROM t_mst_role
|
|
|
- <include refid="idsForeach"/>
|
|
|
- for update
|
|
|
- </select>
|
|
|
-
|
|
|
- <insert id="insertBatch">
|
|
|
- insert into t_mst_role
|
|
|
- (
|
|
|
- <trim suffixOverrides=",">
|
|
|
- role_name,
|
|
|
- display_no,
|
|
|
- remarks,
|
|
|
- op_app_code,
|
|
|
- flg_nolimit_fun,
|
|
|
- </trim>
|
|
|
- )
|
|
|
- values
|
|
|
- <foreach collection="list" index="index" item="item" separator=",">
|
|
|
- (
|
|
|
- <trim suffixOverrides=",">
|
|
|
- #{item.roleName},
|
|
|
- #{item.displayNo},
|
|
|
- #{item.remarks},
|
|
|
- #{item.opAppCode},
|
|
|
- #{item.flgNolimitFun},
|
|
|
- </trim>
|
|
|
- )
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
</mapper>
|