Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
73b49f78
提交
73b49f78
authored
2月 05, 2021
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
海报临时更改
上级
191d8281
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
73 行增加
和
57 行删除
+73
-57
TbCfPostersEntity.java
.../src/main/java/com/platform/entity/TbCfPostersEntity.java
+11
-0
TbCfPostersDao.xml
...in/src/main/resources/com/platform/dao/TbCfPostersDao.xml
+62
-57
没有找到文件。
platform-admin/src/main/java/com/platform/entity/TbCfPostersEntity.java
浏览文件 @
73b49f78
...
...
@@ -49,6 +49,8 @@ public class TbCfPostersEntity implements Serializable {
* 创建时间
*/
private
Date
createTime
;
private
String
link
;
/**
* 更新时间
*/
...
...
@@ -67,6 +69,7 @@ public class TbCfPostersEntity implements Serializable {
public
String
getId
()
{
return
id
;
}
/**
* 设置:标题
*/
...
...
@@ -184,4 +187,12 @@ public class TbCfPostersEntity implements Serializable {
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
String
getLink
()
{
return
link
;
}
public
void
setLink
(
String
link
)
{
this
.
link
=
link
;
}
}
platform-admin/src/main/resources/com/platform/dao/TbCfPostersDao.xml
浏览文件 @
73b49f78
...
...
@@ -14,6 +14,7 @@
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"link"
column=
"link"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfPostersEntity"
>
...
...
@@ -43,7 +44,8 @@
`redirect_url`,
`remark`,
`create_time`,
`update_time`
`update_time`,
link
from tb_cf_posters
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
...
...
@@ -79,6 +81,7 @@
`sort`,
`is_show`,
`redirect_url`,
link
`remark`,
`create_time`,
`update_time`)
...
...
@@ -90,6 +93,7 @@
#{sort},
#{isShow},
#{redirectUrl},
#{link},
#{remark},
#{createTime},
#{updateTime})
...
...
@@ -98,14 +102,15 @@
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfPostersEntity"
>
update tb_cf_posters
<set>
<if
test=
"postersTitle != null"
>
`posters_title` = #{postersTitle},
</if>
<if
test=
"postersType != null"
>
`posters_type` = #{postersType},
</if>
<if
test=
"postersPicture != null"
>
`posters_picture` = #{postersPicture},
</if>
<if
test=
"sort != null"
>
`sort` = #{sort},
</if>
<if
test=
"isShow != null"
>
`is_show` = #{isShow},
</if>
<if
test=
"redirectUrl != null"
>
`redirect_url` = #{redirectUrl},
</if>
<if
test=
"remark != null"
>
`remark` = #{remark},
</if>
<if
test=
"createTime != null"
>
`create_time` = #{createTime},
</if>
<if
test=
"postersTitle != null"
>
`posters_title` = #{postersTitle},
</if>
<if
test=
"postersType != null"
>
`posters_type` = #{postersType},
</if>
<if
test=
"postersPicture != null"
>
`posters_picture` = #{postersPicture},
</if>
<if
test=
"sort != null"
>
`sort` = #{sort},
</if>
<if
test=
"isShow != null"
>
`is_show` = #{isShow},
</if>
<if
test=
"redirectUrl != null"
>
`redirect_url` = #{redirectUrl},
</if>
<if
test=
"link != null"
>
`link` = #{link}
</if>
<if
test=
"remark != null"
>
`remark` = #{remark},
</if>
<if
test=
"createTime != null"
>
`create_time` = #{createTime},
</if>
<if
test=
"updateTime != null"
>
`update_time` = #{updateTime}
</if>
</set>
where id = #{id}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论