Parcourir la source

fix-[xmg二期]:新增东南亚地区发展报告

seeseele il y a 7 mois
Parent
commit
dc133a7044

+ 151 - 0
src/main/java/com/ruoyi/project/VRdemo/controller/RegionDevelopController.java

@@ -0,0 +1,151 @@
+package com.ruoyi.project.VRdemo.controller;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.alibaba.excel.EasyExcel;
+import com.ruoyi.common.utils.excel.ExcelReadUtil;
+import com.ruoyi.framework.aspectj.lang.annotation.Anonymous;
+import com.ruoyi.project.VRdemo.domain.imData.RegionDevelopImData;
+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.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
+import com.ruoyi.project.VRdemo.domain.RegionDevelop;
+import com.ruoyi.project.VRdemo.service.IRegionDevelopService;
+import com.ruoyi.framework.web.controller.BaseController;
+import com.ruoyi.framework.web.domain.AjaxResult;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.web.page.TableDataInfo;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * 东南亚地区发展报告Controller
+ *
+ * @author ruoyi
+ * @date 2024-10-30
+ */
+@RestController
+@RequestMapping("/vr/regionDevelop")
+public class RegionDevelopController extends BaseController {
+
+    private final IRegionDevelopService regionDevelopService;
+
+    public RegionDevelopController(@Autowired IRegionDevelopService regionDevelopService) {
+        this.regionDevelopService = regionDevelopService;
+    }
+
+    /**
+     * 查询东南亚地区发展报告列表
+     */
+    @Anonymous
+    @GetMapping("/list")
+    public AjaxResult list(RegionDevelop regionDevelop) {
+        List<RegionDevelop> list = regionDevelopService.selectRegionDevelopList(regionDevelop);
+
+        AjaxResult ajaxResult = new AjaxResult();
+        ajaxResult.put("code", 200);
+        ajaxResult.put("rows", list);
+        ajaxResult.put("total", list.size());
+        return ajaxResult;
+    }
+
+    /**
+     * 查询分页列表
+     */
+    @PreAuthorize("@ss.hasAnyRoles('admin,xmg')")
+    @GetMapping("/pageList")
+    public TableDataInfo pageList(RegionDevelop regionDevelop) {
+        startPage();
+        List<RegionDevelop> list = regionDevelopService.selectRegionDevelopList(regionDevelop);
+        return getDataTable(list);
+    }
+
+    /**
+     * 获取东南亚地区发展报告详细信息
+     */
+    @Anonymous
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
+        return success(regionDevelopService.selectRegionDevelopById(id));
+    }
+
+    /**
+     * 新增东南亚地区发展报告
+     */
+    @PreAuthorize("@ss.hasAnyRoles('admin,xmg')")
+    @Log(title = "东南亚地区发展报告", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody RegionDevelop regionDevelop) {
+        return toAjax(regionDevelopService.insertRegionDevelop(regionDevelop));
+    }
+
+    /**
+     * 修改东南亚地区发展报告
+     */
+    @PreAuthorize("@ss.hasAnyRoles('admin,xmg')")
+    @Log(title = "东南亚地区发展报告", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody RegionDevelop regionDevelop) {
+        return toAjax(regionDevelopService.updateRegionDevelop(regionDevelop));
+    }
+
+    /**
+     * 删除东南亚地区发展报告
+     */
+    @PreAuthorize("@ss.hasAnyRoles('admin,xmg')")
+    @Log(title = "东南亚地区发展报告", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids) {
+        return toAjax(regionDevelopService.deleteRegionDevelopByIds(ids));
+    }
+
+
+    /**
+     * 导出东南亚地区发展报告列表
+     */
+    @PreAuthorize("@ss.hasAnyRoles('admin,xmg')")
+    @Log(title = "东南亚地区发展报告", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, RegionDevelop regionDevelop) {
+        List<RegionDevelop> list = regionDevelopService.selectRegionDevelopList(regionDevelop);
+        ExcelUtil<RegionDevelop> util = new ExcelUtil<RegionDevelop>(RegionDevelop.class);
+        util.exportExcel(response, list, "东南亚地区发展报告数据");
+    }
+
+    /**
+     * 下载导入模板
+     */
+    @Anonymous
+    @PostMapping("/importTemplate")
+    public void importTemplate(HttpServletResponse response) throws IOException {
+        List<RegionDevelopImData> dataList = new ArrayList<>();
+        EasyExcel.write(response.getOutputStream(), RegionDevelopImData.class).sheet("Sheet1").doWrite(dataList);
+    }
+
+    /**
+     * 导入数据
+     */
+    @Anonymous
+    @PostMapping("/import")
+    public AjaxResult importData(MultipartFile file, boolean updateSupport) throws IOException {
+
+        List<RegionDevelop> list = ExcelReadUtil.read(file, RegionDevelopImData.class, RegionDevelop.class);
+
+        // 调用服务层方法进行数据导入处理
+        String message = regionDevelopService.importData(list, updateSupport);
+
+        // 返回成功响应,携带导入结果信息
+        return AjaxResult.success(message);
+    }
+}

+ 105 - 0
src/main/java/com/ruoyi/project/VRdemo/domain/RegionDevelop.java

@@ -0,0 +1,105 @@
+package com.ruoyi.project.VRdemo.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+
+/**
+ * 东南亚地区发展报告对象 vr_region_develop
+ *
+ * @author ruoyi
+ * @date 2024-10-30
+ */
+public class RegionDevelop extends BaseEntity {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * id
+     */
+    private Long id;
+
+    /**
+     * 类别
+     */
+    @Excel(name = "类别")
+    private String type;
+
+    /**
+     * 题目
+     */
+    @Excel(name = "题目")
+    private String title;
+
+    /**
+     * 排序
+     */
+    @Excel(name = "排序")
+    private String sort;
+
+    /**
+     * 文件路径
+     */
+    @Excel(name = "文件路径")
+    private String path;
+
+    /**
+     * 页数
+     */
+    @Excel(name = "页数")
+    private Long count;
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setSort(String sort) {
+        this.sort = sort;
+    }
+
+    public String getSort() {
+        return sort;
+    }
+
+    public void setPath(String path) {
+        this.path = path;
+    }
+
+    public String getPath() {
+        return path;
+    }
+
+    public void setCount(Long count) {
+        this.count = count;
+    }
+
+    public Long getCount() {
+        return count;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("type", getType()).append("title", getTitle()).append("sort", getSort()).append("path", getPath()).append("count", getCount()).append("createTime", getCreateTime()).append("createBy", getCreateBy()).append("updateTime", getUpdateTime()).append("updateBy", getUpdateBy()).toString();
+    }
+}

+ 110 - 0
src/main/java/com/ruoyi/project/VRdemo/domain/imData/RegionDevelopImData.java

@@ -0,0 +1,110 @@
+package com.ruoyi.project.VRdemo.domain.imData;
+
+import com.alibaba.excel.annotation.ExcelIgnore;
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.ruoyi.common.utils.excel.DataConverter;
+import com.ruoyi.project.VRdemo.domain.RegionDevelop;
+
+public class RegionDevelopImData implements BaseImData<RegionDevelopImData, RegionDevelop> {
+
+    @ExcelProperty("id")
+    private Long id;
+
+    /**
+     * 类别
+     */
+    @ExcelProperty("类别")
+    private String type;
+
+    /**
+     * 题目
+     */
+    @ExcelProperty("题目")
+    private String title;
+
+    /**
+     * 排序
+     */
+    @ExcelProperty("排序")
+    private String sort;
+
+    /**
+     * 文件路径
+     */
+    @ExcelProperty("文件路径")
+    private String path;
+
+    /**
+     * 页数
+     */
+    @ExcelProperty("页数")
+    private Long count;
+
+    @ExcelIgnore
+    DataConverter<RegionDevelopImData, RegionDevelop> converter = new DataConverter<RegionDevelopImData, RegionDevelop>() {
+        @Override
+        public RegionDevelop convert(RegionDevelopImData imData) {
+            RegionDevelop regionDevelop = new RegionDevelop();
+            regionDevelop.setId(imData.getId());
+            regionDevelop.setType(imData.getType());
+            regionDevelop.setTitle(imData.getTitle());
+            regionDevelop.setSort(imData.getSort());
+            regionDevelop.setPath(imData.getPath());
+            regionDevelop.setCount(imData.getCount());
+            return regionDevelop;
+        }
+    };
+
+    @Override
+    public DataConverter<RegionDevelopImData, RegionDevelop> getConverter() {
+        return converter;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setSort(String sort) {
+        this.sort = sort;
+    }
+
+    public String getSort() {
+        return sort;
+    }
+
+    public void setPath(String path) {
+        this.path = path;
+    }
+
+    public String getPath() {
+        return path;
+    }
+
+    public void setCount(Long count) {
+        this.count = count;
+    }
+
+    public Long getCount() {
+        return count;
+    }
+}

+ 73 - 0
src/main/java/com/ruoyi/project/VRdemo/mapper/RegionDevelopMapper.java

@@ -0,0 +1,73 @@
+package com.ruoyi.project.VRdemo.mapper;
+
+import java.util.List;
+
+import com.ruoyi.project.VRdemo.domain.RegionDevelop;
+
+/**
+ * 东南亚地区发展报告Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-10-30
+ */
+public interface RegionDevelopMapper {
+
+    /**
+     * 查询东南亚地区发展报告
+     *
+     * @param id 东南亚地区发展报告主键
+     * @return 东南亚地区发展报告
+     */
+    RegionDevelop selectRegionDevelopById(Long id);
+
+    /**
+     * 根据标题查询
+     */
+    RegionDevelop selectRegionDevelopByTitle(String title);
+
+    /**
+     * 查询东南亚地区发展报告列表
+     *
+     * @param regionDevelop 东南亚地区发展报告
+     * @return 东南亚地区发展报告集合
+     */
+    List<RegionDevelop> selectRegionDevelopList(RegionDevelop regionDevelop);
+
+    /**
+     * 新增东南亚地区发展报告
+     *
+     * @param regionDevelop 东南亚地区发展报告
+     * @return 结果
+     */
+    int insertRegionDevelop(RegionDevelop regionDevelop);
+
+    /**
+     * 批量插入数据
+     */
+    int insertRegionDevelopDataList(List<RegionDevelop> dataList);
+
+    /**
+     * 修改东南亚地区发展报告
+     *
+     * @param regionDevelop 东南亚地区发展报告
+     * @return 结果
+     */
+    int updateRegionDevelop(RegionDevelop regionDevelop);
+
+    /**
+     * 删除东南亚地区发展报告
+     *
+     * @param id 东南亚地区发展报告主键
+     * @return 结果
+     */
+    int deleteRegionDevelopById(Long id);
+
+    /**
+     * 批量删除东南亚地区发展报告
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    int deleteRegionDevelopByIds(Long[] ids);
+
+}

+ 72 - 0
src/main/java/com/ruoyi/project/VRdemo/service/IRegionDevelopService.java

@@ -0,0 +1,72 @@
+package com.ruoyi.project.VRdemo.service;
+
+import java.util.List;
+
+import com.ruoyi.project.VRdemo.domain.RegionDevelop;
+
+/**
+ * 东南亚地区发展报告Service接口
+ *
+ * @author ruoyi
+ * @date 2024-10-30
+ */
+public interface IRegionDevelopService {
+
+    /**
+     * 查询东南亚地区发展报告
+     *
+     * @param id 东南亚地区发展报告主键
+     * @return 东南亚地区发展报告
+     */
+    RegionDevelop selectRegionDevelopById(Long id);
+
+    /**
+     * 查询东南亚地区发展报告列表
+     *
+     * @param regionDevelop 东南亚地区发展报告
+     * @return 东南亚地区发展报告集合
+     */
+    List<RegionDevelop> selectRegionDevelopList(RegionDevelop regionDevelop);
+
+    /**
+     * 新增东南亚地区发展报告
+     *
+     * @param regionDevelop 东南亚地区发展报告
+     * @return 结果
+     */
+    int insertRegionDevelop(RegionDevelop regionDevelop);
+
+    /**
+     * 导入数据
+     *
+     * @param dataList      导入数据列表
+     * @param updateSupport 是否更新已经存在的数据
+     * @return 结果
+     */
+    String importData(List<RegionDevelop> dataList, boolean updateSupport);
+
+    /**
+     * 修改东南亚地区发展报告
+     *
+     * @param regionDevelop 东南亚地区发展报告
+     * @return 结果
+     */
+    int updateRegionDevelop(RegionDevelop regionDevelop);
+
+    /**
+     * 批量删除东南亚地区发展报告
+     *
+     * @param ids 需要删除的东南亚地区发展报告主键集合
+     * @return 结果
+     */
+    int deleteRegionDevelopByIds(Long[] ids);
+
+    /**
+     * 删除东南亚地区发展报告信息
+     *
+     * @param id 东南亚地区发展报告主键
+     * @return 结果
+     */
+    int deleteRegionDevelopById(Long id);
+
+}

+ 133 - 0
src/main/java/com/ruoyi/project/VRdemo/service/impl/RegionDevelopServiceImpl.java

@@ -0,0 +1,133 @@
+package com.ruoyi.project.VRdemo.service.impl;
+
+import java.util.List;
+
+import com.ruoyi.common.utils.DateUtils;
+import com.ruoyi.common.utils.SecurityUtils;
+import com.ruoyi.project.VRdemo.domain.RegionDevelop;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.project.VRdemo.mapper.RegionDevelopMapper;
+import com.ruoyi.project.VRdemo.service.IRegionDevelopService;
+
+/**
+ * 东南亚地区发展报告Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-10-30
+ */
+@Service
+public class RegionDevelopServiceImpl implements IRegionDevelopService {
+
+    private final RegionDevelopMapper regionDevelopMapper;
+
+    public RegionDevelopServiceImpl(@Autowired RegionDevelopMapper regionDevelopMapper) {
+        this.regionDevelopMapper = regionDevelopMapper;
+    }
+
+    /**
+     * 查询东南亚地区发展报告
+     *
+     * @param id 东南亚地区发展报告主键
+     * @return 东南亚地区发展报告
+     */
+    @Override
+    public RegionDevelop selectRegionDevelopById(Long id) {
+        return regionDevelopMapper.selectRegionDevelopById(id);
+    }
+
+    /**
+     * 查询东南亚地区发展报告列表
+     *
+     * @param regionDevelop 东南亚地区发展报告
+     * @return 东南亚地区发展报告
+     */
+    @Override
+    public List<RegionDevelop> selectRegionDevelopList(RegionDevelop regionDevelop) {
+        return regionDevelopMapper.selectRegionDevelopList(regionDevelop);
+    }
+
+    /**
+     * 新增东南亚地区发展报告
+     *
+     * @param regionDevelop 东南亚地区发展报告
+     * @return 结果
+     */
+    @Override
+    public int insertRegionDevelop(RegionDevelop regionDevelop) {
+        regionDevelop.setCreateTime(DateUtils.getNowDate());
+        return regionDevelopMapper.insertRegionDevelop(regionDevelop);
+    }
+
+    /**
+     * 修改东南亚地区发展报告
+     *
+     * @param regionDevelop 东南亚地区发展报告
+     * @return 结果
+     */
+    @Override
+    public int updateRegionDevelop(RegionDevelop regionDevelop) {
+        regionDevelop.setUpdateTime(DateUtils.getNowDate());
+        return regionDevelopMapper.updateRegionDevelop(regionDevelop);
+    }
+
+    /**
+     * 批量删除东南亚地区发展报告
+     *
+     * @param ids 需要删除的东南亚地区发展报告主键
+     * @return 结果
+     */
+    @Override
+    public int deleteRegionDevelopByIds(Long[] ids) {
+        return regionDevelopMapper.deleteRegionDevelopByIds(ids);
+    }
+
+    /**
+     * 删除东南亚地区发展报告信息
+     *
+     * @param id 东南亚地区发展报告主键
+     * @return 结果
+     */
+    @Override
+    public int deleteRegionDevelopById(Long id) {
+        return regionDevelopMapper.deleteRegionDevelopById(id);
+    }
+
+    /**
+     * 导入数据
+     *
+     * @param dataList      数据列表
+     * @param updateSupport 是否更新
+     * @return 结果
+     */
+    @Override
+    public String importData(List<RegionDevelop> dataList, boolean updateSupport) {
+        BulkImportService<RegionDevelop> importService = new BulkImportService<RegionDevelop>() {
+            @Override
+            protected Long checkExistingItem(RegionDevelop item) {
+                RegionDevelop RegionDevelop = regionDevelopMapper.selectRegionDevelopByTitle(item.getTitle());
+                return RegionDevelop == null ? 0L : RegionDevelop.getId();
+            }
+
+            @Override
+            protected boolean updateItem(RegionDevelop item, Long id) {
+                item.setId(id);
+                item.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
+                item.setUpdateTime(DateUtils.getNowDate());
+                return regionDevelopMapper.updateRegionDevelop(item) > 0;
+            }
+
+            @Override
+            protected boolean executeBatch(List<RegionDevelop> batchDataList) {
+                return regionDevelopMapper.insertRegionDevelopDataList(batchDataList) > 0;
+            }
+
+            @Override
+            protected String getItemTitle(RegionDevelop item) {
+                return item.getTitle();
+            }
+        };
+
+        return importService.importData(dataList, updateSupport);
+    }
+}

+ 105 - 0
src/main/resources/mybatis/VRdemo/RegionDevelopMapper.xml

@@ -0,0 +1,105 @@
+<?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.project.VRdemo.mapper.RegionDevelopMapper">
+    
+    <resultMap type="RegionDevelop" id="RegionDevelopResult">
+        <result property="id"    column="id"    />
+        <result property="type"    column="type"    />
+        <result property="title"    column="title"    />
+        <result property="sort"    column="sort"    />
+        <result property="path"    column="path"    />
+        <result property="count"    column="count"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="updateBy"    column="update_by"    />
+    </resultMap>
+
+    <sql id="selectRegionDevelopVo">
+        select id, type, title, sort, path, count, create_time, create_by, update_time, update_by from vr_region_develop
+    </sql>
+
+    <select id="selectRegionDevelopList" parameterType="RegionDevelop" resultMap="RegionDevelopResult">
+        <include refid="selectRegionDevelopVo"/>
+        <where>  
+            <if test="type != null  and type != ''"> and type like concat('%', #{type}, '%')</if>
+            <if test="title != null  and title != ''"> and title like concat('%', #{title}, '%')</if>
+            <if test="sort != null  and sort != ''"> and sort = #{sort}</if>
+            <if test="path != null  and path != ''"> and path like concat('%', #{path}, '%')</if>
+            <if test="count != null and count != '' "> and count = #{count}</if>
+        </where>
+    </select>
+    
+    <select id="selectRegionDevelopById" parameterType="Long" resultMap="RegionDevelopResult">
+        <include refid="selectRegionDevelopVo"/>
+        where id = #{id}
+    </select>
+
+    <select id="selectRegionDevelopByTitle" parameterType="String" resultMap="RegionDevelopResult">
+        <include refid="selectRegionDevelopVo"/>
+        where title = #{title}
+    </select>
+        
+    <insert id="insertRegionDevelop" parameterType="RegionDevelop">
+        insert into vr_region_develop
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="type != null and type != ''">type,</if>
+            <if test="title != null and title != ''">title,</if>
+            <if test="sort != null and sort != ''">sort,</if>
+            <if test="path != null and path != ''">path,</if>
+            <if test="count != null and count != ''">count,</if>
+            <if test="createBy != null and createBy != ''">create_by,</if>
+            <if test="createTime != null ">create_time,</if>
+            <if test="updateBy != null and updateBy != ''">update_by,</if>
+            <if test="updateTime != null ">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="type != null and type != ''">#{type},</if>
+            <if test="title != null and title != ''">#{title},</if>
+            <if test="sort != null and sort != ''">#{sort},</if>
+            <if test="path != null and path != ''">#{path},</if>
+            <if test="count != null and count != ''">#{count},</if>
+            <if test="createBy != null and createBy != ''">#{createBy},</if>
+            <if test="createTime != null ">#{createTime},</if>
+            <if test="updateBy != null and updateBy != ''">#{updateBy},</if>
+            <if test="updateTime != null ">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <insert id="insertRegionDevelopDataList" parameterType="java.util.List">
+        INSERT INTO vr_region_develop (type, title, sort, path, count, create_by,create_time)
+        VALUES
+        <foreach collection="list" item="item" separator=",">
+            (#{item.type}, #{item.title}, #{item.sort}, #{item.path}, #{item.count}, #{item.createBy},#{item.createTime})
+        </foreach>
+    </insert>
+
+    <update id="updateRegionDevelop" parameterType="RegionDevelop">
+        update vr_region_develop
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="type != null and type != ''">type = #{type},</if>
+            <if test="title != null and title != ''">title = #{title},</if>
+            <if test="sort != null and sort != ''">sort = #{sort},</if>
+            <if test="path != null and path != ''">path = #{path},</if>
+            <if test="count != null and count != ''">count = #{count},</if>
+            <if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
+            <if test="createTime != null ">create_time = #{createTime},</if>
+            <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
+            <if test="updateTime != null ">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteRegionDevelopById" parameterType="Long">
+        delete from vr_region_develop where id = #{id}
+    </delete>
+
+    <delete id="deleteRegionDevelopByIds" parameterType="String">
+        delete from vr_region_develop where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>