| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | |
| | | |
| | | public Response saveConfig(ApplicationConfigDTO configDTO) { |
| | | try { |
| | | //保存应用的图片信息 |
| | | Application app = new Application(); |
| | | app.setId(configDTO.getAppId()); |
| | | app.setBgPic(configDTO.getBgPic()); |
| | | app.setHeadPic(configDTO.getHeadPic()); |
| | | mapper.updateById(app); |
| | | |
| | | //保存应用的配置 |
| | | configMapper.saveConfig(configDTO); |
| | | }catch (Exception e){ |
| | | return new Response<>().setMsg(0,"保存失败"); |