change - 质检材料信息
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,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…
Reference in New Issue