- 后端:重构 oauth2 模块,方便后续 User 接入。
- 后端:重写 Admin 安全拦截器,实现类似 Shiro 的效果。
This commit is contained in:
@@ -29,21 +29,6 @@
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectById" resultType="DataDictDO">
|
||||
SELECT
|
||||
<include refid="FIELDS"/>
|
||||
FROM data_dict
|
||||
WHERE id = #{id}
|
||||
AND deleted = 0
|
||||
</select>
|
||||
|
||||
<select id="selectList" resultType="DataDictDO">
|
||||
SELECT
|
||||
<include refid="FIELDS"/>
|
||||
FROM data_dict
|
||||
WHERE deleted = 0
|
||||
</select>
|
||||
<select id="selectByEnumValue" resultType="cn.iocoder.mall.admin.dataobject.DataDictDO">
|
||||
SELECT
|
||||
<include refid="FIELDS"/>
|
||||
@@ -52,39 +37,4 @@
|
||||
AND enum_value = #{enumValue}
|
||||
</select>
|
||||
|
||||
<insert id="insert" parameterType="DataDictDO" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
||||
INSERT INTO data_dict (
|
||||
id, enum_value, value, display_name, sort,
|
||||
memo, create_time, deleted
|
||||
) VALUES (
|
||||
#{id}, #{enumValue}, #{value}, #{displayName}, #{sort},
|
||||
#{memo}, #{createTime}, #{deleted}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="update" parameterType="DataDictDO">
|
||||
UPDATE data_dict
|
||||
<set>
|
||||
<if test="enumValue != null">
|
||||
enum_value = #{enumValue},
|
||||
</if>
|
||||
<if test="value != null">
|
||||
value = #{value},
|
||||
</if>
|
||||
<if test="displayName != null">
|
||||
display_name = #{displayName},
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
sort = #{sort},
|
||||
</if>
|
||||
<if test="memo != null">
|
||||
memo = #{memo},
|
||||
</if>
|
||||
<if test="deleted != null">
|
||||
deleted = #{deleted}
|
||||
</if>
|
||||
</set>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user