Browse Source
制程检验 新增制程检验物料生产工序domian 新增制程检验物料生产工序Mapper 新增制程检验物料生产工序Mapper.xml 新增制程检验物料生产工序Service 新增制程检验物料生产工序ServiceImpldev
liuxiaoxu
6 months ago
5 changed files with 598 additions and 0 deletions
@ -0,0 +1,196 @@ |
|||||
|
package com.ruoyi.quality.domain; |
||||
|
|
||||
|
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_material_process |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-13 |
||||
|
*/ |
||||
|
public class QualityManufacturingMaterialProcess extends BaseEntity |
||||
|
{ |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** 物料生产工序Id */ |
||||
|
private Long manufacturingMaterialProcessId; |
||||
|
|
||||
|
/** 料号 */ |
||||
|
@Excel(name = "料号") |
||||
|
private String materialNo; |
||||
|
|
||||
|
/** 物料名称 */ |
||||
|
@Excel(name = "物料名称") |
||||
|
private String materialName; |
||||
|
|
||||
|
/** 制程工序编号 */ |
||||
|
@Excel(name = "制程工序编号") |
||||
|
private String manufacturingProcessCode; |
||||
|
|
||||
|
/** 制程工序名称 */ |
||||
|
@Excel(name = "制程工序名称") |
||||
|
private String manufacturingProcessName; |
||||
|
|
||||
|
/** 设备名称 */ |
||||
|
@Excel(name = "设备名称") |
||||
|
private String deviceName; |
||||
|
|
||||
|
/** 设备型号 */ |
||||
|
@Excel(name = "设备型号") |
||||
|
private String deviceModelCode; |
||||
|
|
||||
|
/** 工序顺序 */ |
||||
|
@Excel(name = "工序顺序") |
||||
|
private String processSequence; |
||||
|
|
||||
|
/** 车间名称 */ |
||||
|
@Excel(name = "车间名称") |
||||
|
private String workshopName; |
||||
|
|
||||
|
/** 零件名称 */ |
||||
|
@Excel(name = "零件名称") |
||||
|
private String modName; |
||||
|
|
||||
|
/** OK允收数 */ |
||||
|
@Excel(name = "OK允收数") |
||||
|
private String okAcceptedNum; |
||||
|
|
||||
|
/** 特采/让步数 */ |
||||
|
@Excel(name = "特采/让步数") |
||||
|
private String specialConcessionsNum; |
||||
|
|
||||
|
public void setManufacturingMaterialProcessId(Long manufacturingMaterialProcessId) |
||||
|
{ |
||||
|
this.manufacturingMaterialProcessId = manufacturingMaterialProcessId; |
||||
|
} |
||||
|
|
||||
|
public Long getManufacturingMaterialProcessId() |
||||
|
{ |
||||
|
return manufacturingMaterialProcessId; |
||||
|
} |
||||
|
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 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 setDeviceName(String deviceName) |
||||
|
{ |
||||
|
this.deviceName = deviceName; |
||||
|
} |
||||
|
|
||||
|
public String getDeviceName() |
||||
|
{ |
||||
|
return deviceName; |
||||
|
} |
||||
|
public void setDeviceModelCode(String deviceModelCode) |
||||
|
{ |
||||
|
this.deviceModelCode = deviceModelCode; |
||||
|
} |
||||
|
|
||||
|
public String getDeviceModelCode() |
||||
|
{ |
||||
|
return deviceModelCode; |
||||
|
} |
||||
|
public void setProcessSequence(String processSequence) |
||||
|
{ |
||||
|
this.processSequence = processSequence; |
||||
|
} |
||||
|
|
||||
|
public String getProcessSequence() |
||||
|
{ |
||||
|
return processSequence; |
||||
|
} |
||||
|
public void setWorkshopName(String workshopName) |
||||
|
{ |
||||
|
this.workshopName = workshopName; |
||||
|
} |
||||
|
|
||||
|
public String getWorkshopName() |
||||
|
{ |
||||
|
return workshopName; |
||||
|
} |
||||
|
public void setModName(String modName) |
||||
|
{ |
||||
|
this.modName = modName; |
||||
|
} |
||||
|
|
||||
|
public String getModName() |
||||
|
{ |
||||
|
return modName; |
||||
|
} |
||||
|
public void setOkAcceptedNum(String okAcceptedNum) |
||||
|
{ |
||||
|
this.okAcceptedNum = okAcceptedNum; |
||||
|
} |
||||
|
|
||||
|
public String getOkAcceptedNum() |
||||
|
{ |
||||
|
return okAcceptedNum; |
||||
|
} |
||||
|
public void setSpecialConcessionsNum(String specialConcessionsNum) |
||||
|
{ |
||||
|
this.specialConcessionsNum = specialConcessionsNum; |
||||
|
} |
||||
|
|
||||
|
public String getSpecialConcessionsNum() |
||||
|
{ |
||||
|
return specialConcessionsNum; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
||||
|
.append("manufacturingMaterialProcessId", getManufacturingMaterialProcessId()) |
||||
|
.append("materialNo", getMaterialNo()) |
||||
|
.append("materialName", getMaterialName()) |
||||
|
.append("manufacturingProcessCode", getManufacturingProcessCode()) |
||||
|
.append("manufacturingProcessName", getManufacturingProcessName()) |
||||
|
.append("deviceName", getDeviceName()) |
||||
|
.append("deviceModelCode", getDeviceModelCode()) |
||||
|
.append("processSequence", getProcessSequence()) |
||||
|
.append("workshopName", getWorkshopName()) |
||||
|
.append("modName", getModName()) |
||||
|
.append("okAcceptedNum", getOkAcceptedNum()) |
||||
|
.append("specialConcessionsNum", getSpecialConcessionsNum()) |
||||
|
.append("remark", getRemark()) |
||||
|
.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.QualityManufacturingMaterialProcess; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理制程检验物料生产工序Mapper接口 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-13 |
||||
|
*/ |
||||
|
public interface QualityManufacturingMaterialProcessMapper |
||||
|
{ |
||||
|
/** |
||||
|
* 查询品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return 品质管理制程检验物料生产工序 |
||||
|
*/ |
||||
|
public QualityManufacturingMaterialProcess selectQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId); |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理制程检验物料生产工序列表 |
||||
|
* |
||||
|
* @param qualityManufacturingMaterialProcess 品质管理制程检验物料生产工序 |
||||
|
* @return 品质管理制程检验物料生产工序集合 |
||||
|
*/ |
||||
|
public List<QualityManufacturingMaterialProcess> selectQualityManufacturingMaterialProcessList(QualityManufacturingMaterialProcess qualityManufacturingMaterialProcess); |
||||
|
|
||||
|
/** |
||||
|
* 新增品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param qualityManufacturingMaterialProcess 品质管理制程检验物料生产工序 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertQualityManufacturingMaterialProcess(QualityManufacturingMaterialProcess qualityManufacturingMaterialProcess); |
||||
|
|
||||
|
/** |
||||
|
* 修改品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param qualityManufacturingMaterialProcess 品质管理制程检验物料生产工序 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateQualityManufacturingMaterialProcess(QualityManufacturingMaterialProcess qualityManufacturingMaterialProcess); |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param manufacturingMaterialProcessIds 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityManufacturingMaterialProcessByIds(String[] manufacturingMaterialProcessIds); |
||||
|
|
||||
|
/** |
||||
|
* 作废品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int cancelQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId); |
||||
|
|
||||
|
/** |
||||
|
* 恢复品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int restoreQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId); |
||||
|
} |
@ -0,0 +1,75 @@ |
|||||
|
package com.ruoyi.quality.service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.ruoyi.quality.domain.QualityManufacturingMaterialProcess; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理制程检验物料生产工序Service接口 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-13 |
||||
|
*/ |
||||
|
public interface IQualityManufacturingMaterialProcessService |
||||
|
{ |
||||
|
/** |
||||
|
* 查询品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return 品质管理制程检验物料生产工序 |
||||
|
*/ |
||||
|
public QualityManufacturingMaterialProcess selectQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId); |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理制程检验物料生产工序列表 |
||||
|
* |
||||
|
* @param qualityManufacturingMaterialProcess 品质管理制程检验物料生产工序 |
||||
|
* @return 品质管理制程检验物料生产工序集合 |
||||
|
*/ |
||||
|
public List<QualityManufacturingMaterialProcess> selectQualityManufacturingMaterialProcessList(QualityManufacturingMaterialProcess qualityManufacturingMaterialProcess); |
||||
|
|
||||
|
/** |
||||
|
* 新增品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param qualityManufacturingMaterialProcess 品质管理制程检验物料生产工序 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertQualityManufacturingMaterialProcess(QualityManufacturingMaterialProcess qualityManufacturingMaterialProcess); |
||||
|
|
||||
|
/** |
||||
|
* 修改品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param qualityManufacturingMaterialProcess 品质管理制程检验物料生产工序 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateQualityManufacturingMaterialProcess(QualityManufacturingMaterialProcess qualityManufacturingMaterialProcess); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param ids 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityManufacturingMaterialProcessByIds(String ids); |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理制程检验物料生产工序信息 |
||||
|
* |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId); |
||||
|
|
||||
|
/** |
||||
|
* 作废品质管理制程检验物料生产工序 |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return |
||||
|
*/ |
||||
|
int cancelQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId); |
||||
|
|
||||
|
/** |
||||
|
* 恢复品质管理制程检验物料生产工序 |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return |
||||
|
*/ |
||||
|
int restoreQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId); |
||||
|
} |
@ -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.QualityManufacturingMaterialProcessMapper; |
||||
|
import com.ruoyi.quality.domain.QualityManufacturingMaterialProcess; |
||||
|
import com.ruoyi.quality.service.IQualityManufacturingMaterialProcessService; |
||||
|
import com.ruoyi.common.core.text.Convert; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理制程检验物料生产工序Service业务层处理 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-13 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class QualityManufacturingMaterialProcessServiceImpl implements IQualityManufacturingMaterialProcessService |
||||
|
{ |
||||
|
@Autowired |
||||
|
private QualityManufacturingMaterialProcessMapper qualityManufacturingMaterialProcessMapper; |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return 品质管理制程检验物料生产工序 |
||||
|
*/ |
||||
|
@Override |
||||
|
public QualityManufacturingMaterialProcess selectQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId) |
||||
|
{ |
||||
|
return qualityManufacturingMaterialProcessMapper.selectQualityManufacturingMaterialProcessById(manufacturingMaterialProcessId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理制程检验物料生产工序列表 |
||||
|
* |
||||
|
* @param qualityManufacturingMaterialProcess 品质管理制程检验物料生产工序 |
||||
|
* @return 品质管理制程检验物料生产工序 |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<QualityManufacturingMaterialProcess> selectQualityManufacturingMaterialProcessList(QualityManufacturingMaterialProcess qualityManufacturingMaterialProcess) |
||||
|
{ |
||||
|
return qualityManufacturingMaterialProcessMapper.selectQualityManufacturingMaterialProcessList(qualityManufacturingMaterialProcess); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param qualityManufacturingMaterialProcess 品质管理制程检验物料生产工序 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int insertQualityManufacturingMaterialProcess(QualityManufacturingMaterialProcess qualityManufacturingMaterialProcess) |
||||
|
{ |
||||
|
String loginName = ShiroUtils.getLoginName(); |
||||
|
qualityManufacturingMaterialProcess.setCreateBy(loginName); |
||||
|
qualityManufacturingMaterialProcess.setCreateTime(DateUtils.getNowDate()); |
||||
|
return qualityManufacturingMaterialProcessMapper.insertQualityManufacturingMaterialProcess(qualityManufacturingMaterialProcess); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param qualityManufacturingMaterialProcess 品质管理制程检验物料生产工序 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int updateQualityManufacturingMaterialProcess(QualityManufacturingMaterialProcess qualityManufacturingMaterialProcess) |
||||
|
{ |
||||
|
String loginName = ShiroUtils.getLoginName(); |
||||
|
qualityManufacturingMaterialProcess.setUpdateBy(loginName); |
||||
|
qualityManufacturingMaterialProcess.setUpdateTime(DateUtils.getNowDate()); |
||||
|
return qualityManufacturingMaterialProcessMapper.updateQualityManufacturingMaterialProcess(qualityManufacturingMaterialProcess); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理制程检验物料生产工序对象 |
||||
|
* |
||||
|
* @param ids 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int deleteQualityManufacturingMaterialProcessByIds(String ids) |
||||
|
{ |
||||
|
return qualityManufacturingMaterialProcessMapper.deleteQualityManufacturingMaterialProcessByIds(Convert.toStrArray(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理制程检验物料生产工序信息 |
||||
|
* |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int deleteQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId) |
||||
|
{ |
||||
|
return qualityManufacturingMaterialProcessMapper.deleteQualityManufacturingMaterialProcessById(manufacturingMaterialProcessId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 作废品质管理制程检验物料生产工序 |
||||
|
* |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int cancelQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId) |
||||
|
{ |
||||
|
return qualityManufacturingMaterialProcessMapper.cancelQualityManufacturingMaterialProcessById(manufacturingMaterialProcessId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 恢复品质管理制程检验物料生产工序信息 |
||||
|
* |
||||
|
* @param manufacturingMaterialProcessId 品质管理制程检验物料生产工序ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int restoreQualityManufacturingMaterialProcessById(Long manufacturingMaterialProcessId) |
||||
|
{ |
||||
|
return qualityManufacturingMaterialProcessMapper.restoreQualityManufacturingMaterialProcessById(manufacturingMaterialProcessId); |
||||
|
} |
||||
|
} |
@ -0,0 +1,124 @@ |
|||||
|
<?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.QualityManufacturingMaterialProcessMapper"> |
||||
|
|
||||
|
<resultMap type="QualityManufacturingMaterialProcess" id="QualityManufacturingMaterialProcessResult"> |
||||
|
<result property="manufacturingMaterialProcessId" column="manufacturing_material_process_id" /> |
||||
|
<result property="materialNo" column="material_no" /> |
||||
|
<result property="materialName" column="material_name" /> |
||||
|
<result property="manufacturingProcessCode" column="manufacturing_process_code" /> |
||||
|
<result property="manufacturingProcessName" column="manufacturing_process_name" /> |
||||
|
<result property="deviceName" column="device_name" /> |
||||
|
<result property="deviceModelCode" column="device_model_code" /> |
||||
|
<result property="processSequence" column="process_sequence" /> |
||||
|
<result property="workshopName" column="workshop_name" /> |
||||
|
<result property="modName" column="mod_name" /> |
||||
|
<result property="okAcceptedNum" column="ok_accepted_num" /> |
||||
|
<result property="specialConcessionsNum" column="special_concessions_num" /> |
||||
|
<result property="remark" column="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="selectQualityManufacturingMaterialProcessVo"> |
||||
|
select manufacturing_material_process_id, material_no, material_name, manufacturing_process_code, manufacturing_process_name, device_name, device_model_code, process_sequence, workshop_name, mod_name, ok_accepted_num, special_concessions_num, remark, create_by, create_time, update_by, update_time from quality_manufacturing_material_process |
||||
|
</sql> |
||||
|
|
||||
|
<select id="selectQualityManufacturingMaterialProcessList" parameterType="QualityManufacturingMaterialProcess" resultMap="QualityManufacturingMaterialProcessResult"> |
||||
|
<include refid="selectQualityManufacturingMaterialProcessVo"/> |
||||
|
<where> |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectQualityManufacturingMaterialProcessById" parameterType="Long" resultMap="QualityManufacturingMaterialProcessResult"> |
||||
|
<include refid="selectQualityManufacturingMaterialProcessVo"/> |
||||
|
where manufacturing_material_process_id = #{manufacturingMaterialProcessId} |
||||
|
</select> |
||||
|
|
||||
|
<insert id="insertQualityManufacturingMaterialProcess" parameterType="QualityManufacturingMaterialProcess" useGeneratedKeys="true" keyProperty="manufacturingMaterialProcessId"> |
||||
|
insert into quality_manufacturing_material_process |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="materialNo != null">material_no,</if> |
||||
|
<if test="materialName != null">material_name,</if> |
||||
|
<if test="manufacturingProcessCode != null">manufacturing_process_code,</if> |
||||
|
<if test="manufacturingProcessName != null">manufacturing_process_name,</if> |
||||
|
<if test="deviceName != null">device_name,</if> |
||||
|
<if test="deviceModelCode != null">device_model_code,</if> |
||||
|
<if test="processSequence != null">process_sequence,</if> |
||||
|
<if test="workshopName != null">workshop_name,</if> |
||||
|
<if test="modName != null">mod_name,</if> |
||||
|
<if test="okAcceptedNum != null">ok_accepted_num,</if> |
||||
|
<if test="specialConcessionsNum != null">special_concessions_num,</if> |
||||
|
<if test="remark != null">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="materialNo != null">#{materialNo},</if> |
||||
|
<if test="materialName != null">#{materialName},</if> |
||||
|
<if test="manufacturingProcessCode != null">#{manufacturingProcessCode},</if> |
||||
|
<if test="manufacturingProcessName != null">#{manufacturingProcessName},</if> |
||||
|
<if test="deviceName != null">#{deviceName},</if> |
||||
|
<if test="deviceModelCode != null">#{deviceModelCode},</if> |
||||
|
<if test="processSequence != null">#{processSequence},</if> |
||||
|
<if test="workshopName != null">#{workshopName},</if> |
||||
|
<if test="modName != null">#{modName},</if> |
||||
|
<if test="okAcceptedNum != null">#{okAcceptedNum},</if> |
||||
|
<if test="specialConcessionsNum != null">#{specialConcessionsNum},</if> |
||||
|
<if test="remark != null">#{remark},</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="updateQualityManufacturingMaterialProcess" parameterType="QualityManufacturingMaterialProcess"> |
||||
|
update quality_manufacturing_material_process |
||||
|
<trim prefix="SET" suffixOverrides=","> |
||||
|
<if test="materialNo != null">material_no = #{materialNo},</if> |
||||
|
<if test="materialName != null">material_name = #{materialName},</if> |
||||
|
<if test="manufacturingProcessCode != null">manufacturing_process_code = #{manufacturingProcessCode},</if> |
||||
|
<if test="manufacturingProcessName != null">manufacturing_process_name = #{manufacturingProcessName},</if> |
||||
|
<if test="deviceName != null">device_name = #{deviceName},</if> |
||||
|
<if test="deviceModelCode != null">device_model_code = #{deviceModelCode},</if> |
||||
|
<if test="processSequence != null">process_sequence = #{processSequence},</if> |
||||
|
<if test="workshopName != null">workshop_name = #{workshopName},</if> |
||||
|
<if test="modName != null">mod_name = #{modName},</if> |
||||
|
<if test="okAcceptedNum != null">ok_accepted_num = #{okAcceptedNum},</if> |
||||
|
<if test="specialConcessionsNum != null">special_concessions_num = #{specialConcessionsNum},</if> |
||||
|
<if test="remark != null">remark = #{remark},</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_material_process_id = #{manufacturingMaterialProcessId} |
||||
|
</update> |
||||
|
|
||||
|
<delete id="deleteQualityManufacturingMaterialProcessById" parameterType="Long"> |
||||
|
delete from quality_manufacturing_material_process where manufacturing_material_process_id = #{manufacturingMaterialProcessId} |
||||
|
</delete> |
||||
|
|
||||
|
<delete id="deleteQualityManufacturingMaterialProcessByIds" parameterType="String"> |
||||
|
delete from quality_manufacturing_material_process where manufacturing_material_process_id in |
||||
|
<foreach item="manufacturingMaterialProcessId" collection="array" open="(" separator="," close=")"> |
||||
|
#{manufacturingMaterialProcessId} |
||||
|
</foreach> |
||||
|
</delete> |
||||
|
|
||||
|
<update id="cancelQualityManufacturingMaterialProcessById" parameterType="Long"> |
||||
|
update quality_manufacturing_material_process set del_flag = '1' where manufacturing_material_process_id = #{manufacturingMaterialProcessId} |
||||
|
</update> |
||||
|
|
||||
|
<update id="restoreQualityManufacturingMaterialProcessById" parameterType="Long"> |
||||
|
update quality_manufacturing_material_process set del_flag = '0' where manufacturing_material_process_id = #{manufacturingMaterialProcessId} |
||||
|
</update> |
||||
|
|
||||
|
</mapper> |
Loading…
Reference in new issue