From 864cc6bcede77e81462cb5edadd0cb221ffb4478 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Sat, 13 Dec 2025 15:45:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WorkToolSuperCategoryController.java | 109 ++++++++++++++++++ .../intc/invest/domain/WorkToolCategory.java | 6 + .../invest/domain/WorkToolSuperCategory.java | 61 ++++++++++ .../domain/dto/WorkToolCategoryDto.java | 4 + .../domain/dto/WorkToolSuperCategoryDto.java | 29 +++++ .../domain/vo/WorkToolSuperCategoryVo.java | 17 +++ .../mapper/WorkToolSuperCategoryMapper.java | 82 +++++++++++++ .../IWorkToolSuperCategoryService.java | 63 ++++++++++ .../WorkToolSuperCategoryServiceImpl.java | 104 +++++++++++++++++ .../mapper/invest/WorkToolCategoryMapper.xml | 6 + .../invest/WorkToolSuperCategoryMapper.xml | 105 +++++++++++++++++ 11 files changed, 586 insertions(+) create mode 100644 intc-modules/intc-invest/src/main/java/com/intc/invest/controller/WorkToolSuperCategoryController.java create mode 100644 intc-modules/intc-invest/src/main/java/com/intc/invest/domain/WorkToolSuperCategory.java create mode 100644 intc-modules/intc-invest/src/main/java/com/intc/invest/domain/dto/WorkToolSuperCategoryDto.java create mode 100644 intc-modules/intc-invest/src/main/java/com/intc/invest/domain/vo/WorkToolSuperCategoryVo.java create mode 100644 intc-modules/intc-invest/src/main/java/com/intc/invest/mapper/WorkToolSuperCategoryMapper.java create mode 100644 intc-modules/intc-invest/src/main/java/com/intc/invest/service/IWorkToolSuperCategoryService.java create mode 100644 intc-modules/intc-invest/src/main/java/com/intc/invest/service/impl/WorkToolSuperCategoryServiceImpl.java create mode 100644 intc-modules/intc-invest/src/main/resources/mapper/invest/WorkToolSuperCategoryMapper.xml diff --git a/intc-modules/intc-invest/src/main/java/com/intc/invest/controller/WorkToolSuperCategoryController.java b/intc-modules/intc-invest/src/main/java/com/intc/invest/controller/WorkToolSuperCategoryController.java new file mode 100644 index 0000000..3dff392 --- /dev/null +++ b/intc-modules/intc-invest/src/main/java/com/intc/invest/controller/WorkToolSuperCategoryController.java @@ -0,0 +1,109 @@ +package com.intc.invest.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import javax.annotation.Resource; +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.intc.common.log.annotation.Log; +import com.intc.common.log.enums.BusinessType; +import com.intc.invest.domain.WorkToolSuperCategory; +import com.intc.invest.domain.vo.WorkToolSuperCategoryVo; +import com.intc.invest.domain.dto.WorkToolSuperCategoryDto; +import com.intc.invest.service.IWorkToolSuperCategoryService; +import com.intc.common.core.web.controller.BaseController; +import com.intc.common.core.web.domain.AjaxResult; +import com.intc.common.core.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import com.intc.common.core.web.page.TableDataInfo; + +/** + * 工作工具大分类Controller + * + * @author tianyongbao + * @date 2025-12-13 + */ +@Api(tags=" 工作工具大分类") +@RestController +@RequestMapping("/workToolSuperCategory") +public class WorkToolSuperCategoryController extends BaseController +{ + @Resource + private IWorkToolSuperCategoryService workToolSuperCategoryService; + + /** + * 查询工作工具大分类列表 + */ + @ApiOperation(value="查询工作工具大分类列表",response = WorkToolSuperCategoryVo.class) + @GetMapping("/list") + public TableDataInfo list(WorkToolSuperCategoryDto workToolSuperCategoryDto) + { + startPage(); + List list = workToolSuperCategoryService.selectWorkToolSuperCategoryList(workToolSuperCategoryDto); + return getDataTable(list); + } + + /** + * 导出工作工具大分类列表 + */ + @ApiOperation(value="导出工作工具大分类列表") + @Log(title = "工作工具大分类", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, WorkToolSuperCategoryDto workToolSuperCategoryDto) + { + List list = workToolSuperCategoryService.selectWorkToolSuperCategoryList(workToolSuperCategoryDto); + ExcelUtil util = new ExcelUtil(WorkToolSuperCategoryVo.class); + util.exportExcel(response, list, "工作工具大分类数据"); + } + + /** + * 获取工作工具大分类详细信息 + */ + @ApiOperation(value="获取工作工具大分类详细信息") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(workToolSuperCategoryService.selectWorkToolSuperCategoryById(id)); + } + + /** + * 新增工作工具大分类 + */ + @ApiOperation(value="新增工作工具大分类") + @Log(title = "工作工具大分类", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody WorkToolSuperCategory workToolSuperCategory) + { + return toAjax(workToolSuperCategoryService.insertWorkToolSuperCategory(workToolSuperCategory)); + } + + /** + * 修改工作工具大分类 + */ + @ApiOperation(value="修改工作工具大分类") + @Log(title = "工作工具大分类", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody WorkToolSuperCategory workToolSuperCategory) + { + return toAjax(workToolSuperCategoryService.updateWorkToolSuperCategory(workToolSuperCategory)); + } + + /** + * 删除工作工具大分类 + */ + @ApiOperation(value="删除工作工具大分类") + @Log(title = "工作工具大分类", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(workToolSuperCategoryService.deleteWorkToolSuperCategoryByIds(ids)); + } +} diff --git a/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/WorkToolCategory.java b/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/WorkToolCategory.java index 7df2223..ab0fbf5 100644 --- a/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/WorkToolCategory.java +++ b/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/WorkToolCategory.java @@ -41,6 +41,11 @@ public class WorkToolCategory extends BaseEntity @Excel(name = "排序") private Integer sortOrder; + /** 大分类ID */ + @ApiModelProperty(value="大分类ID") + @Excel(name = "大分类ID") + private Long superCategoryId; + /** 删除标志(0代表存在 1代表删除) */ private String delFlag; @@ -51,6 +56,7 @@ public class WorkToolCategory extends BaseEntity .append("categoryKey", getCategoryKey()) .append("categoryTitle", getCategoryTitle()) .append("sortOrder", getSortOrder()) + .append("superCategoryId", getSuperCategoryId()) .append("createBy", getCreateBy()) .append("createTime", getCreateTime()) .append("updateBy", getUpdateBy()) diff --git a/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/WorkToolSuperCategory.java b/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/WorkToolSuperCategory.java new file mode 100644 index 0000000..943a609 --- /dev/null +++ b/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/WorkToolSuperCategory.java @@ -0,0 +1,61 @@ +package com.intc.invest.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.intc.common.core.annotation.Excel; +import com.intc.common.core.web.domain.BaseEntity; +import lombok.Data; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import javax.validation.constraints.*; +/** + * 工作工具大分类对象 work_tool_super_category + * + * @author tianyongbao + * @date 2025-12-13 + */ +@ApiModel("工作工具大分类对象") +@Data +public class WorkToolSuperCategory extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键ID */ + private Long id; + + /** 大分类标识 */ + @ApiModelProperty(value="大分类标识)") + @NotNull(message="大分类标识不能为空") + @Excel(name = "大分类标识") + private String superCategoryKey; + + /** 大分类名称 */ + @ApiModelProperty(value="大分类名称)") + @NotNull(message="大分类名称不能为空") + @Excel(name = "大分类名称") + private String superCategoryTitle; + + /** 排序序号 */ + @ApiModelProperty(value="排序序号") + @Excel(name = "排序序号") + private Integer sortOrder; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("superCategoryKey", getSuperCategoryKey()) + .append("superCategoryTitle", getSuperCategoryTitle()) + .append("sortOrder", getSortOrder()) + .append("delFlag", getDelFlag()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/dto/WorkToolCategoryDto.java b/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/dto/WorkToolCategoryDto.java index 47a5e57..ebc914d 100644 --- a/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/dto/WorkToolCategoryDto.java +++ b/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/dto/WorkToolCategoryDto.java @@ -26,4 +26,8 @@ public class WorkToolCategoryDto extends BaseEntity implements Serializable /** 分类标题 */ @ApiModelProperty(value="分类标题") private String categoryTitle; + + /** 大分类ID */ + @ApiModelProperty(value="大分类ID") + private Long superCategoryId; } diff --git a/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/dto/WorkToolSuperCategoryDto.java b/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/dto/WorkToolSuperCategoryDto.java new file mode 100644 index 0000000..a48547f --- /dev/null +++ b/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/dto/WorkToolSuperCategoryDto.java @@ -0,0 +1,29 @@ +package com.intc.invest.domain.dto; + +import com.intc.common.core.web.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +/** + * 工作工具大分类Dto对象 work_tool_super_category + * + * @author tianyongbao + * @date 2025-12-13 + */ +@ApiModel("工作工具大分类Dto对象") +@Data +public class WorkToolSuperCategoryDto extends BaseEntity implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 大分类标识 */ + @ApiModelProperty(value="大分类标识") + private String superCategoryKey; + + /** 大分类名称 */ + @ApiModelProperty(value="大分类名称") + private String superCategoryTitle; + +} diff --git a/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/vo/WorkToolSuperCategoryVo.java b/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/vo/WorkToolSuperCategoryVo.java new file mode 100644 index 0000000..60e7e49 --- /dev/null +++ b/intc-modules/intc-invest/src/main/java/com/intc/invest/domain/vo/WorkToolSuperCategoryVo.java @@ -0,0 +1,17 @@ +package com.intc.invest.domain.vo; + +import com.intc.invest.domain.WorkToolSuperCategory; +import lombok.Data; +import io.swagger.annotations.ApiModel; +/** + * 工作工具大分类Vo对象 work_tool_super_category + * + * @author tianyongbao + * @date 2025-12-13 + */ +@ApiModel("工作工具大分类Vo对象") +@Data +public class WorkToolSuperCategoryVo extends WorkToolSuperCategory +{ + +} diff --git a/intc-modules/intc-invest/src/main/java/com/intc/invest/mapper/WorkToolSuperCategoryMapper.java b/intc-modules/intc-invest/src/main/java/com/intc/invest/mapper/WorkToolSuperCategoryMapper.java new file mode 100644 index 0000000..eb1b52f --- /dev/null +++ b/intc-modules/intc-invest/src/main/java/com/intc/invest/mapper/WorkToolSuperCategoryMapper.java @@ -0,0 +1,82 @@ +package com.intc.invest.mapper; + +import com.intc.common.datascope.annotation.DataScope; +import com.intc.invest.domain.WorkToolSuperCategory; +import com.intc.invest.domain.dto.WorkToolSuperCategoryDto; +import com.intc.invest.domain.vo.WorkToolSuperCategoryVo; + +import java.util.List; + +/** + * 工作工具大分类Mapper接口 + * + * @author tianyongbao + * @date 2025-12-13 + */ +public interface WorkToolSuperCategoryMapper +{ + /** + * 查询工作工具大分类 + * + * @param id 工作工具大分类主键 + * @return 工作工具大分类 + */ + public WorkToolSuperCategoryVo selectWorkToolSuperCategoryById(Long id); + + /** + * 查询工作工具大分类列表 + * + * @param workToolSuperCategoryDto 工作工具大分类 + * @return 工作工具大分类集合 + */ + @DataScope(businessAlias = "a") + public List selectWorkToolSuperCategoryList(WorkToolSuperCategoryDto workToolSuperCategoryDto); + + /** + * 新增工作工具大分类 + * + * @param workToolSuperCategory 工作工具大分类 + * @return 结果 + */ + public int insertWorkToolSuperCategory(WorkToolSuperCategory workToolSuperCategory); + + /** + * 修改工作工具大分类 + * + * @param workToolSuperCategory 工作工具大分类 + * @return 结果 + */ + public int updateWorkToolSuperCategory(WorkToolSuperCategory workToolSuperCategory); + + /** + * 删除工作工具大分类 + * + * @param id 工作工具大分类主键 + * @return 结果 + */ + public int deleteWorkToolSuperCategoryById(Long id); + + /** + * 批量删除工作工具大分类 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteWorkToolSuperCategoryByIds(Long[] ids); + + /** + * 逻辑删除工作工具大分类 + * + * @param id 工作工具大分类主键 + * @return 结果 + */ + public int removeWorkToolSuperCategoryById(Long id); + + /** + * 批量逻辑删除工作工具大分类 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int removeWorkToolSuperCategoryByIds(Long[] ids); +} diff --git a/intc-modules/intc-invest/src/main/java/com/intc/invest/service/IWorkToolSuperCategoryService.java b/intc-modules/intc-invest/src/main/java/com/intc/invest/service/IWorkToolSuperCategoryService.java new file mode 100644 index 0000000..1ceb885 --- /dev/null +++ b/intc-modules/intc-invest/src/main/java/com/intc/invest/service/IWorkToolSuperCategoryService.java @@ -0,0 +1,63 @@ +package com.intc.invest.service; + +import java.util.List; +import com.intc.invest.domain.WorkToolSuperCategory; +import com.intc.invest.domain.dto.WorkToolSuperCategoryDto; +import com.intc.invest.domain.vo.WorkToolSuperCategoryVo; + +/** + * 工作工具大分类Service接口 + * + * @author tianyongbao + * @date 2025-12-13 + */ +public interface IWorkToolSuperCategoryService +{ + /** + * 查询工作工具大分类 + * + * @param id 工作工具大分类主键 + * @return 工作工具大分类 + */ + public WorkToolSuperCategoryVo selectWorkToolSuperCategoryById(Long id); + + /** + * 查询工作工具大分类列表 + * + * @param workToolSuperCategoryDto 工作工具大分类 + * @return 工作工具大分类集合 + */ + public List selectWorkToolSuperCategoryList(WorkToolSuperCategoryDto workToolSuperCategoryDto); + + /** + * 新增工作工具大分类 + * + * @param workToolSuperCategory 工作工具大分类 + * @return 结果 + */ + public int insertWorkToolSuperCategory(WorkToolSuperCategory workToolSuperCategory); + + /** + * 修改工作工具大分类 + * + * @param workToolSuperCategory 工作工具大分类 + * @return 结果 + */ + public int updateWorkToolSuperCategory(WorkToolSuperCategory workToolSuperCategory); + + /** + * 批量删除工作工具大分类 + * + * @param ids 需要删除的工作工具大分类主键集合 + * @return 结果 + */ + public int deleteWorkToolSuperCategoryByIds(Long[] ids); + + /** + * 删除工作工具大分类信息 + * + * @param id 工作工具大分类主键 + * @return 结果 + */ + public int deleteWorkToolSuperCategoryById(Long id); +} diff --git a/intc-modules/intc-invest/src/main/java/com/intc/invest/service/impl/WorkToolSuperCategoryServiceImpl.java b/intc-modules/intc-invest/src/main/java/com/intc/invest/service/impl/WorkToolSuperCategoryServiceImpl.java new file mode 100644 index 0000000..b63cd84 --- /dev/null +++ b/intc-modules/intc-invest/src/main/java/com/intc/invest/service/impl/WorkToolSuperCategoryServiceImpl.java @@ -0,0 +1,104 @@ +package com.intc.invest.service.impl; + +import com.intc.common.core.utils.DateUtils; +import com.intc.common.core.utils.IdWorker; +import com.intc.common.security.utils.SecurityUtils; +import com.intc.invest.domain.WorkToolSuperCategory; +import com.intc.invest.domain.dto.WorkToolSuperCategoryDto; +import com.intc.invest.domain.vo.WorkToolSuperCategoryVo; +import com.intc.invest.mapper.WorkToolSuperCategoryMapper; +import com.intc.invest.service.IWorkToolSuperCategoryService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 工作工具大分类Service业务层处理 + * + * @author tianyongbao + * @date 2025-12-13 + */ +@Service +public class WorkToolSuperCategoryServiceImpl implements IWorkToolSuperCategoryService +{ + @Resource + private WorkToolSuperCategoryMapper workToolSuperCategoryMapper; + + /** + * 查询工作工具大分类 + * + * @param id 工作工具大分类主键 + * @return 工作工具大分类 + */ + @Override + public WorkToolSuperCategoryVo selectWorkToolSuperCategoryById(Long id) + { + return workToolSuperCategoryMapper.selectWorkToolSuperCategoryById(id); + } + + /** + * 查询工作工具大分类列表 + * + * @param workToolSuperCategoryDto 工作工具大分类 + * @return 工作工具大分类 + */ + @Override + public List selectWorkToolSuperCategoryList(WorkToolSuperCategoryDto workToolSuperCategoryDto) + { + return workToolSuperCategoryMapper.selectWorkToolSuperCategoryList(workToolSuperCategoryDto); + } + + /** + * 新增工作工具大分类 + * + * @param workToolSuperCategory 工作工具大分类 + * @return 结果 + */ + @Override + public int insertWorkToolSuperCategory(WorkToolSuperCategory workToolSuperCategory) + { + workToolSuperCategory.setCreateBy(SecurityUtils.getUsername()); + workToolSuperCategory.setCreateTime(DateUtils.getNowDate()); + workToolSuperCategory.setId(IdWorker.getId()); + return workToolSuperCategoryMapper.insertWorkToolSuperCategory(workToolSuperCategory); + } + + /** + * 修改工作工具大分类 + * + * @param workToolSuperCategory 工作工具大分类 + * @return 结果 + */ + @Override + public int updateWorkToolSuperCategory(WorkToolSuperCategory workToolSuperCategory) + { + workToolSuperCategory.setUpdateBy(SecurityUtils.getUsername()); + workToolSuperCategory.setUpdateTime(DateUtils.getNowDate()); + return workToolSuperCategoryMapper.updateWorkToolSuperCategory(workToolSuperCategory); + } + + /** + * 批量删除工作工具大分类 + * + * @param ids 需要删除的工作工具大分类主键 + * @return 结果 + */ + @Override + public int deleteWorkToolSuperCategoryByIds(Long[] ids) + { + return workToolSuperCategoryMapper.removeWorkToolSuperCategoryByIds(ids); + } + + /** + * 删除工作工具大分类信息 + * + * @param id 工作工具大分类主键 + * @return 结果 + */ + @Override + public int deleteWorkToolSuperCategoryById(Long id) + { + return workToolSuperCategoryMapper.removeWorkToolSuperCategoryById(id); + } +} diff --git a/intc-modules/intc-invest/src/main/resources/mapper/invest/WorkToolCategoryMapper.xml b/intc-modules/intc-invest/src/main/resources/mapper/invest/WorkToolCategoryMapper.xml index a935671..1ad69b4 100644 --- a/intc-modules/intc-invest/src/main/resources/mapper/invest/WorkToolCategoryMapper.xml +++ b/intc-modules/intc-invest/src/main/resources/mapper/invest/WorkToolCategoryMapper.xml @@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -23,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" wtc.category_key, wtc.category_title, wtc.sort_order, + wtc.super_category_id, wtc.create_by, wtc.create_time, wtc.update_by, @@ -38,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" wtc.del_flag='0' and wtc.category_key like '%'|| #{categoryKey}||'%' and wtc.category_title like '%'|| #{categoryTitle}||'%' + and wtc.super_category_id = #{superCategoryId} ${params.dataScope} @@ -56,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" category_key, category_title, sort_order, + super_category_id, create_by, create_time, update_by, @@ -68,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{categoryKey}, #{categoryTitle}, #{sortOrder}, + #{superCategoryId}, #{createBy}, #{createTime}, #{updateBy}, @@ -83,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" category_key = #{categoryKey}, category_title = #{categoryTitle}, sort_order = #{sortOrder}, + super_category_id = #{superCategoryId}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, diff --git a/intc-modules/intc-invest/src/main/resources/mapper/invest/WorkToolSuperCategoryMapper.xml b/intc-modules/intc-invest/src/main/resources/mapper/invest/WorkToolSuperCategoryMapper.xml new file mode 100644 index 0000000..802aeb8 --- /dev/null +++ b/intc-modules/intc-invest/src/main/resources/mapper/invest/WorkToolSuperCategoryMapper.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + select a.id, a.super_category_key, a.super_category_title, a.sort_order, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.remark from work_tool_super_category a + + + + + + + + insert into work_tool_super_category + + id, + super_category_key, + super_category_title, + sort_order, + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + + + #{id}, + #{superCategoryKey}, + #{superCategoryTitle}, + #{sortOrder}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + + + + + update work_tool_super_category + + super_category_key = #{superCategoryKey}, + super_category_title = #{superCategoryTitle}, + sort_order = #{sortOrder}, + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from work_tool_super_category where id = #{id} + + + + delete from work_tool_super_category where id in + + #{id} + + + + update work_tool_super_category set del_flag='2' where id = #{id} + + + + update work_tool_super_category set del_flag='2' where id in + + #{id} + + +