1
This commit is contained in:
parent
96aa8a8a05
commit
1fb05b6a63
@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.base.controller;
|
||||||
|
|
||||||
|
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.BaseConfig;
|
||||||
|
import com.ruoyi.base.service.IBaseConfigService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 基础配置-账户配置、小程序配置的内容Controller
|
||||||
|
*
|
||||||
|
* @author vinjor-m
|
||||||
|
* @date 2025-03-17
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/base/baseConfig")
|
||||||
|
public class BaseConfigController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBaseConfigService baseConfigService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询基础配置-账户配置、小程序配置的内容列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:baseConfig:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(BaseConfig baseConfig)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<BaseConfig> list = baseConfigService.selectBaseConfigList(baseConfig);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出基础配置-账户配置、小程序配置的内容列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:baseConfig:export')")
|
||||||
|
@Log(title = "基础配置-账户配置、小程序配置的内容", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, BaseConfig baseConfig)
|
||||||
|
{
|
||||||
|
List<BaseConfig> list = baseConfigService.selectBaseConfigList(baseConfig);
|
||||||
|
ExcelUtil<BaseConfig> util = new ExcelUtil<BaseConfig>(BaseConfig.class);
|
||||||
|
util.exportExcel(response, list, "基础配置-账户配置、小程序配置的内容数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取基础配置-账户配置、小程序配置的内容详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:baseConfig:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||||
|
{
|
||||||
|
return success(baseConfigService.selectBaseConfigById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增基础配置-账户配置、小程序配置的内容
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:baseConfig:add')")
|
||||||
|
@Log(title = "基础配置-账户配置、小程序配置的内容", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody BaseConfig baseConfig)
|
||||||
|
{
|
||||||
|
return toAjax(baseConfigService.insertBaseConfig(baseConfig));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改基础配置-账户配置、小程序配置的内容
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:baseConfig:edit')")
|
||||||
|
@Log(title = "基础配置-账户配置、小程序配置的内容", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody BaseConfig baseConfig)
|
||||||
|
{
|
||||||
|
return toAjax(baseConfigService.updateBaseConfig(baseConfig));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除基础配置-账户配置、小程序配置的内容
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:baseConfig:remove')")
|
||||||
|
@Log(title = "基础配置-账户配置、小程序配置的内容", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable String[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(baseConfigService.deleteBaseConfigByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
113
ruoyi-admin/src/main/java/com/ruoyi/base/domain/BaseConfig.java
Normal file
113
ruoyi-admin/src/main/java/com/ruoyi/base/domain/BaseConfig.java
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 基础配置-账户配置、小程序配置的内容对象 base_config
|
||||||
|
*
|
||||||
|
* @author vinjor-m
|
||||||
|
* @date 2025-03-17
|
||||||
|
*/
|
||||||
|
public class BaseConfig extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 唯一主键 */
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 唯一编码 */
|
||||||
|
@Excel(name = "唯一编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** json字符串 */
|
||||||
|
@Excel(name = "json字符串")
|
||||||
|
private String jsonStr;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Excel(name = "创建人")
|
||||||
|
private String creator;
|
||||||
|
|
||||||
|
/** 更新人 */
|
||||||
|
@Excel(name = "更新人")
|
||||||
|
private String updater;
|
||||||
|
|
||||||
|
/** 是否删除(0未删除|1已删除) */
|
||||||
|
private Long delFlag;
|
||||||
|
|
||||||
|
public void setId(String id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCode(String code)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJsonStr(String jsonStr)
|
||||||
|
{
|
||||||
|
this.jsonStr = jsonStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJsonStr()
|
||||||
|
{
|
||||||
|
return jsonStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreator(String creator)
|
||||||
|
{
|
||||||
|
this.creator = creator;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreator()
|
||||||
|
{
|
||||||
|
return creator;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdater(String updater)
|
||||||
|
{
|
||||||
|
this.updater = updater;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdater()
|
||||||
|
{
|
||||||
|
return updater;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelFlag(Long delFlag)
|
||||||
|
{
|
||||||
|
this.delFlag = delFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDelFlag()
|
||||||
|
{
|
||||||
|
return delFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("code", getCode())
|
||||||
|
.append("jsonStr", getJsonStr())
|
||||||
|
.append("creator", getCreator())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updater", getUpdater())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("delFlag", getDelFlag())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.base.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.base.domain.BaseConfig;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 基础配置-账户配置、小程序配置的内容Mapper接口
|
||||||
|
*
|
||||||
|
* @author vinjor-m
|
||||||
|
* @date 2025-03-17
|
||||||
|
*/
|
||||||
|
public interface BaseConfigMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param id 基础配置-账户配置、小程序配置的内容主键
|
||||||
|
* @return 基础配置-账户配置、小程序配置的内容
|
||||||
|
*/
|
||||||
|
public BaseConfig selectBaseConfigById(String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询基础配置-账户配置、小程序配置的内容列表
|
||||||
|
*
|
||||||
|
* @param baseConfig 基础配置-账户配置、小程序配置的内容
|
||||||
|
* @return 基础配置-账户配置、小程序配置的内容集合
|
||||||
|
*/
|
||||||
|
public List<BaseConfig> selectBaseConfigList(BaseConfig baseConfig);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param baseConfig 基础配置-账户配置、小程序配置的内容
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertBaseConfig(BaseConfig baseConfig);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param baseConfig 基础配置-账户配置、小程序配置的内容
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateBaseConfig(BaseConfig baseConfig);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param id 基础配置-账户配置、小程序配置的内容主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseConfigById(String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseConfigByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.base.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.base.domain.BaseConfig;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 基础配置-账户配置、小程序配置的内容Service接口
|
||||||
|
*
|
||||||
|
* @author vinjor-m
|
||||||
|
* @date 2025-03-17
|
||||||
|
*/
|
||||||
|
public interface IBaseConfigService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param id 基础配置-账户配置、小程序配置的内容主键
|
||||||
|
* @return 基础配置-账户配置、小程序配置的内容
|
||||||
|
*/
|
||||||
|
public BaseConfig selectBaseConfigById(String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询基础配置-账户配置、小程序配置的内容列表
|
||||||
|
*
|
||||||
|
* @param baseConfig 基础配置-账户配置、小程序配置的内容
|
||||||
|
* @return 基础配置-账户配置、小程序配置的内容集合
|
||||||
|
*/
|
||||||
|
public List<BaseConfig> selectBaseConfigList(BaseConfig baseConfig);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param baseConfig 基础配置-账户配置、小程序配置的内容
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertBaseConfig(BaseConfig baseConfig);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param baseConfig 基础配置-账户配置、小程序配置的内容
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateBaseConfig(BaseConfig baseConfig);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的基础配置-账户配置、小程序配置的内容主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseConfigByIds(String[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除基础配置-账户配置、小程序配置的内容信息
|
||||||
|
*
|
||||||
|
* @param id 基础配置-账户配置、小程序配置的内容主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseConfigById(String id);
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
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.BaseConfigMapper;
|
||||||
|
import com.ruoyi.base.domain.BaseConfig;
|
||||||
|
import com.ruoyi.base.service.IBaseConfigService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 基础配置-账户配置、小程序配置的内容Service业务层处理
|
||||||
|
*
|
||||||
|
* @author vinjor-m
|
||||||
|
* @date 2025-03-17
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class BaseConfigServiceImpl implements IBaseConfigService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private BaseConfigMapper baseConfigMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param id 基础配置-账户配置、小程序配置的内容主键
|
||||||
|
* @return 基础配置-账户配置、小程序配置的内容
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public BaseConfig selectBaseConfigById(String id)
|
||||||
|
{
|
||||||
|
return baseConfigMapper.selectBaseConfigById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询基础配置-账户配置、小程序配置的内容列表
|
||||||
|
*
|
||||||
|
* @param baseConfig 基础配置-账户配置、小程序配置的内容
|
||||||
|
* @return 基础配置-账户配置、小程序配置的内容
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<BaseConfig> selectBaseConfigList(BaseConfig baseConfig)
|
||||||
|
{
|
||||||
|
return baseConfigMapper.selectBaseConfigList(baseConfig);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param baseConfig 基础配置-账户配置、小程序配置的内容
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertBaseConfig(BaseConfig baseConfig)
|
||||||
|
{
|
||||||
|
baseConfig.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return baseConfigMapper.insertBaseConfig(baseConfig);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param baseConfig 基础配置-账户配置、小程序配置的内容
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateBaseConfig(BaseConfig baseConfig)
|
||||||
|
{
|
||||||
|
baseConfig.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return baseConfigMapper.updateBaseConfig(baseConfig);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除基础配置-账户配置、小程序配置的内容
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的基础配置-账户配置、小程序配置的内容主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteBaseConfigByIds(String[] ids)
|
||||||
|
{
|
||||||
|
return baseConfigMapper.deleteBaseConfigByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除基础配置-账户配置、小程序配置的内容信息
|
||||||
|
*
|
||||||
|
* @param id 基础配置-账户配置、小程序配置的内容主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteBaseConfigById(String id)
|
||||||
|
{
|
||||||
|
return baseConfigMapper.deleteBaseConfigById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,85 @@
|
|||||||
|
<?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.BaseConfigMapper">
|
||||||
|
|
||||||
|
<resultMap type="BaseConfig" id="BaseConfigResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="code" column="code" />
|
||||||
|
<result property="jsonStr" column="json_str" />
|
||||||
|
<result property="creator" column="creator" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updater" column="updater" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectBaseConfigVo">
|
||||||
|
select id, code, json_str, creator, create_time, updater, update_time, del_flag from dl_base_config
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectBaseConfigList" parameterType="BaseConfig" resultMap="BaseConfigResult">
|
||||||
|
<include refid="selectBaseConfigVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="code != null and code != ''"> and code = #{code}</if>
|
||||||
|
<if test="jsonStr != null and jsonStr != ''"> and json_str = #{jsonStr}</if>
|
||||||
|
<if test="creator != null and creator != ''"> and creator = #{creator}</if>
|
||||||
|
<if test="updater != null and updater != ''"> and updater = #{updater}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectBaseConfigById" parameterType="String" resultMap="BaseConfigResult">
|
||||||
|
<include refid="selectBaseConfigVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertBaseConfig" parameterType="BaseConfig">
|
||||||
|
insert into dl_base_config
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="code != null">code,</if>
|
||||||
|
<if test="jsonStr != null">json_str,</if>
|
||||||
|
<if test="creator != null">creator,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updater != null">updater,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="code != null">#{code},</if>
|
||||||
|
<if test="jsonStr != null">#{jsonStr},</if>
|
||||||
|
<if test="creator != null">#{creator},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updater != null">#{updater},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateBaseConfig" parameterType="BaseConfig">
|
||||||
|
update dl_base_config
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="code != null">code = #{code},</if>
|
||||||
|
<if test="jsonStr != null">json_str = #{jsonStr},</if>
|
||||||
|
<if test="creator != null">creator = #{creator},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updater != null">updater = #{updater},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteBaseConfigById" parameterType="String">
|
||||||
|
delete from dl_base_config where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteBaseConfigByIds" parameterType="String">
|
||||||
|
delete from dl_base_config where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue
Block a user