change - 不合格品流程
parent
af375ffb0e
commit
e971f3e10d
@ -0,0 +1,102 @@
|
||||
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.RecordExceptionProcess;
|
||||
import com.aucma.report.service.IRecordExceptionProcessService;
|
||||
import com.aucma.common.utils.poi.ExcelUtil;
|
||||
import com.aucma.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 不合格品流程管理Controller
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-04-24
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/report/exceptionProcess")
|
||||
public class RecordExceptionProcessController extends BaseController {
|
||||
@Autowired
|
||||
private IRecordExceptionProcessService recordExceptionProcessService;
|
||||
|
||||
/**
|
||||
* 查询不合格品流程管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:exceptionProcess:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(RecordExceptionProcess recordExceptionProcess) {
|
||||
startPage();
|
||||
List<RecordExceptionProcess> list = recordExceptionProcessService.selectRecordExceptionProcessList(recordExceptionProcess);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出不合格品流程管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:exceptionProcess:export')")
|
||||
@Log(title = "不合格品流程管理", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, RecordExceptionProcess recordExceptionProcess) {
|
||||
List<RecordExceptionProcess> list = recordExceptionProcessService.selectRecordExceptionProcessList(recordExceptionProcess);
|
||||
ExcelUtil<RecordExceptionProcess> util = new ExcelUtil<RecordExceptionProcess>(RecordExceptionProcess.class);
|
||||
util.exportExcel(response, list, "不合格品流程管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取不合格品流程管理详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:exceptionProcess:query')")
|
||||
@GetMapping(value = "/{objId}")
|
||||
public AjaxResult getInfo(@PathVariable("objId") Long objId) {
|
||||
return success(recordExceptionProcessService.selectRecordExceptionProcessByObjId(objId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增不合格品流程管理
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('report:exceptionProcess:add')")
|
||||
@Log(title = "不合格品流程管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody RecordExceptionProcess recordExceptionProcess) {
|
||||
|
||||
return toAjax(recordExceptionProcessService.insertRecordExceptionProcess(recordExceptionProcess));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改不合格品流程管理
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('report:exceptionProcess:edit')")
|
||||
@Log(title = "不合格品流程管理", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody RecordExceptionProcess recordExceptionProcess) {
|
||||
recordExceptionProcess.setUpdatedBy(getUsername());
|
||||
recordExceptionProcess.setUpdatedTime(DateUtils.getNowDate());
|
||||
return toAjax(recordExceptionProcessService.updateRecordExceptionProcess(recordExceptionProcess));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除不合格品流程管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:exceptionProcess:remove')")
|
||||
@Log(title = "不合格品流程管理", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{objIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||
return toAjax(recordExceptionProcessService.deleteRecordExceptionProcessByObjIds(objIds));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.aucma.report.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.RecordExceptionProcess;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 不合格品流程管理Mapper接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-04-24
|
||||
*/
|
||||
public interface RecordExceptionProcessMapper
|
||||
{
|
||||
/**
|
||||
* 查询不合格品流程管理
|
||||
*
|
||||
* @param objId 不合格品流程管理主键
|
||||
* @return 不合格品流程管理
|
||||
*/
|
||||
public RecordExceptionProcess selectRecordExceptionProcessByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询不合格品流程管理列表
|
||||
*
|
||||
* @param recordExceptionProcess 不合格品流程管理
|
||||
* @return 不合格品流程管理集合
|
||||
*/
|
||||
public List<RecordExceptionProcess> selectRecordExceptionProcessList(RecordExceptionProcess recordExceptionProcess);
|
||||
|
||||
/**
|
||||
* 新增不合格品流程管理
|
||||
*
|
||||
* @param recordExceptionProcess 不合格品流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRecordExceptionProcess(RecordExceptionProcess recordExceptionProcess);
|
||||
|
||||
/**
|
||||
* 修改不合格品流程管理
|
||||
*
|
||||
* @param recordExceptionProcess 不合格品流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRecordExceptionProcess(RecordExceptionProcess recordExceptionProcess);
|
||||
|
||||
/**
|
||||
* 删除不合格品流程管理
|
||||
*
|
||||
* @param objId 不合格品流程管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRecordExceptionProcessByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 批量删除不合格品流程管理
|
||||
*
|
||||
* @param objIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRecordExceptionProcessByObjIds(Long[] objIds);
|
||||
|
||||
public String checkBoxBarcode(@Param("boxBarcode") String boxBarcode);
|
||||
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.aucma.report.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.RecordExceptionProcess;
|
||||
|
||||
/**
|
||||
* 不合格品流程管理Service接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-04-24
|
||||
*/
|
||||
public interface IRecordExceptionProcessService
|
||||
{
|
||||
/**
|
||||
* 查询不合格品流程管理
|
||||
*
|
||||
* @param objId 不合格品流程管理主键
|
||||
* @return 不合格品流程管理
|
||||
*/
|
||||
public RecordExceptionProcess selectRecordExceptionProcessByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询不合格品流程管理列表
|
||||
*
|
||||
* @param recordExceptionProcess 不合格品流程管理
|
||||
* @return 不合格品流程管理集合
|
||||
*/
|
||||
public List<RecordExceptionProcess> selectRecordExceptionProcessList(RecordExceptionProcess recordExceptionProcess);
|
||||
|
||||
/**
|
||||
* 新增不合格品流程管理
|
||||
*
|
||||
* @param recordExceptionProcess 不合格品流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRecordExceptionProcess(RecordExceptionProcess recordExceptionProcess);
|
||||
|
||||
/**
|
||||
* 修改不合格品流程管理
|
||||
*
|
||||
* @param recordExceptionProcess 不合格品流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRecordExceptionProcess(RecordExceptionProcess recordExceptionProcess);
|
||||
|
||||
/**
|
||||
* 批量删除不合格品流程管理
|
||||
*
|
||||
* @param objIds 需要删除的不合格品流程管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRecordExceptionProcessByObjIds(Long[] objIds);
|
||||
|
||||
/**
|
||||
* 删除不合格品流程管理信息
|
||||
*
|
||||
* @param objId 不合格品流程管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRecordExceptionProcessByObjId(Long objId);
|
||||
}
|
||||
@ -0,0 +1,115 @@
|
||||
package com.aucma.report.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.aucma.common.exception.ServiceException;
|
||||
import com.aucma.common.utils.DateUtils;
|
||||
import com.aucma.common.utils.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.aucma.report.mapper.RecordExceptionProcessMapper;
|
||||
import com.aucma.report.domain.RecordExceptionProcess;
|
||||
import com.aucma.report.service.IRecordExceptionProcessService;
|
||||
|
||||
import static com.aucma.common.utils.SecurityUtils.getUsername;
|
||||
|
||||
/**
|
||||
* 不合格品流程管理Service业务层处理
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-04-24
|
||||
*/
|
||||
@Service
|
||||
public class RecordExceptionProcessServiceImpl implements IRecordExceptionProcessService
|
||||
{
|
||||
@Autowired
|
||||
private RecordExceptionProcessMapper recordExceptionProcessMapper;
|
||||
|
||||
/**
|
||||
* 查询不合格品流程管理
|
||||
*
|
||||
* @param objId 不合格品流程管理主键
|
||||
* @return 不合格品流程管理
|
||||
*/
|
||||
@Override
|
||||
public RecordExceptionProcess selectRecordExceptionProcessByObjId(Long objId)
|
||||
{
|
||||
return recordExceptionProcessMapper.selectRecordExceptionProcessByObjId(objId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询不合格品流程管理列表
|
||||
*
|
||||
* @param recordExceptionProcess 不合格品流程管理
|
||||
* @return 不合格品流程管理
|
||||
*/
|
||||
@Override
|
||||
public List<RecordExceptionProcess> selectRecordExceptionProcessList(RecordExceptionProcess recordExceptionProcess)
|
||||
{
|
||||
return recordExceptionProcessMapper.selectRecordExceptionProcessList(recordExceptionProcess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增不合格品流程管理
|
||||
*
|
||||
* @param recordExceptionProcess 不合格品流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRecordExceptionProcess(RecordExceptionProcess recordExceptionProcess)
|
||||
{
|
||||
if (StringUtils.isNotNull(recordExceptionProcess.getBoxBarcode())){
|
||||
String boxBarcode = recordExceptionProcessMapper.checkBoxBarcode(recordExceptionProcess.getBoxBarcode());
|
||||
if (StringUtils.isEmpty(boxBarcode)){
|
||||
throw new ServiceException("箱体码输入错误,请重新输入!");
|
||||
}
|
||||
}
|
||||
RecordExceptionProcess exceptionProcess = new RecordExceptionProcess();
|
||||
exceptionProcess.setBoxBarcode(recordExceptionProcess.getBoxBarcode());
|
||||
exceptionProcess.setProductionUserFlag("1");
|
||||
List<RecordExceptionProcess> processList = recordExceptionProcessMapper.selectRecordExceptionProcessList(exceptionProcess);
|
||||
if (processList.size() > 0){
|
||||
throw new ServiceException("该箱体码正在流转审批,请勿重复提交流程!");
|
||||
}
|
||||
recordExceptionProcess.setCreatedBy(getUsername());
|
||||
recordExceptionProcess.setCreatedTime(DateUtils.getNowDate());
|
||||
recordExceptionProcess.setApplyTime(DateUtils.getNowDate());
|
||||
return recordExceptionProcessMapper.insertRecordExceptionProcess(recordExceptionProcess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改不合格品流程管理
|
||||
*
|
||||
* @param recordExceptionProcess 不合格品流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRecordExceptionProcess(RecordExceptionProcess recordExceptionProcess)
|
||||
{
|
||||
return recordExceptionProcessMapper.updateRecordExceptionProcess(recordExceptionProcess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除不合格品流程管理
|
||||
*
|
||||
* @param objIds 需要删除的不合格品流程管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRecordExceptionProcessByObjIds(Long[] objIds)
|
||||
{
|
||||
return recordExceptionProcessMapper.deleteRecordExceptionProcessByObjIds(objIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除不合格品流程管理信息
|
||||
*
|
||||
* @param objId 不合格品流程管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRecordExceptionProcessByObjId(Long objId)
|
||||
{
|
||||
return recordExceptionProcessMapper.deleteRecordExceptionProcessByObjId(objId);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,217 @@
|
||||
<?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.RecordExceptionProcessMapper">
|
||||
|
||||
<resultMap type="RecordExceptionProcess" id="RecordExceptionProcessResult">
|
||||
<result property="objId" column="obj_id"/>
|
||||
<result property="boxBarcode" column="box_barcode"/>
|
||||
<result property="productionUserFlag" column="production_user_flag"/>
|
||||
<result property="teamCode" column="team_code"/>
|
||||
<result property="applyReason" column="apply_reason"/>
|
||||
<result property="applyTime" column="apply_time"/>
|
||||
<result property="qualityUserFlag" column="quality_user_flag"/>
|
||||
<result property="failureReason" column="failure_reason"/>
|
||||
<result property="failureType" column="failure_type"/>
|
||||
<result property="qualityUserTime" column="quality_user_time"/>
|
||||
<result property="productionManagerFlag" column="production_manager_flag"/>
|
||||
<result property="productionManagerTime" column="production_manager_time"/>
|
||||
<result property="qualityManagerFlag" column="quality_manager_flag"/>
|
||||
<result property="qualityManagerTime" column="quality_manager_time"/>
|
||||
<result property="inspectionUserCode" column="inspection_user_code"/>
|
||||
<result property="inspectionUserFlag" column="inspection_user_flag"/>
|
||||
<result property="imageAddress" column="image_address"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="createdBy" column="created_by"/>
|
||||
<result property="createdTime" column="created_time"/>
|
||||
<result property="updatedBy" column="updated_by"/>
|
||||
<result property="updatedTime" column="updated_time"/>
|
||||
<result property="productLineCode" column="productLineCode"/>
|
||||
<result property="productLineName" column="productLineName"/>
|
||||
<result property="orderCode" column="orderCode"/>
|
||||
<result property="materialModel" column="materialModel"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRecordExceptionProcessVo">
|
||||
select rep.obj_id,
|
||||
PB.ORDER_CODE orderCode,
|
||||
BP.PRODUCT_LINE_CODE productLineCode,
|
||||
BP.PRODUCT_LINE_NAME productLineName,
|
||||
rep.box_barcode,
|
||||
ML.MATERIAL_SPECIFICATIONS materialModel,
|
||||
rep.production_user_flag,
|
||||
rep.team_code,
|
||||
rep.apply_reason,
|
||||
rep.apply_time,
|
||||
rep.quality_user_flag,
|
||||
rep.failure_reason,
|
||||
rep.failure_type,
|
||||
rep.quality_user_time,
|
||||
rep.production_manager_flag,
|
||||
rep.production_manager_time,
|
||||
rep.quality_manager_flag,
|
||||
rep.quality_manager_time,
|
||||
rep.inspection_user_code,
|
||||
rep.inspection_user_flag,
|
||||
rep.image_address,
|
||||
rep.remark,
|
||||
rep.created_by,
|
||||
rep.created_time,
|
||||
rep.updated_by,
|
||||
rep.updated_time
|
||||
from record_exception_process rep
|
||||
left join C##AUCMA_SCADA.PRINT_BARCODE PB ON PB.MATERIAL_BARCODE = rep.BOX_BARCODE
|
||||
left join BASE_ORDERINFO bo on bo.ORDER_CODE = pb.ORDER_CODE
|
||||
left join BASE_PRODUCTLINE BP ON BP.WORK_CENTER_CODE = BO.WORK_CENTER_CODE
|
||||
LEFT JOIN BASE_MATERIALINFO ML ON ML.MATERIAL_CODE = PB.MATERIAL_CODE
|
||||
</sql>
|
||||
|
||||
<select id="selectRecordExceptionProcessList" parameterType="RecordExceptionProcess"
|
||||
resultMap="RecordExceptionProcessResult">
|
||||
<include refid="selectRecordExceptionProcessVo"/>
|
||||
<where>
|
||||
<if test="boxBarcode != null and boxBarcode != ''">and rep.box_barcode = #{boxBarcode}</if>
|
||||
<if test="productionUserFlag != null and productionUserFlag != ''">and rep.production_user_flag =
|
||||
#{productionUserFlag}
|
||||
</if>
|
||||
<if test="teamCode != null and teamCode != ''">and rep.team_code = #{teamCode}</if>
|
||||
<if test="applyReason != null and applyReason != ''">and rep.apply_reason = #{applyReason}</if>
|
||||
<if test="params.beginApplyTime != null and params.beginApplyTime != '' and params.endApplyTime != null and params.endApplyTime != ''">
|
||||
and rep.apply_time between to_date(#{params.beginApplyTime}, 'yyyy-mm-dd hh24:mi:ss') and
|
||||
to_date(#{params.endApplyTime}, 'yyyy-mm-dd hh24:mi:ss')
|
||||
</if>
|
||||
<if test="qualityUserFlag != null and qualityUserFlag != ''">and rep.quality_user_flag = #{qualityUserFlag}
|
||||
</if>
|
||||
<if test="failureReason != null and failureReason != ''">and rep.failure_reason = #{failureReason}</if>
|
||||
<if test="failureType != null and failureType != ''">and rep.failure_type = #{failureType}</if>
|
||||
<if test="qualityUserTime != null ">and rep.quality_user_time = #{qualityUserTime}</if>
|
||||
<if test="productionManagerFlag != null and productionManagerFlag != ''">and rep.production_manager_flag =
|
||||
#{productionManagerFlag}
|
||||
</if>
|
||||
<if test="productionManagerTime != null ">and rep.production_manager_time = #{productionManagerTime}</if>
|
||||
<if test="qualityManagerFlag != null and qualityManagerFlag != ''">and rep.quality_manager_flag =
|
||||
#{qualityManagerFlag}
|
||||
</if>
|
||||
<if test="qualityManagerTime != null ">and rep.quality_manager_time = #{qualityManagerTime}</if>
|
||||
<if test="inspectionUserCode != null and inspectionUserCode != ''">and rep.inspection_user_code =
|
||||
#{inspectionUserCode}
|
||||
</if>
|
||||
<if test="inspectionUserFlag != null and inspectionUserFlag != ''">and rep.inspection_user_flag =
|
||||
#{inspectionUserFlag}
|
||||
</if>
|
||||
<if test="imageAddress != null and imageAddress != ''">and rep.image_address = #{imageAddress}</if>
|
||||
<if test="createdBy != null and createdBy != ''">and rep.created_by = #{createdBy}</if>
|
||||
<if test="createdTime != null ">and rep.created_time = #{createdTime}</if>
|
||||
<if test="updatedBy != null and updatedBy != ''">and rep.updated_by = #{updatedBy}</if>
|
||||
<if test="updatedTime != null ">and rep.updated_time = #{updatedTime}</if>
|
||||
</where>
|
||||
order by rep.apply_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectRecordExceptionProcessByObjId" parameterType="Long" resultMap="RecordExceptionProcessResult">
|
||||
<include refid="selectRecordExceptionProcessVo"/>
|
||||
where rep.obj_id = #{objId}
|
||||
</select>
|
||||
|
||||
<select id="checkBoxBarcode" resultType="java.lang.String">
|
||||
SELECT MATERIAL_BARCODE FROM C##AUCMA_SCADA.PRINT_BARCODE WHERE MATERIAL_BARCODE = #{boxBarcode}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertRecordExceptionProcess" parameterType="RecordExceptionProcess">
|
||||
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
|
||||
SELECT seq_record_exception_process.NEXTVAL as objId FROM DUAL
|
||||
</selectKey>
|
||||
insert into record_exception_process
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="objId != null">obj_id,</if>
|
||||
<if test="boxBarcode != null and boxBarcode != ''">box_barcode,</if>
|
||||
<if test="productionUserFlag != null">production_user_flag,</if>
|
||||
<if test="teamCode != null">team_code,</if>
|
||||
<if test="applyReason != null">apply_reason,</if>
|
||||
<if test="applyTime != null">apply_time,</if>
|
||||
<if test="qualityUserFlag != null">quality_user_flag,</if>
|
||||
<if test="failureReason != null">failure_reason,</if>
|
||||
<if test="failureType != null">failure_type,</if>
|
||||
<if test="qualityUserTime != null">quality_user_time,</if>
|
||||
<if test="productionManagerFlag != null">production_manager_flag,</if>
|
||||
<if test="productionManagerTime != null">production_manager_time,</if>
|
||||
<if test="qualityManagerFlag != null">quality_manager_flag,</if>
|
||||
<if test="qualityManagerTime != null">quality_manager_time,</if>
|
||||
<if test="inspectionUserCode != null">inspection_user_code,</if>
|
||||
<if test="inspectionUserFlag != null">inspection_user_flag,</if>
|
||||
<if test="imageAddress != null">image_address,</if>
|
||||
<if test="remark != null">remark,</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="boxBarcode != null and boxBarcode != ''">#{boxBarcode},</if>
|
||||
<if test="productionUserFlag != null">#{productionUserFlag},</if>
|
||||
<if test="teamCode != null">#{teamCode},</if>
|
||||
<if test="applyReason != null">#{applyReason},</if>
|
||||
<if test="applyTime != null">#{applyTime},</if>
|
||||
<if test="qualityUserFlag != null">#{qualityUserFlag},</if>
|
||||
<if test="failureReason != null">#{failureReason},</if>
|
||||
<if test="failureType != null">#{failureType},</if>
|
||||
<if test="qualityUserTime != null">#{qualityUserTime},</if>
|
||||
<if test="productionManagerFlag != null">#{productionManagerFlag},</if>
|
||||
<if test="productionManagerTime != null">#{productionManagerTime},</if>
|
||||
<if test="qualityManagerFlag != null">#{qualityManagerFlag},</if>
|
||||
<if test="qualityManagerTime != null">#{qualityManagerTime},</if>
|
||||
<if test="inspectionUserCode != null">#{inspectionUserCode},</if>
|
||||
<if test="inspectionUserFlag != null">#{inspectionUserFlag},</if>
|
||||
<if test="imageAddress != null">#{imageAddress},</if>
|
||||
<if test="remark != null">#{remark},</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="updateRecordExceptionProcess" parameterType="RecordExceptionProcess">
|
||||
update record_exception_process
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="boxBarcode != null and boxBarcode != ''">box_barcode = #{boxBarcode},</if>
|
||||
<if test="productionUserFlag != null">production_user_flag = #{productionUserFlag},</if>
|
||||
<if test="teamCode != null">team_code = #{teamCode},</if>
|
||||
<if test="applyReason != null">apply_reason = #{applyReason},</if>
|
||||
<if test="applyTime != null">apply_time = #{applyTime},</if>
|
||||
<if test="qualityUserFlag != null">quality_user_flag = #{qualityUserFlag},</if>
|
||||
<if test="failureReason != null">failure_reason = #{failureReason},</if>
|
||||
<if test="failureType != null">failure_type = #{failureType},</if>
|
||||
<if test="qualityUserTime != null">quality_user_time = #{qualityUserTime},</if>
|
||||
<if test="productionManagerFlag != null">production_manager_flag = #{productionManagerFlag},</if>
|
||||
<if test="productionManagerTime != null">production_manager_time = #{productionManagerTime},</if>
|
||||
<if test="qualityManagerFlag != null">quality_manager_flag = #{qualityManagerFlag},</if>
|
||||
<if test="qualityManagerTime != null">quality_manager_time = #{qualityManagerTime},</if>
|
||||
<if test="inspectionUserCode != null">inspection_user_code = #{inspectionUserCode},</if>
|
||||
<if test="inspectionUserFlag != null">inspection_user_flag = #{inspectionUserFlag},</if>
|
||||
<if test="imageAddress != null">image_address = #{imageAddress},</if>
|
||||
<if test="remark != null">remark = #{remark},</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="deleteRecordExceptionProcessByObjId" parameterType="Long">
|
||||
delete
|
||||
from record_exception_process
|
||||
where obj_id = #{objId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteRecordExceptionProcessByObjIds" parameterType="String">
|
||||
delete from record_exception_process where obj_id in
|
||||
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
||||
#{objId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue