Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
02e7ef6d
提交
02e7ef6d
authored
12月 21, 2020
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
属性管理
上级
accbb39e
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
27 行增加
和
2 行删除
+27
-2
AttributesEntity.java
...n/src/main/java/com/platform/entity/AttributesEntity.java
+18
-1
AttributesDao.xml
...min/src/main/resources/com/platform/dao/AttributesDao.xml
+9
-1
没有找到文件。
platform-admin/src/main/java/com/platform/entity/AttributesEntity.java
浏览文件 @
02e7ef6d
...
...
@@ -8,7 +8,7 @@ import java.util.Date;
* 表名 attributes
*
* @author lipengjun
* @date 2020-12-
18 15:16:22
* @date 2020-12-
21 15:33:05
*/
public
class
AttributesEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -33,6 +33,10 @@ public class AttributesEntity implements Serializable {
* 排序
*/
private
Integer
sort
;
/**
* 是否必须 0:否 1:是
*/
private
Integer
isNeed
;
/**
* 创建时间
*/
...
...
@@ -107,6 +111,19 @@ public class AttributesEntity implements Serializable {
public
Integer
getSort
()
{
return
sort
;
}
/**
* 设置:是否必须 0:否 1:是
*/
public
void
setIsNeed
(
Integer
isNeed
)
{
this
.
isNeed
=
isNeed
;
}
/**
* 获取:是否必须 0:否 1:是
*/
public
Integer
getIsNeed
()
{
return
isNeed
;
}
/**
* 设置:创建时间
*/
...
...
platform-admin/src/main/resources/com/platform/dao/AttributesDao.xml
浏览文件 @
02e7ef6d
...
...
@@ -9,7 +9,8 @@
<result
property=
"attrDesc"
column=
"attr_desc"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"sort"
column=
"sort"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"isNeed"
column=
"is_need"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
...
...
@@ -20,6 +21,7 @@
`attr_desc`,
`status`,
`sort`,
`is_need`,
`create_time`,
`update_time`
from attributes
...
...
@@ -33,6 +35,7 @@
`attr_desc`,
`status`,
`sort`,
`is_need`,
`create_time`,
`update_time`
from attributes
...
...
@@ -68,6 +71,7 @@
`attr_desc`,
`status`,
`sort`,
`is_need`,
`create_time`,
`update_time`)
values(
...
...
@@ -76,6 +80,7 @@
#{attrDesc},
#{status},
#{sort},
#{isNeed},
#{createTime},
#{updateTime})
</insert>
...
...
@@ -87,12 +92,15 @@
<if
test=
"attrDesc != null"
>
`attr_desc` = #{attrDesc},
</if>
<if
test=
"status != null"
>
`status` = #{status},
</if>
<if
test=
"sort != null"
>
`sort` = #{sort},
</if>
<if
test=
"isNeed != null"
>
`is_need` = #{isNeed},
</if>
<if
test=
"createTime != null"
>
`create_time` = #{createTime},
</if>
<if
test=
"updateTime != null"
>
`update_time` = #{updateTime}
</if>
</set>
where id = #{id}
</update>
<delete
id=
"delete"
>
delete from attributes where id = #{value}
</delete>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论