Browse Source
制程检验 新增制程检验物料domian 新增制程检验物料Mapper 新增制程检验物料Mapper.xml 新增制程检验物料Service 新增制程检验物料ServiceImpldev
liuxiaoxu
6 months ago
5 changed files with 746 additions and 0 deletions
@ -0,0 +1,312 @@ |
|||||
|
package com.ruoyi.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.ruoyi.common.annotation.Excel; |
||||
|
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理制程检验物料对象 quality_manufacturing_checkout_material |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-13 |
||||
|
*/ |
||||
|
public class QualityManufacturingCheckoutMaterial extends BaseEntity |
||||
|
{ |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** 制程检验物料Id */ |
||||
|
private Long manufacturingCheckoutMaterialId; |
||||
|
|
||||
|
/** 制程检验单号 */ |
||||
|
@Excel(name = "制程检验单号") |
||||
|
private String manufacturingCheckoutCode; |
||||
|
|
||||
|
/** 关联生产订单号 */ |
||||
|
@Excel(name = "关联生产订单号") |
||||
|
private String makeNo; |
||||
|
|
||||
|
/** 检验时间 */ |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
|
@Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
|
private Date checkoutTime; |
||||
|
|
||||
|
/** 料号 */ |
||||
|
@Excel(name = "料号") |
||||
|
private String materialNo; |
||||
|
|
||||
|
/** 物料名称 */ |
||||
|
@Excel(name = "物料名称") |
||||
|
private String materialName; |
||||
|
|
||||
|
/** 物料类型 */ |
||||
|
@Excel(name = "物料类型") |
||||
|
private String materialType; |
||||
|
|
||||
|
/** 物料图片地址 */ |
||||
|
@Excel(name = "物料图片地址") |
||||
|
private String materialPhotourl; |
||||
|
|
||||
|
/** 物料品牌 */ |
||||
|
@Excel(name = "物料品牌") |
||||
|
private String materialBrand; |
||||
|
|
||||
|
/** 物料单位 */ |
||||
|
@Excel(name = "物料单位") |
||||
|
private String materialUnit; |
||||
|
|
||||
|
/** 物料描述 */ |
||||
|
@Excel(name = "物料描述") |
||||
|
private String materialDescribe; |
||||
|
|
||||
|
/** 物料加工方式 */ |
||||
|
@Excel(name = "物料加工方式") |
||||
|
private String materialProcessMethod; |
||||
|
|
||||
|
/** 生产订单数 */ |
||||
|
@Excel(name = "生产订单数") |
||||
|
private String makeTotal; |
||||
|
|
||||
|
/** 已检验数 */ |
||||
|
@Excel(name = "已检验数") |
||||
|
private String checkedNum; |
||||
|
|
||||
|
/** 本次检验数 */ |
||||
|
@Excel(name = "本次检验数") |
||||
|
private String currentCheckoutNum; |
||||
|
|
||||
|
/** 工序合格数 */ |
||||
|
@Excel(name = "工序合格数") |
||||
|
private String processQualifiedNum; |
||||
|
|
||||
|
/** 工序不合格数 */ |
||||
|
@Excel(name = "工序不合格数") |
||||
|
private String processUnqualifiedNum; |
||||
|
|
||||
|
/** 制程工序编号 */ |
||||
|
@Excel(name = "制程工序编号") |
||||
|
private String manufacturingProcessCode; |
||||
|
|
||||
|
/** 制程工序名称 */ |
||||
|
@Excel(name = "制程工序名称") |
||||
|
private String manufacturingProcessName; |
||||
|
|
||||
|
/** 检验完成时间 */ |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
|
@Excel(name = "检验完成时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
|
private Date checkoutCompletionTime; |
||||
|
|
||||
|
public void setManufacturingCheckoutMaterialId(Long manufacturingCheckoutMaterialId) |
||||
|
{ |
||||
|
this.manufacturingCheckoutMaterialId = manufacturingCheckoutMaterialId; |
||||
|
} |
||||
|
|
||||
|
public Long getManufacturingCheckoutMaterialId() |
||||
|
{ |
||||
|
return manufacturingCheckoutMaterialId; |
||||
|
} |
||||
|
public void setManufacturingCheckoutCode(String manufacturingCheckoutCode) |
||||
|
{ |
||||
|
this.manufacturingCheckoutCode = manufacturingCheckoutCode; |
||||
|
} |
||||
|
|
||||
|
public String getManufacturingCheckoutCode() |
||||
|
{ |
||||
|
return manufacturingCheckoutCode; |
||||
|
} |
||||
|
public void setMakeNo(String makeNo) |
||||
|
{ |
||||
|
this.makeNo = makeNo; |
||||
|
} |
||||
|
|
||||
|
public String getMakeNo() |
||||
|
{ |
||||
|
return makeNo; |
||||
|
} |
||||
|
public void setCheckoutTime(Date checkoutTime) |
||||
|
{ |
||||
|
this.checkoutTime = checkoutTime; |
||||
|
} |
||||
|
|
||||
|
public Date getCheckoutTime() |
||||
|
{ |
||||
|
return checkoutTime; |
||||
|
} |
||||
|
public void setMaterialNo(String materialNo) |
||||
|
{ |
||||
|
this.materialNo = materialNo; |
||||
|
} |
||||
|
|
||||
|
public String getMaterialNo() |
||||
|
{ |
||||
|
return materialNo; |
||||
|
} |
||||
|
public void setMaterialName(String materialName) |
||||
|
{ |
||||
|
this.materialName = materialName; |
||||
|
} |
||||
|
|
||||
|
public String getMaterialName() |
||||
|
{ |
||||
|
return materialName; |
||||
|
} |
||||
|
public void setMaterialType(String materialType) |
||||
|
{ |
||||
|
this.materialType = materialType; |
||||
|
} |
||||
|
|
||||
|
public String getMaterialType() |
||||
|
{ |
||||
|
return materialType; |
||||
|
} |
||||
|
public void setMaterialPhotourl(String materialPhotourl) |
||||
|
{ |
||||
|
this.materialPhotourl = materialPhotourl; |
||||
|
} |
||||
|
|
||||
|
public String getMaterialPhotourl() |
||||
|
{ |
||||
|
return materialPhotourl; |
||||
|
} |
||||
|
public void setMaterialBrand(String materialBrand) |
||||
|
{ |
||||
|
this.materialBrand = materialBrand; |
||||
|
} |
||||
|
|
||||
|
public String getMaterialBrand() |
||||
|
{ |
||||
|
return materialBrand; |
||||
|
} |
||||
|
public void setMaterialUnit(String materialUnit) |
||||
|
{ |
||||
|
this.materialUnit = materialUnit; |
||||
|
} |
||||
|
|
||||
|
public String getMaterialUnit() |
||||
|
{ |
||||
|
return materialUnit; |
||||
|
} |
||||
|
public void setMaterialDescribe(String materialDescribe) |
||||
|
{ |
||||
|
this.materialDescribe = materialDescribe; |
||||
|
} |
||||
|
|
||||
|
public String getMaterialDescribe() |
||||
|
{ |
||||
|
return materialDescribe; |
||||
|
} |
||||
|
public void setMaterialProcessMethod(String materialProcessMethod) |
||||
|
{ |
||||
|
this.materialProcessMethod = materialProcessMethod; |
||||
|
} |
||||
|
|
||||
|
public String getMaterialProcessMethod() |
||||
|
{ |
||||
|
return materialProcessMethod; |
||||
|
} |
||||
|
public void setMakeTotal(String makeTotal) |
||||
|
{ |
||||
|
this.makeTotal = makeTotal; |
||||
|
} |
||||
|
|
||||
|
public String getMakeTotal() |
||||
|
{ |
||||
|
return makeTotal; |
||||
|
} |
||||
|
public void setCheckedNum(String checkedNum) |
||||
|
{ |
||||
|
this.checkedNum = checkedNum; |
||||
|
} |
||||
|
|
||||
|
public String getCheckedNum() |
||||
|
{ |
||||
|
return checkedNum; |
||||
|
} |
||||
|
public void setCurrentCheckoutNum(String currentCheckoutNum) |
||||
|
{ |
||||
|
this.currentCheckoutNum = currentCheckoutNum; |
||||
|
} |
||||
|
|
||||
|
public String getCurrentCheckoutNum() |
||||
|
{ |
||||
|
return currentCheckoutNum; |
||||
|
} |
||||
|
public void setProcessQualifiedNum(String processQualifiedNum) |
||||
|
{ |
||||
|
this.processQualifiedNum = processQualifiedNum; |
||||
|
} |
||||
|
|
||||
|
public String getProcessQualifiedNum() |
||||
|
{ |
||||
|
return processQualifiedNum; |
||||
|
} |
||||
|
public void setProcessUnqualifiedNum(String processUnqualifiedNum) |
||||
|
{ |
||||
|
this.processUnqualifiedNum = processUnqualifiedNum; |
||||
|
} |
||||
|
|
||||
|
public String getProcessUnqualifiedNum() |
||||
|
{ |
||||
|
return processUnqualifiedNum; |
||||
|
} |
||||
|
public void setManufacturingProcessCode(String manufacturingProcessCode) |
||||
|
{ |
||||
|
this.manufacturingProcessCode = manufacturingProcessCode; |
||||
|
} |
||||
|
|
||||
|
public String getManufacturingProcessCode() |
||||
|
{ |
||||
|
return manufacturingProcessCode; |
||||
|
} |
||||
|
public void setManufacturingProcessName(String manufacturingProcessName) |
||||
|
{ |
||||
|
this.manufacturingProcessName = manufacturingProcessName; |
||||
|
} |
||||
|
|
||||
|
public String getManufacturingProcessName() |
||||
|
{ |
||||
|
return manufacturingProcessName; |
||||
|
} |
||||
|
public void setCheckoutCompletionTime(Date checkoutCompletionTime) |
||||
|
{ |
||||
|
this.checkoutCompletionTime = checkoutCompletionTime; |
||||
|
} |
||||
|
|
||||
|
public Date getCheckoutCompletionTime() |
||||
|
{ |
||||
|
return checkoutCompletionTime; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
||||
|
.append("manufacturingCheckoutMaterialId", getManufacturingCheckoutMaterialId()) |
||||
|
.append("manufacturingCheckoutCode", getManufacturingCheckoutCode()) |
||||
|
.append("makeNo", getMakeNo()) |
||||
|
.append("checkoutTime", getCheckoutTime()) |
||||
|
.append("materialNo", getMaterialNo()) |
||||
|
.append("materialName", getMaterialName()) |
||||
|
.append("materialType", getMaterialType()) |
||||
|
.append("materialPhotourl", getMaterialPhotourl()) |
||||
|
.append("materialBrand", getMaterialBrand()) |
||||
|
.append("materialUnit", getMaterialUnit()) |
||||
|
.append("materialDescribe", getMaterialDescribe()) |
||||
|
.append("materialProcessMethod", getMaterialProcessMethod()) |
||||
|
.append("makeTotal", getMakeTotal()) |
||||
|
.append("checkedNum", getCheckedNum()) |
||||
|
.append("currentCheckoutNum", getCurrentCheckoutNum()) |
||||
|
.append("processQualifiedNum", getProcessQualifiedNum()) |
||||
|
.append("processUnqualifiedNum", getProcessUnqualifiedNum()) |
||||
|
.append("manufacturingProcessCode", getManufacturingProcessCode()) |
||||
|
.append("manufacturingProcessName", getManufacturingProcessName()) |
||||
|
.append("remark", getRemark()) |
||||
|
.append("checkoutCompletionTime", getCheckoutCompletionTime()) |
||||
|
.append("createBy", getCreateBy()) |
||||
|
.append("createTime", getCreateTime()) |
||||
|
.append("updateBy", getUpdateBy()) |
||||
|
.append("updateTime", getUpdateTime()) |
||||
|
.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
package com.ruoyi.quality.mapper; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.ruoyi.quality.domain.QualityManufacturingCheckoutMaterial; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理制程检验物料Mapper接口 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-13 |
||||
|
*/ |
||||
|
public interface QualityManufacturingCheckoutMaterialMapper |
||||
|
{ |
||||
|
/** |
||||
|
* 查询品质管理制程检验物料 |
||||
|
* |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return 品质管理制程检验物料 |
||||
|
*/ |
||||
|
public QualityManufacturingCheckoutMaterial selectQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId); |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理制程检验物料列表 |
||||
|
* |
||||
|
* @param qualityManufacturingCheckoutMaterial 品质管理制程检验物料 |
||||
|
* @return 品质管理制程检验物料集合 |
||||
|
*/ |
||||
|
public List<QualityManufacturingCheckoutMaterial> selectQualityManufacturingCheckoutMaterialList(QualityManufacturingCheckoutMaterial qualityManufacturingCheckoutMaterial); |
||||
|
|
||||
|
/** |
||||
|
* 新增品质管理制程检验物料 |
||||
|
* |
||||
|
* @param qualityManufacturingCheckoutMaterial 品质管理制程检验物料 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertQualityManufacturingCheckoutMaterial(QualityManufacturingCheckoutMaterial qualityManufacturingCheckoutMaterial); |
||||
|
|
||||
|
/** |
||||
|
* 修改品质管理制程检验物料 |
||||
|
* |
||||
|
* @param qualityManufacturingCheckoutMaterial 品质管理制程检验物料 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateQualityManufacturingCheckoutMaterial(QualityManufacturingCheckoutMaterial qualityManufacturingCheckoutMaterial); |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理制程检验物料 |
||||
|
* |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除品质管理制程检验物料 |
||||
|
* |
||||
|
* @param manufacturingCheckoutMaterialIds 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityManufacturingCheckoutMaterialByIds(String[] manufacturingCheckoutMaterialIds); |
||||
|
|
||||
|
/** |
||||
|
* 作废品质管理制程检验物料 |
||||
|
* |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int cancelQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId); |
||||
|
|
||||
|
/** |
||||
|
* 恢复品质管理制程检验物料 |
||||
|
* |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int restoreQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId); |
||||
|
} |
@ -0,0 +1,75 @@ |
|||||
|
package com.ruoyi.quality.service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.ruoyi.quality.domain.QualityManufacturingCheckoutMaterial; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理制程检验物料Service接口 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-13 |
||||
|
*/ |
||||
|
public interface IQualityManufacturingCheckoutMaterialService |
||||
|
{ |
||||
|
/** |
||||
|
* 查询品质管理制程检验物料 |
||||
|
* |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return 品质管理制程检验物料 |
||||
|
*/ |
||||
|
public QualityManufacturingCheckoutMaterial selectQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId); |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理制程检验物料列表 |
||||
|
* |
||||
|
* @param qualityManufacturingCheckoutMaterial 品质管理制程检验物料 |
||||
|
* @return 品质管理制程检验物料集合 |
||||
|
*/ |
||||
|
public List<QualityManufacturingCheckoutMaterial> selectQualityManufacturingCheckoutMaterialList(QualityManufacturingCheckoutMaterial qualityManufacturingCheckoutMaterial); |
||||
|
|
||||
|
/** |
||||
|
* 新增品质管理制程检验物料 |
||||
|
* |
||||
|
* @param qualityManufacturingCheckoutMaterial 品质管理制程检验物料 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertQualityManufacturingCheckoutMaterial(QualityManufacturingCheckoutMaterial qualityManufacturingCheckoutMaterial); |
||||
|
|
||||
|
/** |
||||
|
* 修改品质管理制程检验物料 |
||||
|
* |
||||
|
* @param qualityManufacturingCheckoutMaterial 品质管理制程检验物料 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateQualityManufacturingCheckoutMaterial(QualityManufacturingCheckoutMaterial qualityManufacturingCheckoutMaterial); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除品质管理制程检验物料 |
||||
|
* |
||||
|
* @param ids 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityManufacturingCheckoutMaterialByIds(String ids); |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理制程检验物料信息 |
||||
|
* |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId); |
||||
|
|
||||
|
/** |
||||
|
* 作废品质管理制程检验物料 |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return |
||||
|
*/ |
||||
|
int cancelQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId); |
||||
|
|
||||
|
/** |
||||
|
* 恢复品质管理制程检验物料 |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return |
||||
|
*/ |
||||
|
int restoreQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId); |
||||
|
} |
@ -0,0 +1,126 @@ |
|||||
|
package com.ruoyi.quality.service.impl; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.ruoyi.common.utils.DateUtils; |
||||
|
import com.ruoyi.common.utils.ShiroUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import com.ruoyi.quality.mapper.QualityManufacturingCheckoutMaterialMapper; |
||||
|
import com.ruoyi.quality.domain.QualityManufacturingCheckoutMaterial; |
||||
|
import com.ruoyi.quality.service.IQualityManufacturingCheckoutMaterialService; |
||||
|
import com.ruoyi.common.core.text.Convert; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理制程检验物料Service业务层处理 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-13 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class QualityManufacturingCheckoutMaterialServiceImpl implements IQualityManufacturingCheckoutMaterialService |
||||
|
{ |
||||
|
@Autowired |
||||
|
private QualityManufacturingCheckoutMaterialMapper qualityManufacturingCheckoutMaterialMapper; |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理制程检验物料 |
||||
|
* |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return 品质管理制程检验物料 |
||||
|
*/ |
||||
|
@Override |
||||
|
public QualityManufacturingCheckoutMaterial selectQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId) |
||||
|
{ |
||||
|
return qualityManufacturingCheckoutMaterialMapper.selectQualityManufacturingCheckoutMaterialById(manufacturingCheckoutMaterialId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理制程检验物料列表 |
||||
|
* |
||||
|
* @param qualityManufacturingCheckoutMaterial 品质管理制程检验物料 |
||||
|
* @return 品质管理制程检验物料 |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<QualityManufacturingCheckoutMaterial> selectQualityManufacturingCheckoutMaterialList(QualityManufacturingCheckoutMaterial qualityManufacturingCheckoutMaterial) |
||||
|
{ |
||||
|
return qualityManufacturingCheckoutMaterialMapper.selectQualityManufacturingCheckoutMaterialList(qualityManufacturingCheckoutMaterial); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增品质管理制程检验物料 |
||||
|
* |
||||
|
* @param qualityManufacturingCheckoutMaterial 品质管理制程检验物料 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int insertQualityManufacturingCheckoutMaterial(QualityManufacturingCheckoutMaterial qualityManufacturingCheckoutMaterial) |
||||
|
{ |
||||
|
String loginName = ShiroUtils.getLoginName(); |
||||
|
qualityManufacturingCheckoutMaterial.setCreateBy(loginName); |
||||
|
qualityManufacturingCheckoutMaterial.setCreateTime(DateUtils.getNowDate()); |
||||
|
return qualityManufacturingCheckoutMaterialMapper.insertQualityManufacturingCheckoutMaterial(qualityManufacturingCheckoutMaterial); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改品质管理制程检验物料 |
||||
|
* |
||||
|
* @param qualityManufacturingCheckoutMaterial 品质管理制程检验物料 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int updateQualityManufacturingCheckoutMaterial(QualityManufacturingCheckoutMaterial qualityManufacturingCheckoutMaterial) |
||||
|
{ |
||||
|
String loginName = ShiroUtils.getLoginName(); |
||||
|
qualityManufacturingCheckoutMaterial.setUpdateBy(loginName); |
||||
|
qualityManufacturingCheckoutMaterial.setUpdateTime(DateUtils.getNowDate()); |
||||
|
return qualityManufacturingCheckoutMaterialMapper.updateQualityManufacturingCheckoutMaterial(qualityManufacturingCheckoutMaterial); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理制程检验物料对象 |
||||
|
* |
||||
|
* @param ids 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int deleteQualityManufacturingCheckoutMaterialByIds(String ids) |
||||
|
{ |
||||
|
return qualityManufacturingCheckoutMaterialMapper.deleteQualityManufacturingCheckoutMaterialByIds(Convert.toStrArray(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理制程检验物料信息 |
||||
|
* |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int deleteQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId) |
||||
|
{ |
||||
|
return qualityManufacturingCheckoutMaterialMapper.deleteQualityManufacturingCheckoutMaterialById(manufacturingCheckoutMaterialId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 作废品质管理制程检验物料 |
||||
|
* |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int cancelQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId) |
||||
|
{ |
||||
|
return qualityManufacturingCheckoutMaterialMapper.cancelQualityManufacturingCheckoutMaterialById(manufacturingCheckoutMaterialId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 恢复品质管理制程检验物料信息 |
||||
|
* |
||||
|
* @param manufacturingCheckoutMaterialId 品质管理制程检验物料ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int restoreQualityManufacturingCheckoutMaterialById(Long manufacturingCheckoutMaterialId) |
||||
|
{ |
||||
|
return qualityManufacturingCheckoutMaterialMapper.restoreQualityManufacturingCheckoutMaterialById(manufacturingCheckoutMaterialId); |
||||
|
} |
||||
|
} |
@ -0,0 +1,156 @@ |
|||||
|
<?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.quality.mapper.QualityManufacturingCheckoutMaterialMapper"> |
||||
|
|
||||
|
<resultMap type="QualityManufacturingCheckoutMaterial" id="QualityManufacturingCheckoutMaterialResult"> |
||||
|
<result property="manufacturingCheckoutMaterialId" column="manufacturing_checkout_material_id" /> |
||||
|
<result property="manufacturingCheckoutCode" column="manufacturing_checkout_code" /> |
||||
|
<result property="makeNo" column="make_no" /> |
||||
|
<result property="checkoutTime" column="checkout_time" /> |
||||
|
<result property="materialNo" column="material_no" /> |
||||
|
<result property="materialName" column="material_name" /> |
||||
|
<result property="materialType" column="material_type" /> |
||||
|
<result property="materialPhotourl" column="material_photoUrl" /> |
||||
|
<result property="materialBrand" column="material_brand" /> |
||||
|
<result property="materialUnit" column="material_unit" /> |
||||
|
<result property="materialDescribe" column="material_describe" /> |
||||
|
<result property="materialProcessMethod" column="material_process_method" /> |
||||
|
<result property="makeTotal" column="make_total" /> |
||||
|
<result property="checkedNum" column="checked_num" /> |
||||
|
<result property="currentCheckoutNum" column="current_checkout_num" /> |
||||
|
<result property="processQualifiedNum" column="process_qualified_num" /> |
||||
|
<result property="processUnqualifiedNum" column="process_unqualified_num" /> |
||||
|
<result property="manufacturingProcessCode" column="manufacturing_process_code" /> |
||||
|
<result property="manufacturingProcessName" column="manufacturing_process_name" /> |
||||
|
<result property="remark" column="remark" /> |
||||
|
<result property="checkoutCompletionTime" column="checkout_completion_time" /> |
||||
|
<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="selectQualityManufacturingCheckoutMaterialVo"> |
||||
|
select manufacturing_checkout_material_id, manufacturing_checkout_code, make_no, checkout_time, material_no, material_name, material_type, material_photoUrl, material_brand, material_unit, material_describe, material_process_method, make_total, checked_num, current_checkout_num, process_qualified_num, process_unqualified_num, manufacturing_process_code, manufacturing_process_name, remark, checkout_completion_time, create_by, create_time, update_by, update_time from quality_manufacturing_checkout_material |
||||
|
</sql> |
||||
|
|
||||
|
<select id="selectQualityManufacturingCheckoutMaterialList" parameterType="QualityManufacturingCheckoutMaterial" resultMap="QualityManufacturingCheckoutMaterialResult"> |
||||
|
<include refid="selectQualityManufacturingCheckoutMaterialVo"/> |
||||
|
<where> |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectQualityManufacturingCheckoutMaterialById" parameterType="Long" resultMap="QualityManufacturingCheckoutMaterialResult"> |
||||
|
<include refid="selectQualityManufacturingCheckoutMaterialVo"/> |
||||
|
where manufacturing_checkout_material_id = #{manufacturingCheckoutMaterialId} |
||||
|
</select> |
||||
|
|
||||
|
<insert id="insertQualityManufacturingCheckoutMaterial" parameterType="QualityManufacturingCheckoutMaterial" useGeneratedKeys="true" keyProperty="manufacturingCheckoutMaterialId"> |
||||
|
insert into quality_manufacturing_checkout_material |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="manufacturingCheckoutCode != null">manufacturing_checkout_code,</if> |
||||
|
<if test="makeNo != null">make_no,</if> |
||||
|
<if test="checkoutTime != null">checkout_time,</if> |
||||
|
<if test="materialNo != null">material_no,</if> |
||||
|
<if test="materialName != null">material_name,</if> |
||||
|
<if test="materialType != null">material_type,</if> |
||||
|
<if test="materialPhotourl != null">material_photoUrl,</if> |
||||
|
<if test="materialBrand != null">material_brand,</if> |
||||
|
<if test="materialUnit != null">material_unit,</if> |
||||
|
<if test="materialDescribe != null">material_describe,</if> |
||||
|
<if test="materialProcessMethod != null">material_process_method,</if> |
||||
|
<if test="makeTotal != null">make_total,</if> |
||||
|
<if test="checkedNum != null">checked_num,</if> |
||||
|
<if test="currentCheckoutNum != null">current_checkout_num,</if> |
||||
|
<if test="processQualifiedNum != null">process_qualified_num,</if> |
||||
|
<if test="processUnqualifiedNum != null">process_unqualified_num,</if> |
||||
|
<if test="manufacturingProcessCode != null">manufacturing_process_code,</if> |
||||
|
<if test="manufacturingProcessName != null">manufacturing_process_name,</if> |
||||
|
<if test="remark != null">remark,</if> |
||||
|
<if test="checkoutCompletionTime != null">checkout_completion_time,</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="manufacturingCheckoutCode != null">#{manufacturingCheckoutCode},</if> |
||||
|
<if test="makeNo != null">#{makeNo},</if> |
||||
|
<if test="checkoutTime != null">#{checkoutTime},</if> |
||||
|
<if test="materialNo != null">#{materialNo},</if> |
||||
|
<if test="materialName != null">#{materialName},</if> |
||||
|
<if test="materialType != null">#{materialType},</if> |
||||
|
<if test="materialPhotourl != null">#{materialPhotourl},</if> |
||||
|
<if test="materialBrand != null">#{materialBrand},</if> |
||||
|
<if test="materialUnit != null">#{materialUnit},</if> |
||||
|
<if test="materialDescribe != null">#{materialDescribe},</if> |
||||
|
<if test="materialProcessMethod != null">#{materialProcessMethod},</if> |
||||
|
<if test="makeTotal != null">#{makeTotal},</if> |
||||
|
<if test="checkedNum != null">#{checkedNum},</if> |
||||
|
<if test="currentCheckoutNum != null">#{currentCheckoutNum},</if> |
||||
|
<if test="processQualifiedNum != null">#{processQualifiedNum},</if> |
||||
|
<if test="processUnqualifiedNum != null">#{processUnqualifiedNum},</if> |
||||
|
<if test="manufacturingProcessCode != null">#{manufacturingProcessCode},</if> |
||||
|
<if test="manufacturingProcessName != null">#{manufacturingProcessName},</if> |
||||
|
<if test="remark != null">#{remark},</if> |
||||
|
<if test="checkoutCompletionTime != null">#{checkoutCompletionTime},</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="updateQualityManufacturingCheckoutMaterial" parameterType="QualityManufacturingCheckoutMaterial"> |
||||
|
update quality_manufacturing_checkout_material |
||||
|
<trim prefix="SET" suffixOverrides=","> |
||||
|
<if test="manufacturingCheckoutCode != null">manufacturing_checkout_code = #{manufacturingCheckoutCode},</if> |
||||
|
<if test="makeNo != null">make_no = #{makeNo},</if> |
||||
|
<if test="checkoutTime != null">checkout_time = #{checkoutTime},</if> |
||||
|
<if test="materialNo != null">material_no = #{materialNo},</if> |
||||
|
<if test="materialName != null">material_name = #{materialName},</if> |
||||
|
<if test="materialType != null">material_type = #{materialType},</if> |
||||
|
<if test="materialPhotourl != null">material_photoUrl = #{materialPhotourl},</if> |
||||
|
<if test="materialBrand != null">material_brand = #{materialBrand},</if> |
||||
|
<if test="materialUnit != null">material_unit = #{materialUnit},</if> |
||||
|
<if test="materialDescribe != null">material_describe = #{materialDescribe},</if> |
||||
|
<if test="materialProcessMethod != null">material_process_method = #{materialProcessMethod},</if> |
||||
|
<if test="makeTotal != null">make_total = #{makeTotal},</if> |
||||
|
<if test="checkedNum != null">checked_num = #{checkedNum},</if> |
||||
|
<if test="currentCheckoutNum != null">current_checkout_num = #{currentCheckoutNum},</if> |
||||
|
<if test="processQualifiedNum != null">process_qualified_num = #{processQualifiedNum},</if> |
||||
|
<if test="processUnqualifiedNum != null">process_unqualified_num = #{processUnqualifiedNum},</if> |
||||
|
<if test="manufacturingProcessCode != null">manufacturing_process_code = #{manufacturingProcessCode},</if> |
||||
|
<if test="manufacturingProcessName != null">manufacturing_process_name = #{manufacturingProcessName},</if> |
||||
|
<if test="remark != null">remark = #{remark},</if> |
||||
|
<if test="checkoutCompletionTime != null">checkout_completion_time = #{checkoutCompletionTime},</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 manufacturing_checkout_material_id = #{manufacturingCheckoutMaterialId} |
||||
|
</update> |
||||
|
|
||||
|
<delete id="deleteQualityManufacturingCheckoutMaterialById" parameterType="Long"> |
||||
|
delete from quality_manufacturing_checkout_material where manufacturing_checkout_material_id = #{manufacturingCheckoutMaterialId} |
||||
|
</delete> |
||||
|
|
||||
|
<delete id="deleteQualityManufacturingCheckoutMaterialByIds" parameterType="String"> |
||||
|
delete from quality_manufacturing_checkout_material where manufacturing_checkout_material_id in |
||||
|
<foreach item="manufacturingCheckoutMaterialId" collection="array" open="(" separator="," close=")"> |
||||
|
#{manufacturingCheckoutMaterialId} |
||||
|
</foreach> |
||||
|
</delete> |
||||
|
|
||||
|
<update id="cancelQualityManufacturingCheckoutMaterialById" parameterType="Long"> |
||||
|
update quality_manufacturing_checkout_material set del_flag = '1' where manufacturing_checkout_material_id = #{manufacturingCheckoutMaterialId} |
||||
|
</update> |
||||
|
|
||||
|
<update id="restoreQualityManufacturingCheckoutMaterialById" parameterType="Long"> |
||||
|
update quality_manufacturing_checkout_material set del_flag = '0' where manufacturing_checkout_material_id = #{manufacturingCheckoutMaterialId} |
||||
|
</update> |
||||
|
|
||||
|
</mapper> |
Loading…
Reference in new issue