Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-module-system
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-module-system
Commits
b47fc457
提交
b47fc457
authored
11月 11, 2024
作者:
李秋林
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sys_dict字典类表添加创建人修改人id
上级
b9b2607c
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
8 行增加
和
0 行删除
+8
-0
SysDictDataController.java
...om/sfa/system/controller/query/SysDictDataController.java
+2
-0
SysDictDataMapper.xml
src/main/resources/mapper/system/SysDictDataMapper.xml
+3
-0
SysDictTypeMapper.xml
src/main/resources/mapper/system/SysDictTypeMapper.xml
+3
-0
没有找到文件。
src/main/java/com/sfa/system/controller/query/SysDictDataController.java
浏览文件 @
b47fc457
...
...
@@ -85,6 +85,7 @@ public class SysDictDataController extends BaseController
public
AjaxResult
add
(
@Validated
@RequestBody
SysDictData
dict
)
{
dict
.
setCreateBy
(
SecurityUtils
.
getUsername
());
dict
.
setCreateUserId
(
SecurityUtils
.
getUserId
());
return
toAjax
(
dictDataDao
.
insertDictData
(
dict
));
}
...
...
@@ -97,6 +98,7 @@ public class SysDictDataController extends BaseController
public
AjaxResult
edit
(
@Validated
@RequestBody
SysDictData
dict
)
{
dict
.
setUpdateBy
(
SecurityUtils
.
getUsername
());
dict
.
setUpdateUserId
(
SecurityUtils
.
getUserId
());
return
toAjax
(
dictDataDao
.
updateDictData
(
dict
));
}
...
...
src/main/resources/mapper/system/SysDictDataMapper.xml
浏览文件 @
b47fc457
...
...
@@ -84,6 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"status != null"
>
status = #{status},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"updateBy != null and updateBy != ''"
>
update_by = #{updateBy},
</if>
<if
test=
"updateUserId != null"
>
update_user_id = #{updateUserId},
</if>
update_time = sysdate()
</set>
where dict_code = #{dictCode}
...
...
@@ -105,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"status != null"
>
status,
</if>
<if
test=
"remark != null and remark != ''"
>
remark,
</if>
<if
test=
"createBy != null and createBy != ''"
>
create_by,
</if>
<if
test=
"createUserId != null"
>
create_user_id,
</if>
create_time
)values(
<if
test=
"dictSort != null"
>
#{dictSort},
</if>
...
...
@@ -117,6 +119,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"status != null"
>
#{status},
</if>
<if
test=
"remark != null and remark != ''"
>
#{remark},
</if>
<if
test=
"createBy != null and createBy != ''"
>
#{createBy},
</if>
<if
test=
"createUserId != null"
>
#{createUserId},
</if>
sysdate()
)
</insert>
...
...
src/main/resources/mapper/system/SysDictTypeMapper.xml
浏览文件 @
b47fc457
...
...
@@ -73,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"status != null"
>
status = #{status},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"updateBy != null and updateBy != ''"
>
update_by = #{updateBy},
</if>
<if
test=
"updateUserId != null "
>
update_user_id = #{updateUserId},
</if>
update_time = sysdate()
</set>
where dict_id = #{dictId}
...
...
@@ -85,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"status != null"
>
status,
</if>
<if
test=
"remark != null and remark != ''"
>
remark,
</if>
<if
test=
"createBy != null and createBy != ''"
>
create_by,
</if>
<if
test=
"createUserId != null"
>
create_user_id,
</if>
create_time
)values(
<if
test=
"dictName != null and dictName != ''"
>
#{dictName},
</if>
...
...
@@ -92,6 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"status != null"
>
#{status},
</if>
<if
test=
"remark != null and remark != ''"
>
#{remark},
</if>
<if
test=
"createBy != null and createBy != ''"
>
#{createBy},
</if>
<if
test=
"createUserId != null"
>
#{createUserId},
</if>
sysdate()
)
</insert>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论