受控文件功能开发
parent
f09dcd1aa1
commit
1320887022
@ -0,0 +1,98 @@
|
||||
package com.op.quality.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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.op.common.log.annotation.Log;
|
||||
import com.op.common.log.enums.BusinessType;
|
||||
import com.op.common.security.annotation.RequiresPermissions;
|
||||
import com.op.quality.domain.QcCheckTypeFile;
|
||||
import com.op.quality.service.IQcCheckTypeFileService;
|
||||
import com.op.common.core.web.controller.BaseController;
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
import com.op.common.core.utils.poi.ExcelUtil;
|
||||
import com.op.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 检验节点维护Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-10-11
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/checkTypeFile")
|
||||
public class QcCheckTypeFileController extends BaseController {
|
||||
@Autowired
|
||||
private IQcCheckTypeFileService qcCheckTypeFileService;
|
||||
|
||||
/**
|
||||
* 查询检验节点维护列表
|
||||
*/
|
||||
//@RequiresPermissions("system:file:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(QcCheckTypeFile qcCheckTypeFile) {
|
||||
startPage();
|
||||
List<QcCheckTypeFile> list = qcCheckTypeFileService.selectQcCheckTypeFileList(qcCheckTypeFile);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检验节点维护列表
|
||||
*/
|
||||
//@RequiresPermissions("system:file:export")
|
||||
@Log(title = "检验节点维护", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, QcCheckTypeFile qcCheckTypeFile) {
|
||||
List<QcCheckTypeFile> list = qcCheckTypeFileService.selectQcCheckTypeFileList(qcCheckTypeFile);
|
||||
ExcelUtil<QcCheckTypeFile> util = new ExcelUtil<QcCheckTypeFile>(QcCheckTypeFile. class);
|
||||
util.exportExcel(response, list, "检验节点维护数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取检验节点维护详细信息
|
||||
*/
|
||||
//@RequiresPermissions("system:file:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id) {
|
||||
return success(qcCheckTypeFileService.selectQcCheckTypeFileById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检验节点维护
|
||||
*/
|
||||
//@RequiresPermissions("system:file:add")
|
||||
@Log(title = "检验节点维护", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody QcCheckTypeFile qcCheckTypeFile) {
|
||||
return toAjax(qcCheckTypeFileService.insertQcCheckTypeFile(qcCheckTypeFile));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检验节点维护
|
||||
*/
|
||||
//@RequiresPermissions("system:file:edit")
|
||||
@Log(title = "检验节点维护", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody QcCheckTypeFile qcCheckTypeFile) {
|
||||
return toAjax(qcCheckTypeFileService.updateQcCheckTypeFile(qcCheckTypeFile));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检验节点维护
|
||||
*/
|
||||
//@RequiresPermissions("system:file:remove")
|
||||
@Log(title = "检验节点维护", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids) {
|
||||
return toAjax(qcCheckTypeFileService.deleteQcCheckTypeFileByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,158 @@
|
||||
package com.op.quality.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 检验节点维护对象 qc_check_type_file
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-10-11
|
||||
*/
|
||||
public class QcCheckTypeFile extends BaseEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** id */
|
||||
private String id;
|
||||
|
||||
/** 检验节点 */
|
||||
@Excel(name = "检验节点")
|
||||
private String checkType;
|
||||
private String checkName;
|
||||
/** 有效期开始 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "有效期开始", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 有效期结束 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "有效期结束", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date endTime;
|
||||
|
||||
/** 文件编号 */
|
||||
@Excel(name = "文件编号")
|
||||
private String fileNo;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String attr1;
|
||||
|
||||
/** 工厂编码 */
|
||||
@Excel(name = "工厂编码")
|
||||
private String factoryCode;
|
||||
|
||||
/** 删除标识1删除0正常 */
|
||||
private String delFlag;
|
||||
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String bz;
|
||||
|
||||
/** 版本 */
|
||||
@Excel(name = "版本")
|
||||
private String fileVersion;
|
||||
|
||||
public String getCheckName() {
|
||||
return checkName;
|
||||
}
|
||||
|
||||
public void setCheckName(String checkName) {
|
||||
this.checkName = checkName;
|
||||
}
|
||||
|
||||
public void setId(String id){
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId(){
|
||||
return id;
|
||||
}
|
||||
public void setCheckType(String checkType){
|
||||
this.checkType = checkType;
|
||||
}
|
||||
|
||||
public String getCheckType(){
|
||||
return checkType;
|
||||
}
|
||||
public void setStartTime(Date startTime){
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime(){
|
||||
return startTime;
|
||||
}
|
||||
public void setEndTime(Date endTime){
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public Date getEndTime(){
|
||||
return endTime;
|
||||
}
|
||||
public void setFileNo(String fileNo){
|
||||
this.fileNo = fileNo;
|
||||
}
|
||||
|
||||
public String getFileNo(){
|
||||
return fileNo;
|
||||
}
|
||||
public void setAttr1(String attr1){
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1(){
|
||||
return attr1;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode){
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode(){
|
||||
return factoryCode;
|
||||
}
|
||||
public void setDelFlag(String delFlag){
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag(){
|
||||
return delFlag;
|
||||
}
|
||||
public void setBz(String bz){
|
||||
this.bz = bz;
|
||||
}
|
||||
|
||||
public String getBz(){
|
||||
return bz;
|
||||
}
|
||||
public void setFileVersion(String fileVersion){
|
||||
this.fileVersion = fileVersion;
|
||||
}
|
||||
|
||||
public String getFileVersion(){
|
||||
return fileVersion;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(){
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id",getId())
|
||||
.append("checkType",getCheckType())
|
||||
.append("startTime",getStartTime())
|
||||
.append("endTime",getEndTime())
|
||||
.append("fileNo",getFileNo())
|
||||
.append("attr1",getAttr1())
|
||||
.append("createBy",getCreateBy())
|
||||
.append("createTime",getCreateTime())
|
||||
.append("updateBy",getUpdateBy())
|
||||
.append("updateTime",getUpdateTime())
|
||||
.append("factoryCode",getFactoryCode())
|
||||
.append("delFlag",getDelFlag())
|
||||
.append("remark",getRemark())
|
||||
.append("bz",getBz())
|
||||
.append("fileVersion",getFileVersion())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.quality.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.quality.domain.QcCheckTypeFile;
|
||||
|
||||
/**
|
||||
* 检验节点维护Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-10-11
|
||||
*/
|
||||
public interface QcCheckTypeFileMapper {
|
||||
/**
|
||||
* 查询检验节点维护
|
||||
*
|
||||
* @param id 检验节点维护主键
|
||||
* @return 检验节点维护
|
||||
*/
|
||||
public QcCheckTypeFile selectQcCheckTypeFileById(String id);
|
||||
|
||||
/**
|
||||
* 查询检验节点维护列表
|
||||
*
|
||||
* @param qcCheckTypeFile 检验节点维护
|
||||
* @return 检验节点维护集合
|
||||
*/
|
||||
public List<QcCheckTypeFile> selectQcCheckTypeFileList(QcCheckTypeFile qcCheckTypeFile);
|
||||
|
||||
/**
|
||||
* 新增检验节点维护
|
||||
*
|
||||
* @param qcCheckTypeFile 检验节点维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertQcCheckTypeFile(QcCheckTypeFile qcCheckTypeFile);
|
||||
|
||||
/**
|
||||
* 修改检验节点维护
|
||||
*
|
||||
* @param qcCheckTypeFile 检验节点维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateQcCheckTypeFile(QcCheckTypeFile qcCheckTypeFile);
|
||||
|
||||
/**
|
||||
* 删除检验节点维护
|
||||
*
|
||||
* @param id 检验节点维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTypeFileById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除检验节点维护
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTypeFileByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.quality.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.quality.domain.QcCheckTypeFile;
|
||||
|
||||
/**
|
||||
* 检验节点维护Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-10-11
|
||||
*/
|
||||
public interface IQcCheckTypeFileService {
|
||||
/**
|
||||
* 查询检验节点维护
|
||||
*
|
||||
* @param id 检验节点维护主键
|
||||
* @return 检验节点维护
|
||||
*/
|
||||
public QcCheckTypeFile selectQcCheckTypeFileById(String id);
|
||||
|
||||
/**
|
||||
* 查询检验节点维护列表
|
||||
*
|
||||
* @param qcCheckTypeFile 检验节点维护
|
||||
* @return 检验节点维护集合
|
||||
*/
|
||||
public List<QcCheckTypeFile> selectQcCheckTypeFileList(QcCheckTypeFile qcCheckTypeFile);
|
||||
|
||||
/**
|
||||
* 新增检验节点维护
|
||||
*
|
||||
* @param qcCheckTypeFile 检验节点维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertQcCheckTypeFile(QcCheckTypeFile qcCheckTypeFile);
|
||||
|
||||
/**
|
||||
* 修改检验节点维护
|
||||
*
|
||||
* @param qcCheckTypeFile 检验节点维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateQcCheckTypeFile(QcCheckTypeFile qcCheckTypeFile);
|
||||
|
||||
/**
|
||||
* 批量删除检验节点维护
|
||||
*
|
||||
* @param ids 需要删除的检验节点维护主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTypeFileByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除检验节点维护信息
|
||||
*
|
||||
* @param id 检验节点维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTypeFileById(String id);
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package com.op.quality.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.common.core.utils.DateUtils;
|
||||
import com.op.common.core.utils.uuid.IdUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.op.quality.mapper.QcCheckTypeFileMapper;
|
||||
import com.op.quality.domain.QcCheckTypeFile;
|
||||
import com.op.quality.service.IQcCheckTypeFileService;
|
||||
|
||||
/**
|
||||
* 检验节点维护Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-10-11
|
||||
*/
|
||||
@Service
|
||||
public class QcCheckTypeFileServiceImpl implements IQcCheckTypeFileService {
|
||||
@Autowired
|
||||
private QcCheckTypeFileMapper qcCheckTypeFileMapper;
|
||||
|
||||
/**
|
||||
* 查询检验节点维护
|
||||
*
|
||||
* @param id 检验节点维护主键
|
||||
* @return 检验节点维护
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public QcCheckTypeFile selectQcCheckTypeFileById(String id) {
|
||||
return qcCheckTypeFileMapper.selectQcCheckTypeFileById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检验节点维护列表
|
||||
*
|
||||
* @param qcCheckTypeFile 检验节点维护
|
||||
* @return 检验节点维护
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<QcCheckTypeFile> selectQcCheckTypeFileList(QcCheckTypeFile qcCheckTypeFile) {
|
||||
return qcCheckTypeFileMapper.selectQcCheckTypeFileList(qcCheckTypeFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检验节点维护
|
||||
*
|
||||
* @param qcCheckTypeFile 检验节点维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int insertQcCheckTypeFile(QcCheckTypeFile qcCheckTypeFile) {
|
||||
qcCheckTypeFile.setCreateTime(DateUtils.getNowDate());
|
||||
qcCheckTypeFile.setId(IdUtils.fastSimpleUUID());
|
||||
return qcCheckTypeFileMapper.insertQcCheckTypeFile(qcCheckTypeFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检验节点维护
|
||||
*
|
||||
* @param qcCheckTypeFile 检验节点维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int updateQcCheckTypeFile(QcCheckTypeFile qcCheckTypeFile) {
|
||||
qcCheckTypeFile.setUpdateTime(DateUtils.getNowDate());
|
||||
return qcCheckTypeFileMapper.updateQcCheckTypeFile(qcCheckTypeFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除检验节点维护
|
||||
*
|
||||
* @param ids 需要删除的检验节点维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteQcCheckTypeFileByIds(String[] ids) {
|
||||
return qcCheckTypeFileMapper.deleteQcCheckTypeFileByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检验节点维护信息
|
||||
*
|
||||
* @param id 检验节点维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteQcCheckTypeFileById(String id) {
|
||||
return qcCheckTypeFileMapper.deleteQcCheckTypeFileById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,208 @@
|
||||
<?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.op.quality.mapper.QcCheckTypeFileMapper">
|
||||
|
||||
<resultMap type="QcCheckTypeFile" id="QcCheckTypeFileResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="checkType" column="check_type"/>
|
||||
<result property="checkName" column="checkName"/>
|
||||
|
||||
<result property="startTime" column="start_time"/>
|
||||
<result property="endTime" column="end_time"/>
|
||||
<result property="fileNo" column="file_no"/>
|
||||
<result property="attr1" column="attr1"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="factoryCode" column="factory_code"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="bz" column="bz"/>
|
||||
<result property="fileVersion" column="file_version"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectQcCheckTypeFileVo">
|
||||
select id, check_type, start_time, end_time, file_no, attr1, create_by,
|
||||
create_time, update_by,
|
||||
update_time, factory_code, del_flag, remark, bz, file_version
|
||||
from qc_check_type_file
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="selectQcCheckTypeFileList" parameterType="QcCheckTypeFile" resultMap="QcCheckTypeFileResult">
|
||||
select qctf.id, qctf.check_type, qct.check_name checkName,
|
||||
qctf.start_time, qctf.end_time, qctf.file_no, qctf.attr1, qctf.create_by,
|
||||
qctf.create_time, qctf.update_by,
|
||||
qctf.update_time, qctf.factory_code, qctf.del_flag, qctf.remark, qctf.bz, qctf.file_version
|
||||
from qc_check_type_file qctf
|
||||
left join qc_check_type qct on qct.order_code = qctf.check_type
|
||||
<where>
|
||||
<if test="checkType != null and checkType != ''">
|
||||
and qctf.check_type = #{checkType}
|
||||
</if>
|
||||
<if test="startTime != null ">
|
||||
and qctf.start_time = #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null ">
|
||||
and qctf.end_time = #{endTime}
|
||||
</if>
|
||||
<if test="fileNo != null and fileNo != ''">
|
||||
and qctf.file_no like concat('%',#{fileNo},'%')
|
||||
</if>
|
||||
<if test="attr1 != null and attr1 != ''">
|
||||
and qctf.attr1 = #{attr1}
|
||||
</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">
|
||||
and qctf.factory_code = #{factoryCode}
|
||||
</if>
|
||||
<if test="bz != null and bz != ''">
|
||||
and qctf.bz = #{bz}
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">
|
||||
and qctf.remark like concat('%',#{remark},'%')
|
||||
</if>
|
||||
<if test="fileVersion != null and fileVersion != ''">
|
||||
and qctf.file_version = #{fileVersion}
|
||||
</if>
|
||||
and qctf.del_flag = '0' and qct.del_flag= '0'
|
||||
order by qctf.start_time
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectQcCheckTypeFileById" parameterType="String"
|
||||
resultMap="QcCheckTypeFileResult">
|
||||
<include refid="selectQcCheckTypeFileVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertQcCheckTypeFile" parameterType="QcCheckTypeFile">
|
||||
insert into qc_check_type_file
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,
|
||||
</if>
|
||||
<if test="checkType != null">check_type,
|
||||
</if>
|
||||
<if test="startTime != null">start_time,
|
||||
</if>
|
||||
<if test="endTime != null">end_time,
|
||||
</if>
|
||||
<if test="fileNo != null">file_no,
|
||||
</if>
|
||||
<if test="attr1 != null">attr1,
|
||||
</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>
|
||||
<if test="factoryCode != null">factory_code,
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag,
|
||||
</if>
|
||||
<if test="remark != null">remark,
|
||||
</if>
|
||||
<if test="bz != null">bz,
|
||||
</if>
|
||||
<if test="fileVersion != null">file_version,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},
|
||||
</if>
|
||||
<if test="checkType != null">#{checkType},
|
||||
</if>
|
||||
<if test="startTime != null">#{startTime},
|
||||
</if>
|
||||
<if test="endTime != null">#{endTime},
|
||||
</if>
|
||||
<if test="fileNo != null">#{fileNo},
|
||||
</if>
|
||||
<if test="attr1 != null">#{attr1},
|
||||
</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>
|
||||
<if test="factoryCode != null">#{factoryCode},
|
||||
</if>
|
||||
<if test="delFlag != null">#{delFlag},
|
||||
</if>
|
||||
<if test="remark != null">#{remark},
|
||||
</if>
|
||||
<if test="bz != null">#{bz},
|
||||
</if>
|
||||
<if test="fileVersion != null">#{fileVersion},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateQcCheckTypeFile" parameterType="QcCheckTypeFile">
|
||||
update qc_check_type_file
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="checkType != null">check_type =
|
||||
#{checkType},
|
||||
</if>
|
||||
<if test="startTime != null">start_time =
|
||||
#{startTime},
|
||||
</if>
|
||||
<if test="endTime != null">end_time =
|
||||
#{endTime},
|
||||
</if>
|
||||
<if test="fileNo != null">file_no =
|
||||
#{fileNo},
|
||||
</if>
|
||||
<if test="attr1 != null">attr1 =
|
||||
#{attr1},
|
||||
</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>
|
||||
<if test="factoryCode != null">factory_code =
|
||||
#{factoryCode},
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag =
|
||||
#{delFlag},
|
||||
</if>
|
||||
<if test="remark != null">remark =
|
||||
#{remark},
|
||||
</if>
|
||||
<if test="bz != null">bz =
|
||||
#{bz},
|
||||
</if>
|
||||
<if test="fileVersion != null">file_version =
|
||||
#{fileVersion},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteQcCheckTypeFileById" parameterType="String">
|
||||
delete from qc_check_type_file where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteQcCheckTypeFileByIds" parameterType="String">
|
||||
update qc_check_type_file set del_flag = '1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue