Pārlūkot izejas kodu

新增展示主题配置

zmj 5 dienas atpakaļ
vecāks
revīzija
91cf96ca52

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/base/RobotOpsScreenThemeConfigController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.base;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.base.domain.RobotOpsScreenThemeConfig;
+import com.ruoyi.base.service.IRobotOpsScreenThemeConfigService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 展示主题配置Controller
+ *
+ * @author ruoyi
+ * @date 2026-05-14
+ */
+@RestController
+@RequestMapping("/base/opsScreenThemeConfig")
+public class RobotOpsScreenThemeConfigController extends BaseController
+{
+    @Autowired
+    private IRobotOpsScreenThemeConfigService robotOpsScreenThemeConfigService;
+
+    /**
+     * 查询展示主题配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('base:opsScreenThemeConfig:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig)
+    {
+        startPage();
+        List<RobotOpsScreenThemeConfig> list = robotOpsScreenThemeConfigService.selectRobotOpsScreenThemeConfigList(robotOpsScreenThemeConfig);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出展示主题配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('base:opsScreenThemeConfig:export')")
+    @Log(title = "展示主题配置", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, RobotOpsScreenThemeConfig robotOpsScreenThemeConfig)
+    {
+        List<RobotOpsScreenThemeConfig> list = robotOpsScreenThemeConfigService.selectRobotOpsScreenThemeConfigList(robotOpsScreenThemeConfig);
+        ExcelUtil<RobotOpsScreenThemeConfig> util = new ExcelUtil<RobotOpsScreenThemeConfig>(RobotOpsScreenThemeConfig.class);
+        util.exportExcel(response, list, "展示主题配置数据");
+    }
+
+    /**
+     * 获取展示主题配置详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('base:opsScreenThemeConfig:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(robotOpsScreenThemeConfigService.selectRobotOpsScreenThemeConfigById(id));
+    }
+
+    /**
+     * 新增展示主题配置
+     */
+    @PreAuthorize("@ss.hasPermi('base:opsScreenThemeConfig:add')")
+    @Log(title = "展示主题配置", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody RobotOpsScreenThemeConfig robotOpsScreenThemeConfig)
+    {
+        return toAjax(robotOpsScreenThemeConfigService.insertRobotOpsScreenThemeConfig(robotOpsScreenThemeConfig));
+    }
+
+    /**
+     * 修改展示主题配置
+     */
+    @PreAuthorize("@ss.hasPermi('base:opsScreenThemeConfig:edit')")
+    @Log(title = "展示主题配置", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody RobotOpsScreenThemeConfig robotOpsScreenThemeConfig)
+    {
+        return toAjax(robotOpsScreenThemeConfigService.updateRobotOpsScreenThemeConfig(robotOpsScreenThemeConfig));
+    }
+
+    /**
+     * 删除展示主题配置
+     */
+    @PreAuthorize("@ss.hasPermi('base:opsScreenThemeConfig:remove')")
+    @Log(title = "展示主题配置", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(robotOpsScreenThemeConfigService.deleteRobotOpsScreenThemeConfigByIds(ids));
+    }
+}

+ 177 - 0
ruoyi-system/src/main/java/com/ruoyi/base/domain/RobotOpsScreenThemeConfig.java

@@ -0,0 +1,177 @@
+package com.ruoyi.base.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 展示主题配置对象 robot_ops_screen_theme_config
+ * 
+ * @author ruoyi
+ * @date 2026-05-14
+ */
+public class RobotOpsScreenThemeConfig extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键ID */
+    private Long id;
+
+    /** 配置标识,默认配置固定为default */
+    @Excel(name = "配置标识,默认配置固定为default")
+    private String configKey;
+
+    /** Logo图片地址 */
+    @Excel(name = "Logo图片地址")
+    private String logoUrl;
+
+    /** 品牌标题/机器人名称 */
+    @Excel(name = "品牌标题/机器人名称")
+    private String robotName;
+
+    /** 品牌副标题 */
+    @Excel(name = "品牌副标题")
+    private String brandSubtitle;
+
+    /** 待机页背景图地址 */
+    @Excel(name = "待机页背景图地址")
+    private String backgroundImage;
+
+    /** 欢迎主标题 */
+    @Excel(name = "欢迎主标题")
+    private String welcomeTitle;
+
+    /** 欢迎副标题 */
+    @Excel(name = "欢迎副标题")
+    private String welcomeSubtitle;
+
+    /** 主按钮文案 */
+    @Excel(name = "主按钮文案")
+    private String touchText;
+
+    /** 主按钮颜色 */
+    @Excel(name = "主按钮颜色")
+    private String buttonColor;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+
+    public void setConfigKey(String configKey) 
+    {
+        this.configKey = configKey;
+    }
+
+    public String getConfigKey() 
+    {
+        return configKey;
+    }
+
+    public void setLogoUrl(String logoUrl) 
+    {
+        this.logoUrl = logoUrl;
+    }
+
+    public String getLogoUrl() 
+    {
+        return logoUrl;
+    }
+
+    public void setRobotName(String robotName) 
+    {
+        this.robotName = robotName;
+    }
+
+    public String getRobotName() 
+    {
+        return robotName;
+    }
+
+    public void setBrandSubtitle(String brandSubtitle) 
+    {
+        this.brandSubtitle = brandSubtitle;
+    }
+
+    public String getBrandSubtitle() 
+    {
+        return brandSubtitle;
+    }
+
+    public void setBackgroundImage(String backgroundImage) 
+    {
+        this.backgroundImage = backgroundImage;
+    }
+
+    public String getBackgroundImage() 
+    {
+        return backgroundImage;
+    }
+
+    public void setWelcomeTitle(String welcomeTitle) 
+    {
+        this.welcomeTitle = welcomeTitle;
+    }
+
+    public String getWelcomeTitle() 
+    {
+        return welcomeTitle;
+    }
+
+    public void setWelcomeSubtitle(String welcomeSubtitle) 
+    {
+        this.welcomeSubtitle = welcomeSubtitle;
+    }
+
+    public String getWelcomeSubtitle() 
+    {
+        return welcomeSubtitle;
+    }
+
+    public void setTouchText(String touchText) 
+    {
+        this.touchText = touchText;
+    }
+
+    public String getTouchText() 
+    {
+        return touchText;
+    }
+
+    public void setButtonColor(String buttonColor) 
+    {
+        this.buttonColor = buttonColor;
+    }
+
+    public String getButtonColor() 
+    {
+        return buttonColor;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("configKey", getConfigKey())
+            .append("logoUrl", getLogoUrl())
+            .append("robotName", getRobotName())
+            .append("brandSubtitle", getBrandSubtitle())
+            .append("backgroundImage", getBackgroundImage())
+            .append("welcomeTitle", getWelcomeTitle())
+            .append("welcomeSubtitle", getWelcomeSubtitle())
+            .append("touchText", getTouchText())
+            .append("buttonColor", getButtonColor())
+            .append("remark", getRemark())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 69 - 0
ruoyi-system/src/main/java/com/ruoyi/base/mapper/RobotOpsScreenThemeConfigMapper.java

@@ -0,0 +1,69 @@
+package com.ruoyi.base.mapper;
+
+import java.util.List;
+import com.ruoyi.base.domain.RobotOpsScreenThemeConfig;
+
+/**
+ * 展示主题配置Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2026-05-14
+ */
+public interface RobotOpsScreenThemeConfigMapper 
+{
+    /**
+     * 查询展示主题配置
+     *
+     * @param id 展示主题配置主键
+     * @return 展示主题配置
+     */
+    public RobotOpsScreenThemeConfig selectRobotOpsScreenThemeConfigById(Long id);
+
+    /**
+     * 根据配置标识查询展示主题配置
+     *
+     * @param configKey 配置标识
+     * @return 展示主题配置
+     */
+    public RobotOpsScreenThemeConfig selectRobotOpsScreenThemeConfigByConfigKey(String configKey);
+
+    /**
+     * 查询展示主题配置列表
+     * 
+     * @param robotOpsScreenThemeConfig 展示主题配置
+     * @return 展示主题配置集合
+     */
+    public List<RobotOpsScreenThemeConfig> selectRobotOpsScreenThemeConfigList(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig);
+
+    /**
+     * 新增展示主题配置
+     * 
+     * @param robotOpsScreenThemeConfig 展示主题配置
+     * @return 结果
+     */
+    public int insertRobotOpsScreenThemeConfig(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig);
+
+    /**
+     * 修改展示主题配置
+     * 
+     * @param robotOpsScreenThemeConfig 展示主题配置
+     * @return 结果
+     */
+    public int updateRobotOpsScreenThemeConfig(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig);
+
+    /**
+     * 删除展示主题配置
+     * 
+     * @param id 展示主题配置主键
+     * @return 结果
+     */
+    public int deleteRobotOpsScreenThemeConfigById(Long id);
+
+    /**
+     * 批量删除展示主题配置
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteRobotOpsScreenThemeConfigByIds(Long[] ids);
+}

+ 69 - 0
ruoyi-system/src/main/java/com/ruoyi/base/service/IRobotOpsScreenThemeConfigService.java

@@ -0,0 +1,69 @@
+package com.ruoyi.base.service;
+
+import java.util.List;
+import com.ruoyi.base.domain.RobotOpsScreenThemeConfig;
+
+/**
+ * 展示主题配置Service接口
+ * 
+ * @author ruoyi
+ * @date 2026-05-14
+ */
+public interface IRobotOpsScreenThemeConfigService 
+{
+    /**
+     * 查询展示主题配置
+     *
+     * @param id 展示主题配置主键
+     * @return 展示主题配置
+     */
+    public RobotOpsScreenThemeConfig selectRobotOpsScreenThemeConfigById(Long id);
+
+    /**
+     * 根据配置标识查询展示主题配置
+     *
+     * @param configKey 配置标识
+     * @return 展示主题配置
+     */
+    public RobotOpsScreenThemeConfig selectRobotOpsScreenThemeConfigByConfigKey(String configKey);
+
+    /**
+     * 查询展示主题配置列表
+     * 
+     * @param robotOpsScreenThemeConfig 展示主题配置
+     * @return 展示主题配置集合
+     */
+    public List<RobotOpsScreenThemeConfig> selectRobotOpsScreenThemeConfigList(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig);
+
+    /**
+     * 新增展示主题配置
+     * 
+     * @param robotOpsScreenThemeConfig 展示主题配置
+     * @return 结果
+     */
+    public int insertRobotOpsScreenThemeConfig(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig);
+
+    /**
+     * 修改展示主题配置
+     * 
+     * @param robotOpsScreenThemeConfig 展示主题配置
+     * @return 结果
+     */
+    public int updateRobotOpsScreenThemeConfig(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig);
+
+    /**
+     * 批量删除展示主题配置
+     * 
+     * @param ids 需要删除的展示主题配置主键集合
+     * @return 结果
+     */
+    public int deleteRobotOpsScreenThemeConfigByIds(Long[] ids);
+
+    /**
+     * 删除展示主题配置信息
+     * 
+     * @param id 展示主题配置主键
+     * @return 结果
+     */
+    public int deleteRobotOpsScreenThemeConfigById(Long id);
+}

+ 108 - 0
ruoyi-system/src/main/java/com/ruoyi/base/service/impl/RobotOpsScreenThemeConfigServiceImpl.java

@@ -0,0 +1,108 @@
+package com.ruoyi.base.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.base.mapper.RobotOpsScreenThemeConfigMapper;
+import com.ruoyi.base.domain.RobotOpsScreenThemeConfig;
+import com.ruoyi.base.service.IRobotOpsScreenThemeConfigService;
+
+/**
+ * 展示主题配置Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2026-05-14
+ */
+@Service
+public class RobotOpsScreenThemeConfigServiceImpl implements IRobotOpsScreenThemeConfigService 
+{
+    @Autowired
+    private RobotOpsScreenThemeConfigMapper robotOpsScreenThemeConfigMapper;
+
+    /**
+     * 查询展示主题配置
+     *
+     * @param id 展示主题配置主键
+     * @return 展示主题配置
+     */
+    @Override
+    public RobotOpsScreenThemeConfig selectRobotOpsScreenThemeConfigById(Long id)
+    {
+        return robotOpsScreenThemeConfigMapper.selectRobotOpsScreenThemeConfigById(id);
+    }
+
+    /**
+     * 根据配置标识查询展示主题配置
+     *
+     * @param configKey 配置标识
+     * @return 展示主题配置
+     */
+    @Override
+    public RobotOpsScreenThemeConfig selectRobotOpsScreenThemeConfigByConfigKey(String configKey)
+    {
+        return robotOpsScreenThemeConfigMapper.selectRobotOpsScreenThemeConfigByConfigKey(configKey);
+    }
+
+    /**
+     * 查询展示主题配置列表
+     * 
+     * @param robotOpsScreenThemeConfig 展示主题配置
+     * @return 展示主题配置
+     */
+    @Override
+    public List<RobotOpsScreenThemeConfig> selectRobotOpsScreenThemeConfigList(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig)
+    {
+        return robotOpsScreenThemeConfigMapper.selectRobotOpsScreenThemeConfigList(robotOpsScreenThemeConfig);
+    }
+
+    /**
+     * 新增展示主题配置
+     * 
+     * @param robotOpsScreenThemeConfig 展示主题配置
+     * @return 结果
+     */
+    @Override
+    public int insertRobotOpsScreenThemeConfig(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig)
+    {
+        robotOpsScreenThemeConfig.setCreateTime(DateUtils.getNowDate());
+        return robotOpsScreenThemeConfigMapper.insertRobotOpsScreenThemeConfig(robotOpsScreenThemeConfig);
+    }
+
+    /**
+     * 修改展示主题配置
+     * 
+     * @param robotOpsScreenThemeConfig 展示主题配置
+     * @return 结果
+     */
+    @Override
+    public int updateRobotOpsScreenThemeConfig(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig)
+    {
+        robotOpsScreenThemeConfig.setUpdateTime(DateUtils.getNowDate());
+        return robotOpsScreenThemeConfigMapper.updateRobotOpsScreenThemeConfig(robotOpsScreenThemeConfig);
+    }
+
+    /**
+     * 批量删除展示主题配置
+     * 
+     * @param ids 需要删除的展示主题配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteRobotOpsScreenThemeConfigByIds(Long[] ids)
+    {
+        return robotOpsScreenThemeConfigMapper.deleteRobotOpsScreenThemeConfigByIds(ids);
+    }
+
+    /**
+     * 删除展示主题配置信息
+     * 
+     * @param id 展示主题配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteRobotOpsScreenThemeConfigById(Long id)
+    {
+        return robotOpsScreenThemeConfigMapper.deleteRobotOpsScreenThemeConfigById(id);
+    }
+}

+ 122 - 0
ruoyi-system/src/main/resources/mapper/base/RobotOpsScreenThemeConfigMapper.xml

@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.base.mapper.RobotOpsScreenThemeConfigMapper">
+    
+    <resultMap type="RobotOpsScreenThemeConfig" id="RobotOpsScreenThemeConfigResult">
+        <result property="id"    column="id"    />
+        <result property="configKey"    column="config_key"    />
+        <result property="logoUrl"    column="logo_url"    />
+        <result property="robotName"    column="robot_name"    />
+        <result property="brandSubtitle"    column="brand_subtitle"    />
+        <result property="backgroundImage"    column="background_image"    />
+        <result property="welcomeTitle"    column="welcome_title"    />
+        <result property="welcomeSubtitle"    column="welcome_subtitle"    />
+        <result property="touchText"    column="touch_text"    />
+        <result property="buttonColor"    column="button_color"    />
+        <result property="remark"    column="remark"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectRobotOpsScreenThemeConfigVo">
+        select id, config_key, logo_url, robot_name, brand_subtitle, background_image, welcome_title, welcome_subtitle, touch_text, button_color, remark, create_by, create_time, update_by, update_time from robot_ops_screen_theme_config
+    </sql>
+
+    <select id="selectRobotOpsScreenThemeConfigList" parameterType="RobotOpsScreenThemeConfig" resultMap="RobotOpsScreenThemeConfigResult">
+        <include refid="selectRobotOpsScreenThemeConfigVo"/>
+        <where>  
+            <if test="configKey != null  and configKey != ''"> and config_key = #{configKey}</if>
+            <if test="logoUrl != null  and logoUrl != ''"> and logo_url = #{logoUrl}</if>
+            <if test="robotName != null  and robotName != ''"> and robot_name like concat('%', #{robotName}, '%')</if>
+            <if test="brandSubtitle != null  and brandSubtitle != ''"> and brand_subtitle = #{brandSubtitle}</if>
+            <if test="backgroundImage != null  and backgroundImage != ''"> and background_image = #{backgroundImage}</if>
+            <if test="welcomeTitle != null  and welcomeTitle != ''"> and welcome_title = #{welcomeTitle}</if>
+            <if test="welcomeSubtitle != null  and welcomeSubtitle != ''"> and welcome_subtitle = #{welcomeSubtitle}</if>
+            <if test="touchText != null  and touchText != ''"> and touch_text = #{touchText}</if>
+            <if test="buttonColor != null  and buttonColor != ''"> and button_color = #{buttonColor}</if>
+        </where>
+    </select>
+    
+    <select id="selectRobotOpsScreenThemeConfigById" parameterType="Long" resultMap="RobotOpsScreenThemeConfigResult">
+        <include refid="selectRobotOpsScreenThemeConfigVo"/>
+        where id = #{id}
+    </select>
+
+    <select id="selectRobotOpsScreenThemeConfigByConfigKey" parameterType="String" resultMap="RobotOpsScreenThemeConfigResult">
+        <include refid="selectRobotOpsScreenThemeConfigVo"/>
+        where config_key = #{configKey}
+        limit 1
+    </select>
+
+    <insert id="insertRobotOpsScreenThemeConfig" parameterType="RobotOpsScreenThemeConfig" useGeneratedKeys="true" keyProperty="id">
+        insert into robot_ops_screen_theme_config
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="configKey != null and configKey != ''">config_key,</if>
+            <if test="logoUrl != null">logo_url,</if>
+            <if test="robotName != null">robot_name,</if>
+            <if test="brandSubtitle != null">brand_subtitle,</if>
+            <if test="backgroundImage != null">background_image,</if>
+            <if test="welcomeTitle != null">welcome_title,</if>
+            <if test="welcomeSubtitle != null">welcome_subtitle,</if>
+            <if test="touchText != null">touch_text,</if>
+            <if test="buttonColor != null">button_color,</if>
+            <if test="remark != null">remark,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="configKey != null and configKey != ''">#{configKey},</if>
+            <if test="logoUrl != null">#{logoUrl},</if>
+            <if test="robotName != null">#{robotName},</if>
+            <if test="brandSubtitle != null">#{brandSubtitle},</if>
+            <if test="backgroundImage != null">#{backgroundImage},</if>
+            <if test="welcomeTitle != null">#{welcomeTitle},</if>
+            <if test="welcomeSubtitle != null">#{welcomeSubtitle},</if>
+            <if test="touchText != null">#{touchText},</if>
+            <if test="buttonColor != null">#{buttonColor},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateRobotOpsScreenThemeConfig" parameterType="RobotOpsScreenThemeConfig">
+        update robot_ops_screen_theme_config
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="configKey != null and configKey != ''">config_key = #{configKey},</if>
+            <if test="logoUrl != null">logo_url = #{logoUrl},</if>
+            <if test="robotName != null">robot_name = #{robotName},</if>
+            <if test="brandSubtitle != null">brand_subtitle = #{brandSubtitle},</if>
+            <if test="backgroundImage != null">background_image = #{backgroundImage},</if>
+            <if test="welcomeTitle != null">welcome_title = #{welcomeTitle},</if>
+            <if test="welcomeSubtitle != null">welcome_subtitle = #{welcomeSubtitle},</if>
+            <if test="touchText != null">touch_text = #{touchText},</if>
+            <if test="buttonColor != null">button_color = #{buttonColor},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteRobotOpsScreenThemeConfigById" parameterType="Long">
+        delete from robot_ops_screen_theme_config where id = #{id}
+    </delete>
+
+    <delete id="deleteRobotOpsScreenThemeConfigByIds" parameterType="String">
+        delete from robot_ops_screen_theme_config where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>