Commit 6acb22a8 authored by Administrator's avatar Administrator

形象管理增加字段

parent a5715950
......@@ -44,6 +44,8 @@
start_time,
logo,
bg_color,
detail_style,
is_show_tab,
cmpt_type,
create_by,
create_date,
......@@ -56,6 +58,8 @@
#{startTime},
#{logo},
#{cmptbgColor},
#{detailStyle},
#{isShowTab},
#{cmptType},
#{createBy},
#{createDate},
......@@ -207,6 +211,12 @@
<if test="cmptbgColor != null">
a.bg_color = #{cmptbgColor},
</if>
<if test="detailStyle != null">
detail_style=#{detailStyle},
</if>
<if test="isShowTab != null">
is_show_tab=#{isShowTab},
</if>
<if test="cmptName != null">
a.cmpt_name = #{cmptName},
c.cmptName = #{cmptName},
......
......@@ -74,4 +74,9 @@ public class Cmpt extends JaapRecord<Cmpt> {
private int auditStatus;
@ApiModelProperty(value = "赛事详情板块样式(1:大图标,2:小图标)", notes = "赛事详情板块样式(1:大图标,2:小图标)")
private String detailStyle;
@ApiModelProperty(value = "是否显示底部tab页(1:显示,0:不显示)", notes = "是否显示底部tab页(1:显示,0:不显示)")
private String isShowTab;
}
......@@ -84,6 +84,12 @@ public class CmptService {
public void save(Cmpt cmpt) {
cmpt.setCmptbgColor("#49b4b7");
if(StringUtils.isBlank(cmpt.getIsShowTab())){
cmpt.setIsShowTab("1");
}
if(StringUtils.isBlank(cmpt.getDetailStyle())){
cmpt.setDetailStyle("1");
}
cmptMapper.save(cmpt);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment