update - 添加质检记录管理
parent
e392559785
commit
2eeef36acb
@ -0,0 +1,101 @@
|
|||||||
|
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.ReportQualityInspection;
|
||||||
|
import com.aucma.report.service.IReportQualityInspectionService;
|
||||||
|
import com.aucma.common.utils.poi.ExcelUtil;
|
||||||
|
import com.aucma.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 质检记录管理Controller
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2023-11-21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/report/qualityInspection" )
|
||||||
|
public class ReportQualityInspectionController extends BaseController {
|
||||||
|
@Autowired
|
||||||
|
private IReportQualityInspectionService reportQualityInspectionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询质检记录管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('report:qualityInspection:list')" )
|
||||||
|
@GetMapping("/list" )
|
||||||
|
public TableDataInfo list(ReportQualityInspection reportQualityInspection) {
|
||||||
|
startPage();
|
||||||
|
List<ReportQualityInspection> list = reportQualityInspectionService.selectReportQualityInspectionList(reportQualityInspection);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出质检记录管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('report:qualityInspection:export')" )
|
||||||
|
@Log(title = "质检记录管理" , businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export" )
|
||||||
|
public void export(HttpServletResponse response, ReportQualityInspection reportQualityInspection) {
|
||||||
|
List<ReportQualityInspection> list = reportQualityInspectionService.selectReportQualityInspectionList(reportQualityInspection);
|
||||||
|
ExcelUtil<ReportQualityInspection> util = new ExcelUtil<ReportQualityInspection>(ReportQualityInspection. class);
|
||||||
|
util.exportExcel(response, list, "质检记录管理数据" );
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取质检记录管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('report:qualityInspection:query')" )
|
||||||
|
@GetMapping(value = "/{objId}" )
|
||||||
|
public AjaxResult getInfo(@PathVariable("objId" ) Long objId) {
|
||||||
|
return success(reportQualityInspectionService.selectReportQualityInspectionByObjId(objId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增质检记录管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('report:qualityInspection:add')" )
|
||||||
|
@Log(title = "质检记录管理" , businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody ReportQualityInspection reportQualityInspection) {
|
||||||
|
return toAjax(reportQualityInspectionService.insertReportQualityInspection(reportQualityInspection));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改质检记录管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('report:qualityInspection:edit')" )
|
||||||
|
@Log(title = "质检记录管理" , businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody ReportQualityInspection reportQualityInspection) {
|
||||||
|
reportQualityInspection.setUpdatedBy(getUsername());
|
||||||
|
reportQualityInspection.setUpdatedTime(DateUtils.getNowDate());
|
||||||
|
return toAjax(reportQualityInspectionService.updateReportQualityInspection(reportQualityInspection));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除质检记录管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('report:qualityInspection:remove')" )
|
||||||
|
@Log(title = "质检记录管理" , businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{objIds}" )
|
||||||
|
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||||
|
return toAjax(reportQualityInspectionService.deleteReportQualityInspectionByObjIds(objIds));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.aucma.report.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.aucma.report.domain.ReportQualityInspection;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 质检记录管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2023-11-21
|
||||||
|
*/
|
||||||
|
public interface ReportQualityInspectionMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询质检记录管理
|
||||||
|
*
|
||||||
|
* @param objId 质检记录管理主键
|
||||||
|
* @return 质检记录管理
|
||||||
|
*/
|
||||||
|
public ReportQualityInspection selectReportQualityInspectionByObjId(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询质检记录管理列表
|
||||||
|
*
|
||||||
|
* @param reportQualityInspection 质检记录管理
|
||||||
|
* @return 质检记录管理集合
|
||||||
|
*/
|
||||||
|
public List<ReportQualityInspection> selectReportQualityInspectionList(ReportQualityInspection reportQualityInspection);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增质检记录管理
|
||||||
|
*
|
||||||
|
* @param reportQualityInspection 质检记录管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertReportQualityInspection(ReportQualityInspection reportQualityInspection);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改质检记录管理
|
||||||
|
*
|
||||||
|
* @param reportQualityInspection 质检记录管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateReportQualityInspection(ReportQualityInspection reportQualityInspection);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除质检记录管理
|
||||||
|
*
|
||||||
|
* @param objId 质检记录管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteReportQualityInspectionByObjId(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除质检记录管理
|
||||||
|
*
|
||||||
|
* @param objIds 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteReportQualityInspectionByObjIds(Long[] objIds);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.aucma.report.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.aucma.report.domain.ReportQualityInspection;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 质检记录管理Service接口
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2023-11-21
|
||||||
|
*/
|
||||||
|
public interface IReportQualityInspectionService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询质检记录管理
|
||||||
|
*
|
||||||
|
* @param objId 质检记录管理主键
|
||||||
|
* @return 质检记录管理
|
||||||
|
*/
|
||||||
|
public ReportQualityInspection selectReportQualityInspectionByObjId(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询质检记录管理列表
|
||||||
|
*
|
||||||
|
* @param reportQualityInspection 质检记录管理
|
||||||
|
* @return 质检记录管理集合
|
||||||
|
*/
|
||||||
|
public List<ReportQualityInspection> selectReportQualityInspectionList(ReportQualityInspection reportQualityInspection);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增质检记录管理
|
||||||
|
*
|
||||||
|
* @param reportQualityInspection 质检记录管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertReportQualityInspection(ReportQualityInspection reportQualityInspection);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改质检记录管理
|
||||||
|
*
|
||||||
|
* @param reportQualityInspection 质检记录管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateReportQualityInspection(ReportQualityInspection reportQualityInspection);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除质检记录管理
|
||||||
|
*
|
||||||
|
* @param objIds 需要删除的质检记录管理主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteReportQualityInspectionByObjIds(Long[] objIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除质检记录管理信息
|
||||||
|
*
|
||||||
|
* @param objId 质检记录管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteReportQualityInspectionByObjId(Long objId);
|
||||||
|
}
|
||||||
@ -0,0 +1,93 @@
|
|||||||
|
package com.aucma.report.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.aucma.report.mapper.ReportQualityInspectionMapper;
|
||||||
|
import com.aucma.report.domain.ReportQualityInspection;
|
||||||
|
import com.aucma.report.service.IReportQualityInspectionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 质检记录管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2023-11-21
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ReportQualityInspectionServiceImpl implements IReportQualityInspectionService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ReportQualityInspectionMapper reportQualityInspectionMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询质检记录管理
|
||||||
|
*
|
||||||
|
* @param objId 质检记录管理主键
|
||||||
|
* @return 质检记录管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ReportQualityInspection selectReportQualityInspectionByObjId(Long objId)
|
||||||
|
{
|
||||||
|
return reportQualityInspectionMapper.selectReportQualityInspectionByObjId(objId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询质检记录管理列表
|
||||||
|
*
|
||||||
|
* @param reportQualityInspection 质检记录管理
|
||||||
|
* @return 质检记录管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ReportQualityInspection> selectReportQualityInspectionList(ReportQualityInspection reportQualityInspection)
|
||||||
|
{
|
||||||
|
return reportQualityInspectionMapper.selectReportQualityInspectionList(reportQualityInspection);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增质检记录管理
|
||||||
|
*
|
||||||
|
* @param reportQualityInspection 质检记录管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertReportQualityInspection(ReportQualityInspection reportQualityInspection)
|
||||||
|
{
|
||||||
|
return reportQualityInspectionMapper.insertReportQualityInspection(reportQualityInspection);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改质检记录管理
|
||||||
|
*
|
||||||
|
* @param reportQualityInspection 质检记录管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateReportQualityInspection(ReportQualityInspection reportQualityInspection)
|
||||||
|
{
|
||||||
|
return reportQualityInspectionMapper.updateReportQualityInspection(reportQualityInspection);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除质检记录管理
|
||||||
|
*
|
||||||
|
* @param objIds 需要删除的质检记录管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteReportQualityInspectionByObjIds(Long[] objIds)
|
||||||
|
{
|
||||||
|
return reportQualityInspectionMapper.deleteReportQualityInspectionByObjIds(objIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除质检记录管理信息
|
||||||
|
*
|
||||||
|
* @param objId 质检记录管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteReportQualityInspectionByObjId(Long objId)
|
||||||
|
{
|
||||||
|
return reportQualityInspectionMapper.deleteReportQualityInspectionByObjId(objId);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,170 @@
|
|||||||
|
<?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.ReportQualityInspectionMapper">
|
||||||
|
|
||||||
|
<resultMap type="ReportQualityInspection" id="ReportQualityInspectionResult">
|
||||||
|
<result property="objId" column="obj_id"/>
|
||||||
|
<result property="barCode" column="bar_code"/>
|
||||||
|
<result property="materialName" column="material_name"/>
|
||||||
|
<result property="processCode" column="process_code"/>
|
||||||
|
<result property="testItemCode" column="test_item_code"/>
|
||||||
|
<result property="qualityDefectCode" column="quality_defect_code"/>
|
||||||
|
<result property="qualityDefectName" column="quality_defect_name"/>
|
||||||
|
<result property="treatmentMeasure" column="treatment_measure"/>
|
||||||
|
<result property="processResult" column="process_result"/>
|
||||||
|
<result property="isLowerLine" column="is_lower_line"/>
|
||||||
|
<result property="groupCode" column="group_code"/>
|
||||||
|
<result property="inspectorCode" column="inspector_code"/>
|
||||||
|
<result property="inspectorTime" column="inspector_time"/>
|
||||||
|
<result property="reworkNumber" column="rework_number"/>
|
||||||
|
<result property="finishTime" column="finish_time"/>
|
||||||
|
<result property="isFlag" column="is_flag"/>
|
||||||
|
<result property="updatedBy" column="updated_by"/>
|
||||||
|
<result property="updatedTime" column="updated_time"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectReportQualityInspectionVo">
|
||||||
|
select obj_id,
|
||||||
|
bar_code,
|
||||||
|
material_name,
|
||||||
|
process_code,
|
||||||
|
test_item_code,
|
||||||
|
quality_defect_code,
|
||||||
|
quality_defect_name,
|
||||||
|
treatment_measure,
|
||||||
|
process_result,
|
||||||
|
is_lower_line,
|
||||||
|
group_code,
|
||||||
|
inspector_code,
|
||||||
|
inspector_time,
|
||||||
|
rework_number,
|
||||||
|
finish_time,
|
||||||
|
is_flag,
|
||||||
|
updated_by,
|
||||||
|
updated_time
|
||||||
|
from report_quality_inspection
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectReportQualityInspectionList" parameterType="ReportQualityInspection"
|
||||||
|
resultMap="ReportQualityInspectionResult">
|
||||||
|
<include refid="selectReportQualityInspectionVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="barCode != null and barCode != ''">and bar_code = #{barCode}</if>
|
||||||
|
<if test="materialName != null and materialName != ''">and material_name like concat(concat('%',
|
||||||
|
#{materialName}), '%')
|
||||||
|
</if>
|
||||||
|
<if test="processCode != null and processCode != ''">and process_code = #{processCode}</if>
|
||||||
|
<if test="testItemCode != null and testItemCode != ''">and test_item_code = #{testItemCode}</if>
|
||||||
|
<if test="qualityDefectCode != null and qualityDefectCode != ''">and quality_defect_code =
|
||||||
|
#{qualityDefectCode}
|
||||||
|
</if>
|
||||||
|
<if test="qualityDefectName != null and qualityDefectName != ''">and quality_defect_name like
|
||||||
|
concat(concat('%', #{qualityDefectName}), '%')
|
||||||
|
</if>
|
||||||
|
<if test="treatmentMeasure != null and treatmentMeasure != ''">and treatment_measure =
|
||||||
|
#{treatmentMeasure}
|
||||||
|
</if>
|
||||||
|
<if test="processResult != null and processResult != ''">and process_result = #{processResult}</if>
|
||||||
|
<if test="isLowerLine != null and isLowerLine != ''">and is_lower_line = #{isLowerLine}</if>
|
||||||
|
<if test="groupCode != null and groupCode != ''">and group_code = #{groupCode}</if>
|
||||||
|
<if test="inspectorCode != null and inspectorCode != ''">and inspector_code = #{inspectorCode}</if>
|
||||||
|
<if test="inspectorTime != null ">and inspector_time = #{inspectorTime}</if>
|
||||||
|
<if test="reworkNumber != null ">and rework_number = #{reworkNumber}</if>
|
||||||
|
<if test="finishTime != null ">and finish_time = #{finishTime}</if>
|
||||||
|
<if test="isFlag != null ">and is_flag = #{isFlag}</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="selectReportQualityInspectionByObjId" parameterType="Long" resultMap="ReportQualityInspectionResult">
|
||||||
|
<include refid="selectReportQualityInspectionVo"/>
|
||||||
|
where obj_id = #{objId}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertReportQualityInspection" parameterType="ReportQualityInspection">
|
||||||
|
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
|
||||||
|
SELECT seq_report_quality_inspection.NEXTVAL as objId FROM DUAL
|
||||||
|
</selectKey>
|
||||||
|
insert into report_quality_inspection
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="objId != null">obj_id,</if>
|
||||||
|
<if test="barCode != null">bar_code,</if>
|
||||||
|
<if test="materialName != null">material_name,</if>
|
||||||
|
<if test="processCode != null">process_code,</if>
|
||||||
|
<if test="testItemCode != null">test_item_code,</if>
|
||||||
|
<if test="qualityDefectCode != null">quality_defect_code,</if>
|
||||||
|
<if test="qualityDefectName != null">quality_defect_name,</if>
|
||||||
|
<if test="treatmentMeasure != null">treatment_measure,</if>
|
||||||
|
<if test="processResult != null">process_result,</if>
|
||||||
|
<if test="isLowerLine != null">is_lower_line,</if>
|
||||||
|
<if test="groupCode != null">group_code,</if>
|
||||||
|
<if test="inspectorCode != null">inspector_code,</if>
|
||||||
|
<if test="inspectorTime != null">inspector_time,</if>
|
||||||
|
<if test="reworkNumber != null">rework_number,</if>
|
||||||
|
<if test="finishTime != null">finish_time,</if>
|
||||||
|
<if test="isFlag != null">is_flag,</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="barCode != null">#{barCode},</if>
|
||||||
|
<if test="materialName != null">#{materialName},</if>
|
||||||
|
<if test="processCode != null">#{processCode},</if>
|
||||||
|
<if test="testItemCode != null">#{testItemCode},</if>
|
||||||
|
<if test="qualityDefectCode != null">#{qualityDefectCode},</if>
|
||||||
|
<if test="qualityDefectName != null">#{qualityDefectName},</if>
|
||||||
|
<if test="treatmentMeasure != null">#{treatmentMeasure},</if>
|
||||||
|
<if test="processResult != null">#{processResult},</if>
|
||||||
|
<if test="isLowerLine != null">#{isLowerLine},</if>
|
||||||
|
<if test="groupCode != null">#{groupCode},</if>
|
||||||
|
<if test="inspectorCode != null">#{inspectorCode},</if>
|
||||||
|
<if test="inspectorTime != null">#{inspectorTime},</if>
|
||||||
|
<if test="reworkNumber != null">#{reworkNumber},</if>
|
||||||
|
<if test="finishTime != null">#{finishTime},</if>
|
||||||
|
<if test="isFlag != null">#{isFlag},</if>
|
||||||
|
<if test="updatedBy != null">#{updatedBy},</if>
|
||||||
|
<if test="updatedTime != null">#{updatedTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateReportQualityInspection" parameterType="ReportQualityInspection">
|
||||||
|
update report_quality_inspection
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="barCode != null">bar_code = #{barCode},</if>
|
||||||
|
<if test="materialName != null">material_name = #{materialName},</if>
|
||||||
|
<if test="processCode != null">process_code = #{processCode},</if>
|
||||||
|
<if test="testItemCode != null">test_item_code = #{testItemCode},</if>
|
||||||
|
<if test="qualityDefectCode != null">quality_defect_code = #{qualityDefectCode},</if>
|
||||||
|
<if test="qualityDefectName != null">quality_defect_name = #{qualityDefectName},</if>
|
||||||
|
<if test="treatmentMeasure != null">treatment_measure = #{treatmentMeasure},</if>
|
||||||
|
<if test="processResult != null">process_result = #{processResult},</if>
|
||||||
|
<if test="isLowerLine != null">is_lower_line = #{isLowerLine},</if>
|
||||||
|
<if test="groupCode != null">group_code = #{groupCode},</if>
|
||||||
|
<if test="inspectorCode != null">inspector_code = #{inspectorCode},</if>
|
||||||
|
<if test="inspectorTime != null">inspector_time = #{inspectorTime},</if>
|
||||||
|
<if test="reworkNumber != null">rework_number = #{reworkNumber},</if>
|
||||||
|
<if test="finishTime != null">finish_time = #{finishTime},</if>
|
||||||
|
<if test="isFlag != null">is_flag = #{isFlag},</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="deleteReportQualityInspectionByObjId" parameterType="Long">
|
||||||
|
delete
|
||||||
|
from report_quality_inspection
|
||||||
|
where obj_id = #{objId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteReportQualityInspectionByObjIds" parameterType="String">
|
||||||
|
delete from report_quality_inspection where obj_id in
|
||||||
|
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
||||||
|
#{objId}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue