From e0a6b9cd790af752c070f7fc4235e0833b24c6f3 Mon Sep 17 00:00:00 2001 From: "JinLu.Yin" <411641505@qq.com> Date: Mon, 29 Aug 2022 20:30:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E7=A8=8B=E6=A3=80=E9=AA=8C=E5=8D=95?= =?UTF-8?q?=E5=A4=B4=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/qc/controller/QcIpqcController.java | 104 ++++ .../java/com/ktg/mes/qc/domain/QcIpqc.java | 574 ++++++++++++++++++ .../com/ktg/mes/qc/mapper/QcIpqcMapper.java | 61 ++ .../ktg/mes/qc/service/IQcIpqcService.java | 61 ++ .../qc/service/impl/QcIpqcServiceImpl.java | 96 +++ .../main/resources/mapper/qc/QcIpqcMapper.xml | 257 ++++++++ 6 files changed, 1153 insertions(+) create mode 100644 ktg-mes/src/main/java/com/ktg/mes/qc/controller/QcIpqcController.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/qc/domain/QcIpqc.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/qc/mapper/QcIpqcMapper.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/qc/service/IQcIpqcService.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/qc/service/impl/QcIpqcServiceImpl.java create mode 100644 ktg-mes/src/main/resources/mapper/qc/QcIpqcMapper.xml diff --git a/ktg-mes/src/main/java/com/ktg/mes/qc/controller/QcIpqcController.java b/ktg-mes/src/main/java/com/ktg/mes/qc/controller/QcIpqcController.java new file mode 100644 index 0000000..3171d52 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/qc/controller/QcIpqcController.java @@ -0,0 +1,104 @@ +package com.ktg.mes.qc.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.ktg.common.annotation.Log; +import com.ktg.common.core.controller.BaseController; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.enums.BusinessType; +import com.ktg.mes.qc.domain.QcIpqc; +import com.ktg.mes.qc.service.IQcIpqcService; +import com.ktg.common.utils.poi.ExcelUtil; +import com.ktg.common.core.page.TableDataInfo; + +/** + * 过程检验单Controller + * + * @author yinjinlu + * @date 2022-08-29 + */ +@RestController +@RequestMapping("/mes/qc/ipqc") +public class QcIpqcController extends BaseController +{ + @Autowired + private IQcIpqcService qcIpqcService; + + /** + * 查询过程检验单列表 + */ + @PreAuthorize("@ss.hasPermi('mes:qc:ipqc:list')") + @GetMapping("/list") + public TableDataInfo list(QcIpqc qcIpqc) + { + startPage(); + List list = qcIpqcService.selectQcIpqcList(qcIpqc); + return getDataTable(list); + } + + /** + * 导出过程检验单列表 + */ + @PreAuthorize("@ss.hasPermi('mes:qc:ipqc:export')") + @Log(title = "过程检验单", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, QcIpqc qcIpqc) + { + List list = qcIpqcService.selectQcIpqcList(qcIpqc); + ExcelUtil util = new ExcelUtil(QcIpqc.class); + util.exportExcel(response, list, "过程检验单数据"); + } + + /** + * 获取过程检验单详细信息 + */ + @PreAuthorize("@ss.hasPermi('mes:qc:ipqc:query')") + @GetMapping(value = "/{ipqcId}") + public AjaxResult getInfo(@PathVariable("ipqcId") Long ipqcId) + { + return AjaxResult.success(qcIpqcService.selectQcIpqcByIpqcId(ipqcId)); + } + + /** + * 新增过程检验单 + */ + @PreAuthorize("@ss.hasPermi('mes:qc:ipqc:add')") + @Log(title = "过程检验单", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody QcIpqc qcIpqc) + { + return toAjax(qcIpqcService.insertQcIpqc(qcIpqc)); + } + + /** + * 修改过程检验单 + */ + @PreAuthorize("@ss.hasPermi('mes:qc:ipqc:edit')") + @Log(title = "过程检验单", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody QcIpqc qcIpqc) + { + return toAjax(qcIpqcService.updateQcIpqc(qcIpqc)); + } + + /** + * 删除过程检验单 + */ + @PreAuthorize("@ss.hasPermi('mes:qc:ipqc:remove')") + @Log(title = "过程检验单", businessType = BusinessType.DELETE) + @DeleteMapping("/{ipqcIds}") + public AjaxResult remove(@PathVariable Long[] ipqcIds) + { + return toAjax(qcIpqcService.deleteQcIpqcByIpqcIds(ipqcIds)); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/qc/domain/QcIpqc.java b/ktg-mes/src/main/java/com/ktg/mes/qc/domain/QcIpqc.java new file mode 100644 index 0000000..92a98f5 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/qc/domain/QcIpqc.java @@ -0,0 +1,574 @@ +package com.ktg.mes.qc.domain; + +import java.math.BigDecimal; +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.ktg.common.annotation.Excel; +import com.ktg.common.core.domain.BaseEntity; + +/** + * 过程检验单对象 qc_ipqc + * + * @author yinjinlu + * @date 2022-08-29 + */ +public class QcIpqc extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 检验单ID */ + private Long ipqcId; + + /** 检验单编号 */ + @Excel(name = "检验单编号") + private String ipqcCode; + + /** 检验单名称 */ + @Excel(name = "检验单名称") + private String ipqcName; + + /** 检验类型 */ + @Excel(name = "检验类型") + private String ipqcType; + + /** 检验模板ID */ + @Excel(name = "检验模板ID") + private Long templateId; + + /** 工单ID */ + @Excel(name = "工单ID") + private Long workorderId; + + /** 工单编码 */ + @Excel(name = "工单编码") + private String workorderCode; + + /** 工单名称 */ + @Excel(name = "工单名称") + private String workorderName; + + /** 任务ID */ + @Excel(name = "任务ID") + private Long taskId; + + /** 任务编号 */ + @Excel(name = "任务编号") + private String taskCode; + + /** 任务名称 */ + @Excel(name = "任务名称") + private String taskName; + + /** 工作站ID */ + @Excel(name = "工作站ID") + private Long workstationId; + + /** 工作站编号 */ + @Excel(name = "工作站编号") + private String workstationCode; + + /** 工作站名称 */ + @Excel(name = "工作站名称") + private String workstationName; + + /** 工序ID */ + @Excel(name = "工序ID") + private Long processId; + + /** 工序编码 */ + @Excel(name = "工序编码") + private String processCode; + + /** 工序名称 */ + @Excel(name = "工序名称") + private String processName; + + /** 产品物料ID */ + @Excel(name = "产品物料ID") + private Long itemId; + + /** 产品物料编码 */ + @Excel(name = "产品物料编码") + private String itemCode; + + /** 产品物料名称 */ + @Excel(name = "产品物料名称") + private String itemName; + + /** 规格型号 */ + @Excel(name = "规格型号") + private String specification; + + /** 单位 */ + @Excel(name = "单位") + private String unitOfMeasure; + + /** 检测数量 */ + @Excel(name = "检测数量") + private BigDecimal quantityCheck; + + /** 不合格数 */ + @Excel(name = "不合格数") + private BigDecimal quantityUnqualified; + + /** 合格品数量 */ + @Excel(name = "合格品数量") + private BigDecimal quantityQualified; + + /** 致命缺陷率 */ + @Excel(name = "致命缺陷率") + private BigDecimal crRate; + + /** 严重缺陷率 */ + @Excel(name = "严重缺陷率") + private BigDecimal majRate; + + /** 轻微缺陷率 */ + @Excel(name = "轻微缺陷率") + private BigDecimal minRate; + + /** 致命缺陷数量 */ + @Excel(name = "致命缺陷数量") + private BigDecimal crQuantity; + + /** 严重缺陷数量 */ + @Excel(name = "严重缺陷数量") + private BigDecimal majQuantity; + + /** 轻微缺陷数量 */ + @Excel(name = "轻微缺陷数量") + private BigDecimal minQuantity; + + /** 检测结果 */ + @Excel(name = "检测结果") + private String checkResult; + + /** 检测日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "检测日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date inspectDate; + + /** 检测人员 */ + @Excel(name = "检测人员") + private String inspector; + + /** 单据状态 */ + @Excel(name = "单据状态") + private String status; + + /** 预留字段1 */ + private String attr1; + + /** 预留字段2 */ + private String attr2; + + /** 预留字段3 */ + private Long attr3; + + /** 预留字段4 */ + private Long attr4; + + public void setIpqcId(Long ipqcId) + { + this.ipqcId = ipqcId; + } + + public Long getIpqcId() + { + return ipqcId; + } + public void setIpqcCode(String ipqcCode) + { + this.ipqcCode = ipqcCode; + } + + public String getIpqcCode() + { + return ipqcCode; + } + public void setIpqcName(String ipqcName) + { + this.ipqcName = ipqcName; + } + + public String getIpqcName() + { + return ipqcName; + } + public void setIpqcType(String ipqcType) + { + this.ipqcType = ipqcType; + } + + public String getIpqcType() + { + return ipqcType; + } + public void setTemplateId(Long templateId) + { + this.templateId = templateId; + } + + public Long getTemplateId() + { + return templateId; + } + public void setWorkorderId(Long workorderId) + { + this.workorderId = workorderId; + } + + public Long getWorkorderId() + { + return workorderId; + } + public void setWorkorderCode(String workorderCode) + { + this.workorderCode = workorderCode; + } + + public String getWorkorderCode() + { + return workorderCode; + } + public void setWorkorderName(String workorderName) + { + this.workorderName = workorderName; + } + + public String getWorkorderName() + { + return workorderName; + } + public void setTaskId(Long taskId) + { + this.taskId = taskId; + } + + public Long getTaskId() + { + return taskId; + } + public void setTaskCode(String taskCode) + { + this.taskCode = taskCode; + } + + public String getTaskCode() + { + return taskCode; + } + public void setTaskName(String taskName) + { + this.taskName = taskName; + } + + public String getTaskName() + { + return taskName; + } + public void setWorkstationId(Long workstationId) + { + this.workstationId = workstationId; + } + + public Long getWorkstationId() + { + return workstationId; + } + public void setWorkstationCode(String workstationCode) + { + this.workstationCode = workstationCode; + } + + public String getWorkstationCode() + { + return workstationCode; + } + public void setWorkstationName(String workstationName) + { + this.workstationName = workstationName; + } + + public String getWorkstationName() + { + return workstationName; + } + public void setProcessId(Long processId) + { + this.processId = processId; + } + + public Long getProcessId() + { + return processId; + } + public void setProcessCode(String processCode) + { + this.processCode = processCode; + } + + public String getProcessCode() + { + return processCode; + } + public void setProcessName(String processName) + { + this.processName = processName; + } + + public String getProcessName() + { + return processName; + } + public void setItemId(Long itemId) + { + this.itemId = itemId; + } + + public Long getItemId() + { + return itemId; + } + public void setItemCode(String itemCode) + { + this.itemCode = itemCode; + } + + public String getItemCode() + { + return itemCode; + } + public void setItemName(String itemName) + { + this.itemName = itemName; + } + + public String getItemName() + { + return itemName; + } + public void setSpecification(String specification) + { + this.specification = specification; + } + + public String getSpecification() + { + return specification; + } + public void setUnitOfMeasure(String unitOfMeasure) + { + this.unitOfMeasure = unitOfMeasure; + } + + public String getUnitOfMeasure() + { + return unitOfMeasure; + } + public void setQuantityCheck(BigDecimal quantityCheck) + { + this.quantityCheck = quantityCheck; + } + + public BigDecimal getQuantityCheck() + { + return quantityCheck; + } + public void setQuantityUnqualified(BigDecimal quantityUnqualified) + { + this.quantityUnqualified = quantityUnqualified; + } + + public BigDecimal getQuantityUnqualified() + { + return quantityUnqualified; + } + public void setQuantityQualified(BigDecimal quantityQualified) + { + this.quantityQualified = quantityQualified; + } + + public BigDecimal getQuantityQualified() + { + return quantityQualified; + } + public void setCrRate(BigDecimal crRate) + { + this.crRate = crRate; + } + + public BigDecimal getCrRate() + { + return crRate; + } + public void setMajRate(BigDecimal majRate) + { + this.majRate = majRate; + } + + public BigDecimal getMajRate() + { + return majRate; + } + public void setMinRate(BigDecimal minRate) + { + this.minRate = minRate; + } + + public BigDecimal getMinRate() + { + return minRate; + } + public void setCrQuantity(BigDecimal crQuantity) + { + this.crQuantity = crQuantity; + } + + public BigDecimal getCrQuantity() + { + return crQuantity; + } + public void setMajQuantity(BigDecimal majQuantity) + { + this.majQuantity = majQuantity; + } + + public BigDecimal getMajQuantity() + { + return majQuantity; + } + public void setMinQuantity(BigDecimal minQuantity) + { + this.minQuantity = minQuantity; + } + + public BigDecimal getMinQuantity() + { + return minQuantity; + } + public void setCheckResult(String checkResult) + { + this.checkResult = checkResult; + } + + public String getCheckResult() + { + return checkResult; + } + public void setInspectDate(Date inspectDate) + { + this.inspectDate = inspectDate; + } + + public Date getInspectDate() + { + return inspectDate; + } + public void setInspector(String inspector) + { + this.inspector = inspector; + } + + public String getInspector() + { + return inspector; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + public void setAttr1(String attr1) + { + this.attr1 = attr1; + } + + public String getAttr1() + { + return attr1; + } + public void setAttr2(String attr2) + { + this.attr2 = attr2; + } + + public String getAttr2() + { + return attr2; + } + public void setAttr3(Long attr3) + { + this.attr3 = attr3; + } + + public Long getAttr3() + { + return attr3; + } + public void setAttr4(Long attr4) + { + this.attr4 = attr4; + } + + public Long getAttr4() + { + return attr4; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("ipqcId", getIpqcId()) + .append("ipqcCode", getIpqcCode()) + .append("ipqcName", getIpqcName()) + .append("ipqcType", getIpqcType()) + .append("templateId", getTemplateId()) + .append("workorderId", getWorkorderId()) + .append("workorderCode", getWorkorderCode()) + .append("workorderName", getWorkorderName()) + .append("taskId", getTaskId()) + .append("taskCode", getTaskCode()) + .append("taskName", getTaskName()) + .append("workstationId", getWorkstationId()) + .append("workstationCode", getWorkstationCode()) + .append("workstationName", getWorkstationName()) + .append("processId", getProcessId()) + .append("processCode", getProcessCode()) + .append("processName", getProcessName()) + .append("itemId", getItemId()) + .append("itemCode", getItemCode()) + .append("itemName", getItemName()) + .append("specification", getSpecification()) + .append("unitOfMeasure", getUnitOfMeasure()) + .append("quantityCheck", getQuantityCheck()) + .append("quantityUnqualified", getQuantityUnqualified()) + .append("quantityQualified", getQuantityQualified()) + .append("crRate", getCrRate()) + .append("majRate", getMajRate()) + .append("minRate", getMinRate()) + .append("crQuantity", getCrQuantity()) + .append("majQuantity", getMajQuantity()) + .append("minQuantity", getMinQuantity()) + .append("checkResult", getCheckResult()) + .append("inspectDate", getInspectDate()) + .append("inspector", getInspector()) + .append("status", getStatus()) + .append("remark", getRemark()) + .append("attr1", getAttr1()) + .append("attr2", getAttr2()) + .append("attr3", getAttr3()) + .append("attr4", getAttr4()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/qc/mapper/QcIpqcMapper.java b/ktg-mes/src/main/java/com/ktg/mes/qc/mapper/QcIpqcMapper.java new file mode 100644 index 0000000..990b4ea --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/qc/mapper/QcIpqcMapper.java @@ -0,0 +1,61 @@ +package com.ktg.mes.qc.mapper; + +import java.util.List; +import com.ktg.mes.qc.domain.QcIpqc; + +/** + * 过程检验单Mapper接口 + * + * @author yinjinlu + * @date 2022-08-29 + */ +public interface QcIpqcMapper +{ + /** + * 查询过程检验单 + * + * @param ipqcId 过程检验单主键 + * @return 过程检验单 + */ + public QcIpqc selectQcIpqcByIpqcId(Long ipqcId); + + /** + * 查询过程检验单列表 + * + * @param qcIpqc 过程检验单 + * @return 过程检验单集合 + */ + public List selectQcIpqcList(QcIpqc qcIpqc); + + /** + * 新增过程检验单 + * + * @param qcIpqc 过程检验单 + * @return 结果 + */ + public int insertQcIpqc(QcIpqc qcIpqc); + + /** + * 修改过程检验单 + * + * @param qcIpqc 过程检验单 + * @return 结果 + */ + public int updateQcIpqc(QcIpqc qcIpqc); + + /** + * 删除过程检验单 + * + * @param ipqcId 过程检验单主键 + * @return 结果 + */ + public int deleteQcIpqcByIpqcId(Long ipqcId); + + /** + * 批量删除过程检验单 + * + * @param ipqcIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteQcIpqcByIpqcIds(Long[] ipqcIds); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/qc/service/IQcIpqcService.java b/ktg-mes/src/main/java/com/ktg/mes/qc/service/IQcIpqcService.java new file mode 100644 index 0000000..33b3fc0 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/qc/service/IQcIpqcService.java @@ -0,0 +1,61 @@ +package com.ktg.mes.qc.service; + +import java.util.List; +import com.ktg.mes.qc.domain.QcIpqc; + +/** + * 过程检验单Service接口 + * + * @author yinjinlu + * @date 2022-08-29 + */ +public interface IQcIpqcService +{ + /** + * 查询过程检验单 + * + * @param ipqcId 过程检验单主键 + * @return 过程检验单 + */ + public QcIpqc selectQcIpqcByIpqcId(Long ipqcId); + + /** + * 查询过程检验单列表 + * + * @param qcIpqc 过程检验单 + * @return 过程检验单集合 + */ + public List selectQcIpqcList(QcIpqc qcIpqc); + + /** + * 新增过程检验单 + * + * @param qcIpqc 过程检验单 + * @return 结果 + */ + public int insertQcIpqc(QcIpqc qcIpqc); + + /** + * 修改过程检验单 + * + * @param qcIpqc 过程检验单 + * @return 结果 + */ + public int updateQcIpqc(QcIpqc qcIpqc); + + /** + * 批量删除过程检验单 + * + * @param ipqcIds 需要删除的过程检验单主键集合 + * @return 结果 + */ + public int deleteQcIpqcByIpqcIds(Long[] ipqcIds); + + /** + * 删除过程检验单信息 + * + * @param ipqcId 过程检验单主键 + * @return 结果 + */ + public int deleteQcIpqcByIpqcId(Long ipqcId); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/qc/service/impl/QcIpqcServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/qc/service/impl/QcIpqcServiceImpl.java new file mode 100644 index 0000000..5dcf6f6 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/qc/service/impl/QcIpqcServiceImpl.java @@ -0,0 +1,96 @@ +package com.ktg.mes.qc.service.impl; + +import java.util.List; +import com.ktg.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ktg.mes.qc.mapper.QcIpqcMapper; +import com.ktg.mes.qc.domain.QcIpqc; +import com.ktg.mes.qc.service.IQcIpqcService; + +/** + * 过程检验单Service业务层处理 + * + * @author yinjinlu + * @date 2022-08-29 + */ +@Service +public class QcIpqcServiceImpl implements IQcIpqcService +{ + @Autowired + private QcIpqcMapper qcIpqcMapper; + + /** + * 查询过程检验单 + * + * @param ipqcId 过程检验单主键 + * @return 过程检验单 + */ + @Override + public QcIpqc selectQcIpqcByIpqcId(Long ipqcId) + { + return qcIpqcMapper.selectQcIpqcByIpqcId(ipqcId); + } + + /** + * 查询过程检验单列表 + * + * @param qcIpqc 过程检验单 + * @return 过程检验单 + */ + @Override + public List selectQcIpqcList(QcIpqc qcIpqc) + { + return qcIpqcMapper.selectQcIpqcList(qcIpqc); + } + + /** + * 新增过程检验单 + * + * @param qcIpqc 过程检验单 + * @return 结果 + */ + @Override + public int insertQcIpqc(QcIpqc qcIpqc) + { + qcIpqc.setCreateTime(DateUtils.getNowDate()); + return qcIpqcMapper.insertQcIpqc(qcIpqc); + } + + /** + * 修改过程检验单 + * + * @param qcIpqc 过程检验单 + * @return 结果 + */ + @Override + public int updateQcIpqc(QcIpqc qcIpqc) + { + qcIpqc.setUpdateTime(DateUtils.getNowDate()); + return qcIpqcMapper.updateQcIpqc(qcIpqc); + } + + /** + * 批量删除过程检验单 + * + * @param ipqcIds 需要删除的过程检验单主键 + * @return 结果 + */ + @Override + public int deleteQcIpqcByIpqcIds(Long[] ipqcIds) + { + return qcIpqcMapper.deleteQcIpqcByIpqcIds(ipqcIds); + } + + /** + * 删除过程检验单信息 + * + * @param ipqcId 过程检验单主键 + * @return 结果 + */ + @Override + public int deleteQcIpqcByIpqcId(Long ipqcId) + { + return qcIpqcMapper.deleteQcIpqcByIpqcId(ipqcId); + } +} diff --git a/ktg-mes/src/main/resources/mapper/qc/QcIpqcMapper.xml b/ktg-mes/src/main/resources/mapper/qc/QcIpqcMapper.xml new file mode 100644 index 0000000..0d02d57 --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/qc/QcIpqcMapper.xml @@ -0,0 +1,257 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select ipqc_id, ipqc_code, ipqc_name, ipqc_type, template_id, workorder_id, workorder_code, workorder_name, task_id, task_code, task_name, workstation_id, workstation_code, workstation_name, process_id, process_code, process_name, item_id, item_code, item_name, specification, unit_of_measure, quantity_check, quantity_unqualified, quantity_qualified, cr_rate, maj_rate, min_rate, cr_quantity, maj_quantity, min_quantity, check_result, inspect_date, inspector, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from qc_ipqc + + + + + + + + insert into qc_ipqc + + ipqc_code, + ipqc_name, + ipqc_type, + template_id, + workorder_id, + workorder_code, + workorder_name, + task_id, + task_code, + task_name, + workstation_id, + workstation_code, + workstation_name, + process_id, + process_code, + process_name, + item_id, + item_code, + item_name, + specification, + unit_of_measure, + quantity_check, + quantity_unqualified, + quantity_qualified, + cr_rate, + maj_rate, + min_rate, + cr_quantity, + maj_quantity, + min_quantity, + check_result, + inspect_date, + inspector, + status, + remark, + attr1, + attr2, + attr3, + attr4, + create_by, + create_time, + update_by, + update_time, + + + #{ipqcCode}, + #{ipqcName}, + #{ipqcType}, + #{templateId}, + #{workorderId}, + #{workorderCode}, + #{workorderName}, + #{taskId}, + #{taskCode}, + #{taskName}, + #{workstationId}, + #{workstationCode}, + #{workstationName}, + #{processId}, + #{processCode}, + #{processName}, + #{itemId}, + #{itemCode}, + #{itemName}, + #{specification}, + #{unitOfMeasure}, + #{quantityCheck}, + #{quantityUnqualified}, + #{quantityQualified}, + #{crRate}, + #{majRate}, + #{minRate}, + #{crQuantity}, + #{majQuantity}, + #{minQuantity}, + #{checkResult}, + #{inspectDate}, + #{inspector}, + #{status}, + #{remark}, + #{attr1}, + #{attr2}, + #{attr3}, + #{attr4}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update qc_ipqc + + ipqc_code = #{ipqcCode}, + ipqc_name = #{ipqcName}, + ipqc_type = #{ipqcType}, + template_id = #{templateId}, + workorder_id = #{workorderId}, + workorder_code = #{workorderCode}, + workorder_name = #{workorderName}, + task_id = #{taskId}, + task_code = #{taskCode}, + task_name = #{taskName}, + workstation_id = #{workstationId}, + workstation_code = #{workstationCode}, + workstation_name = #{workstationName}, + process_id = #{processId}, + process_code = #{processCode}, + process_name = #{processName}, + item_id = #{itemId}, + item_code = #{itemCode}, + item_name = #{itemName}, + specification = #{specification}, + unit_of_measure = #{unitOfMeasure}, + quantity_check = #{quantityCheck}, + quantity_unqualified = #{quantityUnqualified}, + quantity_qualified = #{quantityQualified}, + cr_rate = #{crRate}, + maj_rate = #{majRate}, + min_rate = #{minRate}, + cr_quantity = #{crQuantity}, + maj_quantity = #{majQuantity}, + min_quantity = #{minQuantity}, + check_result = #{checkResult}, + inspect_date = #{inspectDate}, + inspector = #{inspector}, + status = #{status}, + remark = #{remark}, + attr1 = #{attr1}, + attr2 = #{attr2}, + attr3 = #{attr3}, + attr4 = #{attr4}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where ipqc_id = #{ipqcId} + + + + delete from qc_ipqc where ipqc_id = #{ipqcId} + + + + delete from qc_ipqc where ipqc_id in + + #{ipqcId} + + + \ No newline at end of file