常用话术
This commit is contained in:
parent
2509d8a5c4
commit
4530b9c44c
@ -0,0 +1,91 @@
|
|||||||
|
package com.xinelu.manage.controller.termbank;
|
||||||
|
|
||||||
|
import com.xinelu.common.annotation.Log;
|
||||||
|
import com.xinelu.common.core.controller.BaseController;
|
||||||
|
import com.xinelu.common.core.domain.AjaxResult;
|
||||||
|
import com.xinelu.common.core.page.TableDataInfo;
|
||||||
|
import com.xinelu.common.enums.BusinessType;
|
||||||
|
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||||
|
import com.xinelu.manage.domain.termbank.TermBank;
|
||||||
|
import com.xinelu.manage.service.termbank.ITermBankService;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 常用术语(知识库)Controller
|
||||||
|
*
|
||||||
|
* @author xinelu
|
||||||
|
* @date 2024-06-07
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/system/bank")
|
||||||
|
public class TermBankController extends BaseController {
|
||||||
|
@Resource
|
||||||
|
private ITermBankService termBankService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询常用术语(知识库)列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:bank:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(TermBank termBank) {
|
||||||
|
startPage();
|
||||||
|
List<TermBank> list = termBankService.selectTermBankList(termBank);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出常用术语(知识库)列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:bank:export')")
|
||||||
|
@Log(title = "常用术语(知识库)", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, TermBank termBank) {
|
||||||
|
List<TermBank> list = termBankService.selectTermBankList(termBank);
|
||||||
|
ExcelUtil<TermBank> util = new ExcelUtil<>(TermBank.class);
|
||||||
|
util.exportExcel(response, list, "常用术语(知识库)数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取常用术语(知识库)详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:bank:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
|
return AjaxResult.success(termBankService.selectTermBankById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增常用术语(知识库)
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:bank:add')")
|
||||||
|
@Log(title = "常用术语(知识库)", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
public AjaxResult add(@RequestBody TermBank termBank) {
|
||||||
|
return toAjax(termBankService.insertTermBank(termBank));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改常用术语(知识库)
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:bank:edit')")
|
||||||
|
@Log(title = "常用术语(知识库)", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping("/edit")
|
||||||
|
public AjaxResult edit(@RequestBody TermBank termBank) {
|
||||||
|
return toAjax(termBankService.updateTermBank(termBank));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除常用术语(知识库)
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:bank:remove')")
|
||||||
|
@Log(title = "常用术语(知识库)", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(termBankService.deleteTermBankByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,100 @@
|
|||||||
|
package com.xinelu.manage.domain.termbank;
|
||||||
|
|
||||||
|
import com.xinelu.common.annotation.Excel;
|
||||||
|
import com.xinelu.common.core.domain.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 常用术语(知识库)对象 term_bank
|
||||||
|
*
|
||||||
|
* @author xinelu
|
||||||
|
* @date 2024-06-07
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ApiModel(value = "常用术语(知识库)对象", description = "term_bank")
|
||||||
|
public class TermBank extends BaseEntity {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键id
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 画像标签和知识库字段表id
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "画像标签和知识库字段表id")
|
||||||
|
@Excel(name = "画像标签和知识库字段表id")
|
||||||
|
private String termCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 内容名称(不用)
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "内容名称(不用)")
|
||||||
|
@Excel(name = "内容名称(不用)")
|
||||||
|
private String termName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字段名称
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "字段名称")
|
||||||
|
@Excel(name = "字段名称")
|
||||||
|
private String termContent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父编码
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "父编码")
|
||||||
|
@Excel(name = "父编码")
|
||||||
|
private String parentTermCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 层级,从1开始,1,2,3……
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "层级,从1开始,1,2,3……")
|
||||||
|
@Excel(name = "层级,从1开始,1,2,3……")
|
||||||
|
private Integer termLevel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 内容排序
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "内容排序")
|
||||||
|
@Excel(name = "内容排序")
|
||||||
|
private Integer termSort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 内容备注信息
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "内容备注信息")
|
||||||
|
@Excel(name = "内容备注信息")
|
||||||
|
private String termRemark;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("termCode", getTermCode())
|
||||||
|
.append("termName", getTermName())
|
||||||
|
.append("termContent", getTermContent())
|
||||||
|
.append("parentTermCode", getParentTermCode())
|
||||||
|
.append("termLevel", getTermLevel())
|
||||||
|
.append("termSort", getTermSort())
|
||||||
|
.append("termRemark", getTermRemark())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.xinelu.manage.mapper.termbank;
|
||||||
|
|
||||||
|
import com.xinelu.manage.domain.termbank.TermBank;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 常用术语(知识库)Mapper接口
|
||||||
|
*
|
||||||
|
* @author xinelu
|
||||||
|
* @date 2024-06-07
|
||||||
|
*/
|
||||||
|
public interface TermBankMapper {
|
||||||
|
/**
|
||||||
|
* 查询常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param id 常用术语(知识库)主键
|
||||||
|
* @return 常用术语(知识库)
|
||||||
|
*/
|
||||||
|
TermBank selectTermBankById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询常用术语(知识库)列表
|
||||||
|
*
|
||||||
|
* @param termBank 常用术语(知识库)
|
||||||
|
* @return 常用术语(知识库)集合
|
||||||
|
*/
|
||||||
|
List<TermBank> selectTermBankList(TermBank termBank);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param termBank 常用术语(知识库)
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertTermBank(TermBank termBank);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param termBank 常用术语(知识库)
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateTermBank(TermBank termBank);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param id 常用术语(知识库)主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteTermBankById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteTermBankByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.xinelu.manage.service.termbank;
|
||||||
|
|
||||||
|
import com.xinelu.manage.domain.termbank.TermBank;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 常用术语(知识库)Service接口
|
||||||
|
*
|
||||||
|
* @author xinelu
|
||||||
|
* @date 2024-06-07
|
||||||
|
*/
|
||||||
|
public interface ITermBankService {
|
||||||
|
/**
|
||||||
|
* 查询常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param id 常用术语(知识库)主键
|
||||||
|
* @return 常用术语(知识库)
|
||||||
|
*/
|
||||||
|
TermBank selectTermBankById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询常用术语(知识库)列表
|
||||||
|
*
|
||||||
|
* @param termBank 常用术语(知识库)
|
||||||
|
* @return 常用术语(知识库)集合
|
||||||
|
*/
|
||||||
|
List<TermBank> selectTermBankList(TermBank termBank);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param termBank 常用术语(知识库)
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertTermBank(TermBank termBank);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param termBank 常用术语(知识库)
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateTermBank(TermBank termBank);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的常用术语(知识库)主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteTermBankByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除常用术语(知识库)信息
|
||||||
|
*
|
||||||
|
* @param id 常用术语(知识库)主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteTermBankById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,90 @@
|
|||||||
|
package com.xinelu.manage.service.termbank.impl;
|
||||||
|
|
||||||
|
import com.xinelu.manage.domain.termbank.TermBank;
|
||||||
|
import com.xinelu.manage.mapper.termbank.TermBankMapper;
|
||||||
|
import com.xinelu.manage.service.termbank.ITermBankService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 常用术语(知识库)Service业务层处理
|
||||||
|
*
|
||||||
|
* @author xinelu
|
||||||
|
* @date 2024-06-07
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TermBankServiceImpl implements ITermBankService {
|
||||||
|
@Resource
|
||||||
|
private TermBankMapper termBankMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param id 常用术语(知识库)主键
|
||||||
|
* @return 常用术语(知识库)
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public TermBank selectTermBankById(Long id) {
|
||||||
|
return termBankMapper.selectTermBankById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询常用术语(知识库)列表
|
||||||
|
*
|
||||||
|
* @param termBank 常用术语(知识库)
|
||||||
|
* @return 常用术语(知识库)
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<TermBank> selectTermBankList(TermBank termBank) {
|
||||||
|
return termBankMapper.selectTermBankList(termBank);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param termBank 常用术语(知识库)
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertTermBank(TermBank termBank) {
|
||||||
|
termBank.setCreateTime(LocalDateTime.now());
|
||||||
|
return termBankMapper.insertTermBank(termBank);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param termBank 常用术语(知识库)
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateTermBank(TermBank termBank) {
|
||||||
|
termBank.setUpdateTime(LocalDateTime.now());
|
||||||
|
return termBankMapper.updateTermBank(termBank);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除常用术语(知识库)
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的常用术语(知识库)主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTermBankByIds(Long[] ids) {
|
||||||
|
return termBankMapper.deleteTermBankByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除常用术语(知识库)信息
|
||||||
|
*
|
||||||
|
* @param id 常用术语(知识库)主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTermBankById(Long id) {
|
||||||
|
return termBankMapper.deleteTermBankById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,162 @@
|
|||||||
|
<?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.xinelu.manage.mapper.termbank.TermBankMapper">
|
||||||
|
|
||||||
|
<resultMap type="TermBank" id="TermBankResult">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="termCode" column="term_code"/>
|
||||||
|
<result property="termName" column="term_name"/>
|
||||||
|
<result property="termContent" column="term_content"/>
|
||||||
|
<result property="parentTermCode" column="parent_term_code"/>
|
||||||
|
<result property="termLevel" column="term_level"/>
|
||||||
|
<result property="termSort" column="term_sort"/>
|
||||||
|
<result property="termRemark" column="term_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="selectTermBankVo">
|
||||||
|
select id, term_code, term_name, term_content, parent_term_code, term_level, term_sort, term_remark, create_by, create_time, update_by, update_time from term_bank
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectTermBankList" parameterType="TermBank" resultMap="TermBankResult">
|
||||||
|
<include refid="selectTermBankVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="termCode != null and termCode != ''">
|
||||||
|
and term_code = #{termCode}
|
||||||
|
</if>
|
||||||
|
<if test="termName != null and termName != ''">
|
||||||
|
and term_name like concat('%', #{termName}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="termContent != null and termContent != ''">
|
||||||
|
and term_content = #{termContent}
|
||||||
|
</if>
|
||||||
|
<if test="parentTermCode != null and parentTermCode != ''">
|
||||||
|
and parent_term_code = #{parentTermCode}
|
||||||
|
</if>
|
||||||
|
<if test="termLevel != null ">
|
||||||
|
and term_level = #{termLevel}
|
||||||
|
</if>
|
||||||
|
<if test="termSort != null ">
|
||||||
|
and term_sort = #{termSort}
|
||||||
|
</if>
|
||||||
|
<if test="termRemark != null and termRemark != ''">
|
||||||
|
and term_remark = #{termRemark}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectTermBankById" parameterType="Long"
|
||||||
|
resultMap="TermBankResult">
|
||||||
|
<include refid="selectTermBankVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTermBank" parameterType="TermBank" useGeneratedKeys="true"
|
||||||
|
keyProperty="id">
|
||||||
|
insert into term_bank
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="termCode != null and termCode != ''">term_code,
|
||||||
|
</if>
|
||||||
|
<if test="termName != null">term_name,
|
||||||
|
</if>
|
||||||
|
<if test="termContent != null">term_content,
|
||||||
|
</if>
|
||||||
|
<if test="parentTermCode != null">parent_term_code,
|
||||||
|
</if>
|
||||||
|
<if test="termLevel != null">term_level,
|
||||||
|
</if>
|
||||||
|
<if test="termSort != null">term_sort,
|
||||||
|
</if>
|
||||||
|
<if test="termRemark != null">term_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="termCode != null and termCode != ''">#{termCode},
|
||||||
|
</if>
|
||||||
|
<if test="termName != null">#{termName},
|
||||||
|
</if>
|
||||||
|
<if test="termContent != null">#{termContent},
|
||||||
|
</if>
|
||||||
|
<if test="parentTermCode != null">#{parentTermCode},
|
||||||
|
</if>
|
||||||
|
<if test="termLevel != null">#{termLevel},
|
||||||
|
</if>
|
||||||
|
<if test="termSort != null">#{termSort},
|
||||||
|
</if>
|
||||||
|
<if test="termRemark != null">#{termRemark},
|
||||||
|
</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="updateTermBank" parameterType="TermBank">
|
||||||
|
update term_bank
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="termCode != null and termCode != ''">term_code =
|
||||||
|
#{termCode},
|
||||||
|
</if>
|
||||||
|
<if test="termName != null">term_name =
|
||||||
|
#{termName},
|
||||||
|
</if>
|
||||||
|
<if test="termContent != null">term_content =
|
||||||
|
#{termContent},
|
||||||
|
</if>
|
||||||
|
<if test="parentTermCode != null">parent_term_code =
|
||||||
|
#{parentTermCode},
|
||||||
|
</if>
|
||||||
|
<if test="termLevel != null">term_level =
|
||||||
|
#{termLevel},
|
||||||
|
</if>
|
||||||
|
<if test="termSort != null">term_sort =
|
||||||
|
#{termSort},
|
||||||
|
</if>
|
||||||
|
<if test="termRemark != null">term_remark =
|
||||||
|
#{termRemark},
|
||||||
|
</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="deleteTermBankById" parameterType="Long">
|
||||||
|
delete from term_bank where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteTermBankByIds" parameterType="String">
|
||||||
|
delete from term_bank where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue
Block a user