Commit 6acb22a8 authored by Administrator's avatar Administrator

形象管理增加字段

parent a5715950
...@@ -44,6 +44,8 @@ ...@@ -44,6 +44,8 @@
start_time, start_time,
logo, logo,
bg_color, bg_color,
detail_style,
is_show_tab,
cmpt_type, cmpt_type,
create_by, create_by,
create_date, create_date,
...@@ -56,6 +58,8 @@ ...@@ -56,6 +58,8 @@
#{startTime}, #{startTime},
#{logo}, #{logo},
#{cmptbgColor}, #{cmptbgColor},
#{detailStyle},
#{isShowTab},
#{cmptType}, #{cmptType},
#{createBy}, #{createBy},
#{createDate}, #{createDate},
...@@ -207,6 +211,12 @@ ...@@ -207,6 +211,12 @@
<if test="cmptbgColor != null"> <if test="cmptbgColor != null">
a.bg_color = #{cmptbgColor}, a.bg_color = #{cmptbgColor},
</if> </if>
<if test="detailStyle != null">
detail_style=#{detailStyle},
</if>
<if test="isShowTab != null">
is_show_tab=#{isShowTab},
</if>
<if test="cmptName != null"> <if test="cmptName != null">
a.cmpt_name = #{cmptName}, a.cmpt_name = #{cmptName},
c.cmptName = #{cmptName}, c.cmptName = #{cmptName},
......
...@@ -74,4 +74,9 @@ public class Cmpt extends JaapRecord<Cmpt> { ...@@ -74,4 +74,9 @@ public class Cmpt extends JaapRecord<Cmpt> {
private int auditStatus; 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 { ...@@ -84,6 +84,12 @@ public class CmptService {
public void save(Cmpt cmpt) { public void save(Cmpt cmpt) {
cmpt.setCmptbgColor("#49b4b7"); cmpt.setCmptbgColor("#49b4b7");
if(StringUtils.isBlank(cmpt.getIsShowTab())){
cmpt.setIsShowTab("1");
}
if(StringUtils.isBlank(cmpt.getDetailStyle())){
cmpt.setDetailStyle("1");
}
cmptMapper.save(cmpt); 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