change - 质检材料信息

master
yinq 10 months ago
parent bbdb242595
commit a25e66aaaf

@ -0,0 +1,103 @@
package com.aucma.report.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.aucma.common.utils.DateUtils;
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.aucma.common.annotation.Log;
import com.aucma.common.core.controller.BaseController;
import com.aucma.common.core.domain.AjaxResult;
import com.aucma.common.enums.BusinessType;
import com.aucma.report.domain.RecordQualityMaterial;
import com.aucma.report.service.IRecordQualityMaterialService;
import com.aucma.common.utils.poi.ExcelUtil;
import com.aucma.common.core.page.TableDataInfo;
/**
* Controller
*
* @author Yinq
* @date 2024-01-07
*/
@RestController
@RequestMapping("/report/qualityMaterial" )
public class RecordQualityMaterialController extends BaseController {
@Autowired
private IRecordQualityMaterialService recordQualityMaterialService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:qualityMaterial:list')" )
@GetMapping("/list" )
public TableDataInfo list(RecordQualityMaterial recordQualityMaterial) {
startPage();
List<RecordQualityMaterial> list = recordQualityMaterialService.selectRecordQualityMaterialList(recordQualityMaterial);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:qualityMaterial:export')" )
@Log(title = "质检材料信息" , businessType = BusinessType.EXPORT)
@PostMapping("/export" )
public void export(HttpServletResponse response, RecordQualityMaterial recordQualityMaterial) {
List<RecordQualityMaterial> list = recordQualityMaterialService.selectRecordQualityMaterialList(recordQualityMaterial);
ExcelUtil<RecordQualityMaterial> util = new ExcelUtil<RecordQualityMaterial>(RecordQualityMaterial. class);
util.exportExcel(response, list, "质检材料信息数据" );
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:qualityMaterial:query')" )
@GetMapping(value = "/{objId}" )
public AjaxResult getInfo(@PathVariable("objId" ) Long objId) {
return success(recordQualityMaterialService.selectRecordQualityMaterialByObjId(objId));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:qualityMaterial:add')" )
@Log(title = "质检材料信息" , businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RecordQualityMaterial recordQualityMaterial) {
recordQualityMaterial.setCreatedBy(getUsername());
recordQualityMaterial.setCreatedTime(DateUtils.getNowDate());
return toAjax(recordQualityMaterialService.insertRecordQualityMaterial(recordQualityMaterial));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:qualityMaterial:edit')" )
@Log(title = "质检材料信息" , businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RecordQualityMaterial recordQualityMaterial) {
recordQualityMaterial.setUpdatedBy(getUsername());
recordQualityMaterial.setUpdatedTime(DateUtils.getNowDate());
return toAjax(recordQualityMaterialService.updateRecordQualityMaterial(recordQualityMaterial));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:qualityMaterial:remove')" )
@Log(title = "质检材料信息" , businessType = BusinessType.DELETE)
@DeleteMapping("/{objIds}" )
public AjaxResult remove(@PathVariable Long[] objIds) {
return toAjax(recordQualityMaterialService.deleteRecordQualityMaterialByObjIds(objIds));
}
}

@ -0,0 +1,386 @@
package com.aucma.report.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.aucma.common.annotation.Excel;
import com.aucma.common.core.domain.BaseEntity;
/**
* record_quality_material
*
* @author Yinq
* @date 2024-01-07
*/
public class RecordQualityMaterial extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
private Long objId;
/**
* SAP
*/
@Excel(name = "SAP计划编号")
private String orderCode;
/**
*
*/
@Excel(name = "物料编码")
private String materialCode;
/**
*
*/
@Excel(name = "物料名称")
private String materialName;
/**
*
*/
@Excel(name = "物料型号")
private String materialModel;
/**
* 1=;2=;3=
*/
@Excel(name = "信息类型", readConverterExp = "1==厂家代码;2=是否回用;3=其他信息")
private String infoType;
/**
* F
*/
@Excel(name = "蒸发器F")
private String zhengFaQiF;
/**
* Z
*/
@Excel(name = "蒸发器Z")
private String zhengFaQiZ;
/**
*
*/
@Excel(name = "组合聚醚")
private String zuHeJiMi;
/**
*
*/
@Excel(name = "异氰酸酯")
private String yiQingSuanZhi;
/**
*
*/
@Excel(name = "温控器")
private String wenKongQi;
/**
*
*/
@Excel(name = "压缩机")
private String yaSuoQi;
/**
*
*/
@Excel(name = "内冷凝器")
private String neiLengNingQi;
/**
*
*/
@Excel(name = "外冷凝器")
private String waiLengNingQi;
/**
*
*/
@Excel(name = "风机")
private String fengJi;
/**
*
*/
@Excel(name = "毛细管")
private String maoXiGuan;
/**
* 线
*/
@Excel(name = "电源线")
private String dianYuanXian;
/**
*
*/
@Excel(name = "电脑板")
private String dianNaoBan;
/**
*
*/
@Excel(name = "灯座")
private String dengZuo;
/**
*
*/
@Excel(name = "门灯开关")
private String menDengKaiGuan;
/**
*
*/
@Excel(name = "创建人")
private String createdBy;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date createdTime;
/**
*
*/
@Excel(name = "更新人")
private String updatedBy;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date updatedTime;
public void setObjId(Long objId) {
this.objId = objId;
}
public Long getObjId() {
return objId;
}
public void setOrderCode(String orderCode) {
this.orderCode = orderCode;
}
public String getOrderCode() {
return orderCode;
}
public void setMaterialCode(String materialCode) {
this.materialCode = materialCode;
}
public String getMaterialCode() {
return materialCode;
}
public void setMaterialName(String materialName) {
this.materialName = materialName;
}
public String getMaterialName() {
return materialName;
}
public void setMaterialModel(String materialModel) {
this.materialModel = materialModel;
}
public String getMaterialModel() {
return materialModel;
}
public void setInfoType(String infoType) {
this.infoType = infoType;
}
public String getInfoType() {
return infoType;
}
public void setZhengFaQiF(String zhengFaQiF) {
this.zhengFaQiF = zhengFaQiF;
}
public String getZhengFaQiF() {
return zhengFaQiF;
}
public void setZhengFaQiZ(String zhengFaQiZ) {
this.zhengFaQiZ = zhengFaQiZ;
}
public String getZhengFaQiZ() {
return zhengFaQiZ;
}
public void setZuHeJiMi(String zuHeJiMi) {
this.zuHeJiMi = zuHeJiMi;
}
public String getZuHeJiMi() {
return zuHeJiMi;
}
public void setYiQingSuanZhi(String yiQingSuanZhi) {
this.yiQingSuanZhi = yiQingSuanZhi;
}
public String getYiQingSuanZhi() {
return yiQingSuanZhi;
}
public void setWenKongQi(String wenKongQi) {
this.wenKongQi = wenKongQi;
}
public String getWenKongQi() {
return wenKongQi;
}
public void setYaSuoQi(String yaSuoQi) {
this.yaSuoQi = yaSuoQi;
}
public String getYaSuoQi() {
return yaSuoQi;
}
public void setNeiLengNingQi(String neiLengNingQi) {
this.neiLengNingQi = neiLengNingQi;
}
public String getNeiLengNingQi() {
return neiLengNingQi;
}
public void setWaiLengNingQi(String waiLengNingQi) {
this.waiLengNingQi = waiLengNingQi;
}
public String getWaiLengNingQi() {
return waiLengNingQi;
}
public void setFengJi(String fengJi) {
this.fengJi = fengJi;
}
public String getFengJi() {
return fengJi;
}
public void setMaoXiGuan(String maoXiGuan) {
this.maoXiGuan = maoXiGuan;
}
public String getMaoXiGuan() {
return maoXiGuan;
}
public void setDianYuanXian(String dianYuanXian) {
this.dianYuanXian = dianYuanXian;
}
public String getDianYuanXian() {
return dianYuanXian;
}
public void setDianNaoBan(String dianNaoBan) {
this.dianNaoBan = dianNaoBan;
}
public String getDianNaoBan() {
return dianNaoBan;
}
public void setDengZuo(String dengZuo) {
this.dengZuo = dengZuo;
}
public String getDengZuo() {
return dengZuo;
}
public void setMenDengKaiGuan(String menDengKaiGuan) {
this.menDengKaiGuan = menDengKaiGuan;
}
public String getMenDengKaiGuan() {
return menDengKaiGuan;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedTime(Date createdTime) {
this.createdTime = createdTime;
}
public Date getCreatedTime() {
return createdTime;
}
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
public String getUpdatedBy() {
return updatedBy;
}
public void setUpdatedTime(Date updatedTime) {
this.updatedTime = updatedTime;
}
public Date getUpdatedTime() {
return updatedTime;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("objId", getObjId())
.append("orderCode", getOrderCode())
.append("materialCode", getMaterialCode())
.append("materialName", getMaterialName())
.append("materialModel", getMaterialModel())
.append("infoType", getInfoType())
.append("zhengFaQiF", getZhengFaQiF())
.append("zhengFaQiZ", getZhengFaQiZ())
.append("zuHeJiMi", getZuHeJiMi())
.append("yiQingSuanZhi", getYiQingSuanZhi())
.append("wenKongQi", getWenKongQi())
.append("yaSuoQi", getYaSuoQi())
.append("neiLengNingQi", getNeiLengNingQi())
.append("waiLengNingQi", getWaiLengNingQi())
.append("fengJi", getFengJi())
.append("maoXiGuan", getMaoXiGuan())
.append("dianYuanXian", getDianYuanXian())
.append("dianNaoBan", getDianNaoBan())
.append("dengZuo", getDengZuo())
.append("menDengKaiGuan", getMenDengKaiGuan())
.append("createdBy", getCreatedBy())
.append("createdTime", getCreatedTime())
.append("updatedBy", getUpdatedBy())
.append("updatedTime", getUpdatedTime())
.toString();
}
}

@ -0,0 +1,61 @@
package com.aucma.report.mapper;
import java.util.List;
import com.aucma.report.domain.RecordQualityMaterial;
/**
* Mapper
*
* @author Yinq
* @date 2024-01-07
*/
public interface RecordQualityMaterialMapper {
/**
*
*
* @param objId
* @return
*/
public RecordQualityMaterial selectRecordQualityMaterialByObjId(Long objId);
/**
*
*
* @param recordQualityMaterial
* @return
*/
public List<RecordQualityMaterial> selectRecordQualityMaterialList(RecordQualityMaterial recordQualityMaterial);
/**
*
*
* @param recordQualityMaterial
* @return
*/
public int insertRecordQualityMaterial(RecordQualityMaterial recordQualityMaterial);
/**
*
*
* @param recordQualityMaterial
* @return
*/
public int updateRecordQualityMaterial(RecordQualityMaterial recordQualityMaterial);
/**
*
*
* @param objId
* @return
*/
public int deleteRecordQualityMaterialByObjId(Long objId);
/**
*
*
* @param objIds
* @return
*/
public int deleteRecordQualityMaterialByObjIds(Long[] objIds);
}

@ -0,0 +1,61 @@
package com.aucma.report.service;
import java.util.List;
import com.aucma.report.domain.RecordQualityMaterial;
/**
* Service
*
* @author Yinq
* @date 2024-01-07
*/
public interface IRecordQualityMaterialService
{
/**
*
*
* @param objId
* @return
*/
public RecordQualityMaterial selectRecordQualityMaterialByObjId(Long objId);
/**
*
*
* @param recordQualityMaterial
* @return
*/
public List<RecordQualityMaterial> selectRecordQualityMaterialList(RecordQualityMaterial recordQualityMaterial);
/**
*
*
* @param recordQualityMaterial
* @return
*/
public int insertRecordQualityMaterial(RecordQualityMaterial recordQualityMaterial);
/**
*
*
* @param recordQualityMaterial
* @return
*/
public int updateRecordQualityMaterial(RecordQualityMaterial recordQualityMaterial);
/**
*
*
* @param objIds
* @return
*/
public int deleteRecordQualityMaterialByObjIds(Long[] objIds);
/**
*
*
* @param objId
* @return
*/
public int deleteRecordQualityMaterialByObjId(Long objId);
}

@ -0,0 +1,110 @@
package com.aucma.report.service.impl;
import java.util.List;
import com.aucma.base.domain.BaseOrderInfo;
import com.aucma.base.mapper.BaseOrderInfoMapper;
import com.aucma.common.exception.ServiceException;
import com.aucma.common.exception.base.BaseException;
import com.aucma.common.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aucma.report.mapper.RecordQualityMaterialMapper;
import com.aucma.report.domain.RecordQualityMaterial;
import com.aucma.report.service.IRecordQualityMaterialService;
/**
* Service
*
* @author Yinq
* @date 2024-01-07
*/
@Service
public class RecordQualityMaterialServiceImpl implements IRecordQualityMaterialService {
@Autowired
private RecordQualityMaterialMapper recordQualityMaterialMapper;
@Autowired
private BaseOrderInfoMapper orderInfoMapper;
/**
*
*
* @param objId
* @return
*/
@Override
public RecordQualityMaterial selectRecordQualityMaterialByObjId(Long objId) {
return recordQualityMaterialMapper.selectRecordQualityMaterialByObjId(objId);
}
/**
*
*
* @param recordQualityMaterial
* @return
*/
@Override
public List<RecordQualityMaterial> selectRecordQualityMaterialList(RecordQualityMaterial recordQualityMaterial) {
return recordQualityMaterialMapper.selectRecordQualityMaterialList(recordQualityMaterial);
}
/**
*
*
* @param recordQualityMaterial
* @return
*/
@Override
public int insertRecordQualityMaterial(RecordQualityMaterial recordQualityMaterial) {
if (StringUtils.isNotEmpty(recordQualityMaterial.getOrderCode())) {
BaseOrderInfo baseOrderInfo = new BaseOrderInfo();
baseOrderInfo.setOrderCode(recordQualityMaterial.getOrderCode());
List<BaseOrderInfo> baseOrderInfos = orderInfoMapper.selectBaseOrderInfoList(baseOrderInfo);
if (baseOrderInfos.size() == 0) {
throw new ServiceException("此SAP计划未维护!");
}
RecordQualityMaterial material = new RecordQualityMaterial();
material.setMaterialCode(recordQualityMaterial.getMaterialCode());
material.setInfoType(recordQualityMaterial.getInfoType());
List<RecordQualityMaterial> qualityMaterials = recordQualityMaterialMapper.selectRecordQualityMaterialList(material);
if (qualityMaterials.size() > 0) {
throw new ServiceException("此SAP计划已维护!");
}
}
return recordQualityMaterialMapper.insertRecordQualityMaterial(recordQualityMaterial);
}
/**
*
*
* @param recordQualityMaterial
* @return
*/
@Override
public int updateRecordQualityMaterial(RecordQualityMaterial recordQualityMaterial) {
return recordQualityMaterialMapper.updateRecordQualityMaterial(recordQualityMaterial);
}
/**
*
*
* @param objIds
* @return
*/
@Override
public int deleteRecordQualityMaterialByObjIds(Long[] objIds) {
return recordQualityMaterialMapper.deleteRecordQualityMaterialByObjIds(objIds);
}
/**
*
*
* @param objId
* @return
*/
@Override
public int deleteRecordQualityMaterialByObjId(Long objId) {
return recordQualityMaterialMapper.deleteRecordQualityMaterialByObjId(objId);
}
}

@ -0,0 +1,202 @@
<?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.aucma.report.mapper.RecordQualityMaterialMapper">
<resultMap type="RecordQualityMaterial" id="RecordQualityMaterialResult">
<result property="objId" column="obj_id"/>
<result property="orderCode" column="order_code"/>
<result property="materialCode" column="material_code"/>
<result property="materialName" column="material_name"/>
<result property="materialModel" column="material_model"/>
<result property="infoType" column="info_type"/>
<result property="zhengFaQiF" column="zheng_fa_qi_f"/>
<result property="zhengFaQiZ" column="zheng_fa_qi_z"/>
<result property="zuHeJiMi" column="zu_he_ji_mi"/>
<result property="yiQingSuanZhi" column="yi_qing_suan_zhi"/>
<result property="wenKongQi" column="wen_kong_qi"/>
<result property="yaSuoQi" column="ya_suo_qi"/>
<result property="neiLengNingQi" column="nei_leng_ning_qi"/>
<result property="waiLengNingQi" column="wai_leng_ning_qi"/>
<result property="fengJi" column="feng_ji"/>
<result property="maoXiGuan" column="mao_xi_guan"/>
<result property="dianYuanXian" column="dian_yuan_xian"/>
<result property="dianNaoBan" column="dian_nao_ban"/>
<result property="dengZuo" column="deng_zuo"/>
<result property="menDengKaiGuan" column="men_deng_kai_guan"/>
<result property="createdBy" column="created_by"/>
<result property="createdTime" column="created_time"/>
<result property="updatedBy" column="updated_by"/>
<result property="updatedTime" column="updated_time"/>
</resultMap>
<sql id="selectRecordQualityMaterialVo">
select rqm.obj_id,
rqm.order_code,
bo.MATERIAL_CODE material_code,
bm.MATERIAL_NAME material_name,
bm.MATERIAL_SPECIFICATIONS material_model,
rqm.info_type,
rqm.zheng_fa_qi_f,
rqm.zheng_fa_qi_z,
rqm.zu_he_ji_mi,
rqm.yi_qing_suan_zhi,
rqm.wen_kong_qi,
rqm.ya_suo_qi,
rqm.nei_leng_ning_qi,
rqm.wai_leng_ning_qi,
rqm.feng_ji,
rqm.mao_xi_guan,
rqm.dian_yuan_xian,
rqm.dian_nao_ban,
rqm.deng_zuo,
rqm.men_deng_kai_guan,
rqm.created_by,
rqm.created_time,
rqm.updated_by,
rqm.updated_time
from record_quality_material rqm
left join BASE_ORDERINFO bo on bo.ORDER_CODE = rqm.ORDER_CODE
left join BASE_MATERIALINFO bm on bm.MATERIAL_CODE = bo.MATERIAL_CODE
</sql>
<select id="selectRecordQualityMaterialList" parameterType="RecordQualityMaterial"
resultMap="RecordQualityMaterialResult">
<include refid="selectRecordQualityMaterialVo"/>
<where>
<if test="orderCode != null and orderCode != ''">and rqm.order_code = #{orderCode}</if>
<if test="materialCode != null and materialCode != ''">and rqm.material_code = #{materialCode}</if>
<if test="materialName != null and materialName != ''">and rqm.material_name like concat(concat('%',
#{materialName}), '%')
</if>
<if test="materialModel != null and materialModel != ''">and rqm.material_model = #{materialModel}</if>
<if test="infoType != null and infoType != ''">and rqm.info_type = #{infoType}</if>
<if test="zhengFaQiF != null and zhengFaQiF != ''">and zheng_fa_qi_f = #{zhengFaQiF}</if>
<if test="zhengFaQiZ != null and zhengFaQiZ != ''">and zheng_fa_qi_z = #{zhengFaQiZ}</if>
<if test="zuHeJiMi != null and zuHeJiMi != ''">and zu_he_ji_mi = #{zuHeJiMi}</if>
<if test="yiQingSuanZhi != null and yiQingSuanZhi != ''">and yi_qing_suan_zhi = #{yiQingSuanZhi}</if>
<if test="wenKongQi != null and wenKongQi != ''">and wen_kong_qi = #{wenKongQi}</if>
<if test="yaSuoQi != null and yaSuoQi != ''">and ya_suo_qi = #{yaSuoQi}</if>
<if test="neiLengNingQi != null and neiLengNingQi != ''">and nei_leng_ning_qi = #{neiLengNingQi}</if>
<if test="waiLengNingQi != null and waiLengNingQi != ''">and wai_leng_ning_qi = #{waiLengNingQi}</if>
<if test="fengJi != null and fengJi != ''">and feng_ji = #{fengJi}</if>
<if test="maoXiGuan != null and maoXiGuan != ''">and mao_xi_guan = #{maoXiGuan}</if>
<if test="dianYuanXian != null and dianYuanXian != ''">and dian_yuan_xian = #{dianYuanXian}</if>
<if test="dianNaoBan != null and dianNaoBan != ''">and dian_nao_ban = #{dianNaoBan}</if>
<if test="dengZuo != null and dengZuo != ''">and deng_zuo = #{dengZuo}</if>
<if test="menDengKaiGuan != null and menDengKaiGuan != ''">and men_deng_kai_guan = #{menDengKaiGuan}</if>
<if test="createdBy != null and createdBy != ''">and created_by = #{createdBy}</if>
<if test="createdTime != null ">and created_time = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''">and updated_by = #{updatedBy}</if>
<if test="updatedTime != null ">and updated_time = #{updatedTime}</if>
</where>
</select>
<select id="selectRecordQualityMaterialByObjId" parameterType="Long" resultMap="RecordQualityMaterialResult">
<include refid="selectRecordQualityMaterialVo"/>
where rqm.obj_id = #{objId}
</select>
<insert id="insertRecordQualityMaterial" parameterType="RecordQualityMaterial">
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
SELECT seq_record_quality_material.NEXTVAL as objId FROM DUAL
</selectKey>
insert into record_quality_material
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="objId != null">obj_id,</if>
<if test="orderCode != null">order_code,</if>
<if test="materialCode != null">material_code,</if>
<if test="materialName != null">material_name,</if>
<if test="materialModel != null">material_model,</if>
<if test="infoType != null">info_type,</if>
<if test="zhengFaQiF != null">zheng_fa_qi_f,</if>
<if test="zhengFaQiZ != null">zheng_fa_qi_z,</if>
<if test="zuHeJiMi != null">zu_he_ji_mi,</if>
<if test="yiQingSuanZhi != null">yi_qing_suan_zhi,</if>
<if test="wenKongQi != null">wen_kong_qi,</if>
<if test="yaSuoQi != null">ya_suo_qi,</if>
<if test="neiLengNingQi != null">nei_leng_ning_qi,</if>
<if test="waiLengNingQi != null">wai_leng_ning_qi,</if>
<if test="fengJi != null">feng_ji,</if>
<if test="maoXiGuan != null">mao_xi_guan,</if>
<if test="dianYuanXian != null">dian_yuan_xian,</if>
<if test="dianNaoBan != null">dian_nao_ban,</if>
<if test="dengZuo != null">deng_zuo,</if>
<if test="menDengKaiGuan != null">men_deng_kai_guan,</if>
<if test="createdBy != null">created_by,</if>
<if test="createdTime != null">created_time,</if>
<if test="updatedBy != null">updated_by,</if>
<if test="updatedTime != null">updated_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="objId != null">#{objId},</if>
<if test="orderCode != null">#{orderCode},</if>
<if test="materialCode != null">#{materialCode},</if>
<if test="materialName != null">#{materialName},</if>
<if test="materialModel != null">#{materialModel},</if>
<if test="infoType != null">#{infoType},</if>
<if test="zhengFaQiF != null">#{zhengFaQiF},</if>
<if test="zhengFaQiZ != null">#{zhengFaQiZ},</if>
<if test="zuHeJiMi != null">#{zuHeJiMi},</if>
<if test="yiQingSuanZhi != null">#{yiQingSuanZhi},</if>
<if test="wenKongQi != null">#{wenKongQi},</if>
<if test="yaSuoQi != null">#{yaSuoQi},</if>
<if test="neiLengNingQi != null">#{neiLengNingQi},</if>
<if test="waiLengNingQi != null">#{waiLengNingQi},</if>
<if test="fengJi != null">#{fengJi},</if>
<if test="maoXiGuan != null">#{maoXiGuan},</if>
<if test="dianYuanXian != null">#{dianYuanXian},</if>
<if test="dianNaoBan != null">#{dianNaoBan},</if>
<if test="dengZuo != null">#{dengZuo},</if>
<if test="menDengKaiGuan != null">#{menDengKaiGuan},</if>
<if test="createdBy != null">#{createdBy},</if>
<if test="createdTime != null">#{createdTime},</if>
<if test="updatedBy != null">#{updatedBy},</if>
<if test="updatedTime != null">#{updatedTime},</if>
</trim>
</insert>
<update id="updateRecordQualityMaterial" parameterType="RecordQualityMaterial">
update record_quality_material
<trim prefix="SET" suffixOverrides=",">
<if test="orderCode != null">order_code = #{orderCode},</if>
<if test="materialCode != null">material_code = #{materialCode},</if>
<if test="materialName != null">material_name = #{materialName},</if>
<if test="materialModel != null">material_model = #{materialModel},</if>
<if test="infoType != null">info_type = #{infoType},</if>
<if test="zhengFaQiF != null">zheng_fa_qi_f = #{zhengFaQiF},</if>
<if test="zhengFaQiZ != null">zheng_fa_qi_z = #{zhengFaQiZ},</if>
<if test="zuHeJiMi != null">zu_he_ji_mi = #{zuHeJiMi},</if>
<if test="yiQingSuanZhi != null">yi_qing_suan_zhi = #{yiQingSuanZhi},</if>
<if test="wenKongQi != null">wen_kong_qi = #{wenKongQi},</if>
<if test="yaSuoQi != null">ya_suo_qi = #{yaSuoQi},</if>
<if test="neiLengNingQi != null">nei_leng_ning_qi = #{neiLengNingQi},</if>
<if test="waiLengNingQi != null">wai_leng_ning_qi = #{waiLengNingQi},</if>
<if test="fengJi != null">feng_ji = #{fengJi},</if>
<if test="maoXiGuan != null">mao_xi_guan = #{maoXiGuan},</if>
<if test="dianYuanXian != null">dian_yuan_xian = #{dianYuanXian},</if>
<if test="dianNaoBan != null">dian_nao_ban = #{dianNaoBan},</if>
<if test="dengZuo != null">deng_zuo = #{dengZuo},</if>
<if test="menDengKaiGuan != null">men_deng_kai_guan = #{menDengKaiGuan},</if>
<if test="createdBy != null">created_by = #{createdBy},</if>
<if test="createdTime != null">created_time = #{createdTime},</if>
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
</trim>
where obj_id = #{objId}
</update>
<delete id="deleteRecordQualityMaterialByObjId" parameterType="Long">
delete
from record_quality_material
where obj_id = #{objId}
</delete>
<delete id="deleteRecordQualityMaterialByObjIds" parameterType="String">
delete from record_quality_material where obj_id in
<foreach item="objId" collection="array" open="(" separator="," close=")">
#{objId}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save