|
|
|
|
@ -0,0 +1,501 @@
|
|
|
|
|
<?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.os.mes.prod.mapper.ProdPlanErpInfoMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="ProdPlanErpInfo" id="ProdPlanErpInfoResult">
|
|
|
|
|
<result property="objId" column="obj_id"/>
|
|
|
|
|
<result property="hardware" column="hardware"/>
|
|
|
|
|
<result property="software" column="software"/>
|
|
|
|
|
<result property="stageText" column="stageText"/>
|
|
|
|
|
<result property="seqNo" column="seqNo"/>
|
|
|
|
|
<result property="planStartTime" column="planStartTime"/>
|
|
|
|
|
<result property="planEndTime" column="planEndTime"/>
|
|
|
|
|
<result property="associationResource" column="associationResource"/>
|
|
|
|
|
<result property="workingEfficiency" column="workingEfficiency"/>
|
|
|
|
|
<result property="equipmentNo" column="equipmentNo"/>
|
|
|
|
|
<result property="preparationDuration" column="preparationDuration"/>
|
|
|
|
|
<result property="windUpDuration" column="windUpDuration"/>
|
|
|
|
|
<result property="clothMinimumSpeed" column="clothMinimumSpeed"/>
|
|
|
|
|
<result property="clothMaximumSpeed" column="clothMaximumSpeed"/>
|
|
|
|
|
<result property="formingMinimumSpeed" column="formingMinimumSpeed"/>
|
|
|
|
|
<result property="formingMaximumSpeed" column="formingMaximumSpeed"/>
|
|
|
|
|
<result property="glueMinimumSpeed" column="glueMinimumSpeed"/>
|
|
|
|
|
<result property="glueMaximumSpeed" column="glueMaximumSpeed"/>
|
|
|
|
|
<result property="sulfurizationLength" column="sulfurizationLength"/>
|
|
|
|
|
<result property="vulcanizingMachineType" column="vulcanizingMachineType"/>
|
|
|
|
|
<result property="vulcanizedBoardNumber" column="vulcanizedBoardNumber"/>
|
|
|
|
|
<result property="resourceName" column="resourceName"/>
|
|
|
|
|
<result property="processStage" column="processStage"/>
|
|
|
|
|
<result property="preProcess" column="preProcess"/>
|
|
|
|
|
<result property="releaseOrder" column="releaseOrder"/>
|
|
|
|
|
<result property="taskCode" column="taskCode"/>
|
|
|
|
|
<result property="conveyorLengthSpecification" column="conveyorLengthSpecification"/>
|
|
|
|
|
<result property="upGlueThickness" column="upGlueThickness"/>
|
|
|
|
|
<result property="upBufferGlueThickness" column="upBufferGlueThickness"/>
|
|
|
|
|
<result property="belowGlueThickness" column="belowGlueThickness"/>
|
|
|
|
|
<result property="belowBufferGlueThickness" column="belowBufferGlueThickness"/>
|
|
|
|
|
<result property="beltWidth" column="beltWidth"/>
|
|
|
|
|
<result property="customerRequestConveyorLength" column="customerRequestConveyorLength"/>
|
|
|
|
|
<result property="rollingProductionMeters" column="rollingProductionMeters"/>
|
|
|
|
|
<result property="vulcanizationMeters" column="vulcanizationMeters"/>
|
|
|
|
|
<result property="recommendVulcanizationTime" column="recommendVulcanizationTime"/>
|
|
|
|
|
<result property="largeClothMeters" column="largeClothMeters"/>
|
|
|
|
|
<result property="smallClothMeters" column="smallClothMeters"/>
|
|
|
|
|
<result property="encapsulationMeters" column="encapsulationMeters"/>
|
|
|
|
|
<result property="workSpeed" column="workSpeed"/>
|
|
|
|
|
<result property="workingHours" column="workingHours"/>
|
|
|
|
|
<result property="distributionArea" column="distributionArea"/>
|
|
|
|
|
<result property="encapsulationArea" column="encapsulationArea"/>
|
|
|
|
|
<result property="vulcanizationArea" column="vulcanizationArea"/>
|
|
|
|
|
<result property="conveyorTotalArea" column="conveyorTotalArea"/>
|
|
|
|
|
<result property="glueProcess" column="glueProcess"/>
|
|
|
|
|
<result property="upGlue" column="upGlue"/>
|
|
|
|
|
<result property="upGlueCoefficient" column="upGlueCoefficient"/>
|
|
|
|
|
<result property="upGlueDosage" column="upGlueDosage"/>
|
|
|
|
|
<result property="belowGlue" column="belowGlue"/>
|
|
|
|
|
<result property="belowGlueCoefficient" column="belowGlueCoefficient"/>
|
|
|
|
|
<result property="belowGlueDosage" column="belowGlueDosage"/>
|
|
|
|
|
<result property="bufferGlue" column="bufferGlue"/>
|
|
|
|
|
<result property="bufferGlueCoefficient" column="bufferGlueCoefficient"/>
|
|
|
|
|
<result property="bufferGlueDosage" column="bufferGlueDosage"/>
|
|
|
|
|
<result property="largeClothSpecifications" column="largeClothSpecifications"/>
|
|
|
|
|
<result property="largeClothFrictioningCoefficient" column="largeClothFrictioningCoefficient"/>
|
|
|
|
|
<result property="largeClothDosage" column="largeClothDosage"/>
|
|
|
|
|
<result property="middleGlue" column="middleGlue"/>
|
|
|
|
|
<result property="middleGlueCoefficient" column="middleGlueCoefficient"/>
|
|
|
|
|
<result property="middleGlueDosage" column="middleGlueDosage"/>
|
|
|
|
|
<result property="deviceUsageRestrictions" column="deviceUsageRestrictions"/>
|
|
|
|
|
<result property="workshopSection" column="workshopSection"/>
|
|
|
|
|
<result property="classes" column="classes"/>
|
|
|
|
|
<result property="taskForce" column="taskForce"/>
|
|
|
|
|
<result property="teamName" column="teamName"/>
|
|
|
|
|
<result property="groupLeader" column="groupLeader"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectProdPlanErpInfoVo">
|
|
|
|
|
select obj_id,
|
|
|
|
|
hardware,
|
|
|
|
|
software,
|
|
|
|
|
stageText,
|
|
|
|
|
seqNo,
|
|
|
|
|
planStartTime,
|
|
|
|
|
planEndTime,
|
|
|
|
|
associationResource,
|
|
|
|
|
workingEfficiency,
|
|
|
|
|
equipmentNo,
|
|
|
|
|
preparationDuration,
|
|
|
|
|
windUpDuration,
|
|
|
|
|
clothMinimumSpeed,
|
|
|
|
|
clothMaximumSpeed,
|
|
|
|
|
formingMinimumSpeed,
|
|
|
|
|
formingMaximumSpeed,
|
|
|
|
|
glueMinimumSpeed,
|
|
|
|
|
glueMaximumSpeed,
|
|
|
|
|
sulfurizationLength,
|
|
|
|
|
vulcanizingMachineType,
|
|
|
|
|
vulcanizedBoardNumber,
|
|
|
|
|
resourceName,
|
|
|
|
|
processStage,
|
|
|
|
|
preProcess,
|
|
|
|
|
releaseOrder,
|
|
|
|
|
taskCode,
|
|
|
|
|
conveyorLengthSpecification,
|
|
|
|
|
upGlueThickness,
|
|
|
|
|
upBufferGlueThickness,
|
|
|
|
|
belowGlueThickness,
|
|
|
|
|
belowBufferGlueThickness,
|
|
|
|
|
beltWidth,
|
|
|
|
|
customerRequestConveyorLength,
|
|
|
|
|
rollingProductionMeters,
|
|
|
|
|
vulcanizationMeters,
|
|
|
|
|
recommendVulcanizationTime,
|
|
|
|
|
largeClothMeters,
|
|
|
|
|
smallClothMeters,
|
|
|
|
|
encapsulationMeters,
|
|
|
|
|
workSpeed,
|
|
|
|
|
workingHours,
|
|
|
|
|
distributionArea,
|
|
|
|
|
encapsulationArea,
|
|
|
|
|
vulcanizationArea,
|
|
|
|
|
conveyorTotalArea,
|
|
|
|
|
glueProcess,
|
|
|
|
|
upGlue,
|
|
|
|
|
upGlueCoefficient,
|
|
|
|
|
upGlueDosage,
|
|
|
|
|
belowGlue,
|
|
|
|
|
belowGlueCoefficient,
|
|
|
|
|
belowGlueDosage,
|
|
|
|
|
bufferGlue,
|
|
|
|
|
bufferGlueCoefficient,
|
|
|
|
|
bufferGlueDosage,
|
|
|
|
|
largeClothSpecifications,
|
|
|
|
|
largeClothFrictioningCoefficient,
|
|
|
|
|
largeClothDosage,
|
|
|
|
|
middleGlue,
|
|
|
|
|
middleGlueCoefficient,
|
|
|
|
|
middleGlueDosage,
|
|
|
|
|
deviceUsageRestrictions,
|
|
|
|
|
workshopSection,
|
|
|
|
|
classes,
|
|
|
|
|
taskForce,
|
|
|
|
|
teamName,
|
|
|
|
|
groupLeader,
|
|
|
|
|
create_by,
|
|
|
|
|
create_time,
|
|
|
|
|
update_by,
|
|
|
|
|
update_time
|
|
|
|
|
from prod_plan_erp_info
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectProdPlanErpInfoList" parameterType="ProdPlanErpInfo" resultMap="ProdPlanErpInfoResult">
|
|
|
|
|
<include refid="selectProdPlanErpInfoVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="hardware != null and hardware != ''">and hardware = #{hardware}</if>
|
|
|
|
|
<if test="software != null and software != ''">and software = #{software}</if>
|
|
|
|
|
<if test="stageText != null and stageText != ''">and stageText = #{stageText}</if>
|
|
|
|
|
<if test="seqNo != null and seqNo != ''">and seqNo = #{seqNo}</if>
|
|
|
|
|
<if test="params.beginPlanStartTime != null and params.beginPlanStartTime != '' and params.endPlanStartTime != null and params.endPlanStartTime != ''">
|
|
|
|
|
and planStartTime between #{params.beginPlanStartTime} and #{params.endPlanStartTime}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="params.beginPlanEndTime != null and params.beginPlanEndTime != '' and params.endPlanEndTime != null and params.endPlanEndTime != ''">
|
|
|
|
|
and planEndTime between #{params.beginPlanEndTime} and #{params.endPlanEndTime}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="associationResource != null and associationResource != ''">and associationResource =
|
|
|
|
|
#{associationResource}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="workingEfficiency != null and workingEfficiency != ''">and workingEfficiency =
|
|
|
|
|
#{workingEfficiency}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="equipmentNo != null and equipmentNo != ''">and equipmentNo = #{equipmentNo}</if>
|
|
|
|
|
<if test="preparationDuration != null ">and preparationDuration = #{preparationDuration}</if>
|
|
|
|
|
<if test="windUpDuration != null ">and windUpDuration = #{windUpDuration}</if>
|
|
|
|
|
<if test="clothMinimumSpeed != null ">and clothMinimumSpeed = #{clothMinimumSpeed}</if>
|
|
|
|
|
<if test="clothMaximumSpeed != null ">and clothMaximumSpeed = #{clothMaximumSpeed}</if>
|
|
|
|
|
<if test="formingMinimumSpeed != null ">and formingMinimumSpeed = #{formingMinimumSpeed}</if>
|
|
|
|
|
<if test="formingMaximumSpeed != null ">and formingMaximumSpeed = #{formingMaximumSpeed}</if>
|
|
|
|
|
<if test="glueMinimumSpeed != null ">and glueMinimumSpeed = #{glueMinimumSpeed}</if>
|
|
|
|
|
<if test="glueMaximumSpeed != null ">and glueMaximumSpeed = #{glueMaximumSpeed}</if>
|
|
|
|
|
<if test="sulfurizationLength != null ">and sulfurizationLength = #{sulfurizationLength}</if>
|
|
|
|
|
<if test="vulcanizingMachineType != null and vulcanizingMachineType != ''">and vulcanizingMachineType =
|
|
|
|
|
#{vulcanizingMachineType}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="vulcanizedBoardNumber != null and vulcanizedBoardNumber != ''">and vulcanizedBoardNumber =
|
|
|
|
|
#{vulcanizedBoardNumber}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="resourceName != null and resourceName != ''">and resourceName like concat('%', #{resourceName},
|
|
|
|
|
'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="processStage != null and processStage != ''">and processStage = #{processStage}</if>
|
|
|
|
|
<if test="preProcess != null and preProcess != ''">and preProcess = #{preProcess}</if>
|
|
|
|
|
<if test="releaseOrder != null and releaseOrder != ''">and releaseOrder = #{releaseOrder}</if>
|
|
|
|
|
<if test="taskCode != null and taskCode != ''">and taskCode like concat('%', #{taskCode}, '%')</if>
|
|
|
|
|
<if test="conveyorLengthSpecification != null and conveyorLengthSpecification != ''">and
|
|
|
|
|
conveyorLengthSpecification = #{conveyorLengthSpecification}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="upGlueThickness != null ">and upGlueThickness = #{upGlueThickness}</if>
|
|
|
|
|
<if test="upBufferGlueThickness != null ">and upBufferGlueThickness = #{upBufferGlueThickness}</if>
|
|
|
|
|
<if test="belowGlueThickness != null ">and belowGlueThickness = #{belowGlueThickness}</if>
|
|
|
|
|
<if test="belowBufferGlueThickness != null ">and belowBufferGlueThickness = #{belowBufferGlueThickness}</if>
|
|
|
|
|
<if test="beltWidth != null ">and beltWidth = #{beltWidth}</if>
|
|
|
|
|
<if test="customerRequestConveyorLength != null ">and customerRequestConveyorLength =
|
|
|
|
|
#{customerRequestConveyorLength}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="rollingProductionMeters != null ">and rollingProductionMeters = #{rollingProductionMeters}</if>
|
|
|
|
|
<if test="vulcanizationMeters != null ">and vulcanizationMeters = #{vulcanizationMeters}</if>
|
|
|
|
|
<if test="recommendVulcanizationTime != null ">and recommendVulcanizationTime =
|
|
|
|
|
#{recommendVulcanizationTime}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="largeClothMeters != null ">and largeClothMeters = #{largeClothMeters}</if>
|
|
|
|
|
<if test="smallClothMeters != null ">and smallClothMeters = #{smallClothMeters}</if>
|
|
|
|
|
<if test="encapsulationMeters != null ">and encapsulationMeters = #{encapsulationMeters}</if>
|
|
|
|
|
<if test="workSpeed != null ">and workSpeed = #{workSpeed}</if>
|
|
|
|
|
<if test="workingHours != null ">and workingHours = #{workingHours}</if>
|
|
|
|
|
<if test="distributionArea != null ">and distributionArea = #{distributionArea}</if>
|
|
|
|
|
<if test="encapsulationArea != null ">and encapsulationArea = #{encapsulationArea}</if>
|
|
|
|
|
<if test="vulcanizationArea != null ">and vulcanizationArea = #{vulcanizationArea}</if>
|
|
|
|
|
<if test="conveyorTotalArea != null ">and conveyorTotalArea = #{conveyorTotalArea}</if>
|
|
|
|
|
<if test="glueProcess != null and glueProcess != ''">and glueProcess = #{glueProcess}</if>
|
|
|
|
|
<if test="upGlue != null and upGlue != ''">and upGlue = #{upGlue}</if>
|
|
|
|
|
<if test="upGlueCoefficient != null ">and upGlueCoefficient = #{upGlueCoefficient}</if>
|
|
|
|
|
<if test="upGlueDosage != null ">and upGlueDosage = #{upGlueDosage}</if>
|
|
|
|
|
<if test="belowGlue != null and belowGlue != ''">and belowGlue = #{belowGlue}</if>
|
|
|
|
|
<if test="belowGlueCoefficient != null ">and belowGlueCoefficient = #{belowGlueCoefficient}</if>
|
|
|
|
|
<if test="belowGlueDosage != null ">and belowGlueDosage = #{belowGlueDosage}</if>
|
|
|
|
|
<if test="bufferGlue != null and bufferGlue != ''">and bufferGlue = #{bufferGlue}</if>
|
|
|
|
|
<if test="bufferGlueCoefficient != null ">and bufferGlueCoefficient = #{bufferGlueCoefficient}</if>
|
|
|
|
|
<if test="bufferGlueDosage != null ">and bufferGlueDosage = #{bufferGlueDosage}</if>
|
|
|
|
|
<if test="largeClothSpecifications != null ">and largeClothSpecifications = #{largeClothSpecifications}</if>
|
|
|
|
|
<if test="largeClothFrictioningCoefficient != null ">and largeClothFrictioningCoefficient =
|
|
|
|
|
#{largeClothFrictioningCoefficient}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="largeClothDosage != null ">and largeClothDosage = #{largeClothDosage}</if>
|
|
|
|
|
<if test="middleGlue != null and middleGlue != ''">and middleGlue = #{middleGlue}</if>
|
|
|
|
|
<if test="middleGlueCoefficient != null ">and middleGlueCoefficient = #{middleGlueCoefficient}</if>
|
|
|
|
|
<if test="middleGlueDosage != null ">and middleGlueDosage = #{middleGlueDosage}</if>
|
|
|
|
|
<if test="deviceUsageRestrictions != null and deviceUsageRestrictions != ''">and deviceUsageRestrictions =
|
|
|
|
|
#{deviceUsageRestrictions}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="workshopSection != null and workshopSection != ''">and workshopSection = #{workshopSection}</if>
|
|
|
|
|
<if test="classes != null and classes != ''">and classes = #{classes}</if>
|
|
|
|
|
<if test="taskForce != null and taskForce != ''">and taskForce = #{taskForce}</if>
|
|
|
|
|
<if test="teamName != null and teamName != ''">and teamName like concat('%', #{teamName}, '%')</if>
|
|
|
|
|
<if test="groupLeader != null and groupLeader != ''">and groupLeader = #{groupLeader}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectProdPlanErpInfoByObjId" parameterType="Long" resultMap="ProdPlanErpInfoResult">
|
|
|
|
|
<include refid="selectProdPlanErpInfoVo"/>
|
|
|
|
|
where obj_id = #{objId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertProdPlanErpInfo" parameterType="ProdPlanErpInfo" useGeneratedKeys="true" keyProperty="objId">
|
|
|
|
|
insert into prod_plan_erp_info
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="hardware != null">hardware,</if>
|
|
|
|
|
<if test="software != null">software,</if>
|
|
|
|
|
<if test="stageText != null">stageText,</if>
|
|
|
|
|
<if test="seqNo != null and seqNo != ''">seqNo,</if>
|
|
|
|
|
<if test="planStartTime != null">planStartTime,</if>
|
|
|
|
|
<if test="planEndTime != null">planEndTime,</if>
|
|
|
|
|
<if test="associationResource != null">associationResource,</if>
|
|
|
|
|
<if test="workingEfficiency != null">workingEfficiency,</if>
|
|
|
|
|
<if test="equipmentNo != null">equipmentNo,</if>
|
|
|
|
|
<if test="preparationDuration != null">preparationDuration,</if>
|
|
|
|
|
<if test="windUpDuration != null">windUpDuration,</if>
|
|
|
|
|
<if test="clothMinimumSpeed != null">clothMinimumSpeed,</if>
|
|
|
|
|
<if test="clothMaximumSpeed != null">clothMaximumSpeed,</if>
|
|
|
|
|
<if test="formingMinimumSpeed != null">formingMinimumSpeed,</if>
|
|
|
|
|
<if test="formingMaximumSpeed != null">formingMaximumSpeed,</if>
|
|
|
|
|
<if test="glueMinimumSpeed != null">glueMinimumSpeed,</if>
|
|
|
|
|
<if test="glueMaximumSpeed != null">glueMaximumSpeed,</if>
|
|
|
|
|
<if test="sulfurizationLength != null">sulfurizationLength,</if>
|
|
|
|
|
<if test="vulcanizingMachineType != null">vulcanizingMachineType,</if>
|
|
|
|
|
<if test="vulcanizedBoardNumber != null">vulcanizedBoardNumber,</if>
|
|
|
|
|
<if test="resourceName != null">resourceName,</if>
|
|
|
|
|
<if test="processStage != null">processStage,</if>
|
|
|
|
|
<if test="preProcess != null">preProcess,</if>
|
|
|
|
|
<if test="releaseOrder != null">releaseOrder,</if>
|
|
|
|
|
<if test="taskCode != null">taskCode,</if>
|
|
|
|
|
<if test="conveyorLengthSpecification != null">conveyorLengthSpecification,</if>
|
|
|
|
|
<if test="upGlueThickness != null">upGlueThickness,</if>
|
|
|
|
|
<if test="upBufferGlueThickness != null">upBufferGlueThickness,</if>
|
|
|
|
|
<if test="belowGlueThickness != null">belowGlueThickness,</if>
|
|
|
|
|
<if test="belowBufferGlueThickness != null">belowBufferGlueThickness,</if>
|
|
|
|
|
<if test="beltWidth != null">beltWidth,</if>
|
|
|
|
|
<if test="customerRequestConveyorLength != null">customerRequestConveyorLength,</if>
|
|
|
|
|
<if test="rollingProductionMeters != null">rollingProductionMeters,</if>
|
|
|
|
|
<if test="vulcanizationMeters != null">vulcanizationMeters,</if>
|
|
|
|
|
<if test="recommendVulcanizationTime != null">recommendVulcanizationTime,</if>
|
|
|
|
|
<if test="largeClothMeters != null">largeClothMeters,</if>
|
|
|
|
|
<if test="smallClothMeters != null">smallClothMeters,</if>
|
|
|
|
|
<if test="encapsulationMeters != null">encapsulationMeters,</if>
|
|
|
|
|
<if test="workSpeed != null">workSpeed,</if>
|
|
|
|
|
<if test="workingHours != null">workingHours,</if>
|
|
|
|
|
<if test="distributionArea != null">distributionArea,</if>
|
|
|
|
|
<if test="encapsulationArea != null">encapsulationArea,</if>
|
|
|
|
|
<if test="vulcanizationArea != null">vulcanizationArea,</if>
|
|
|
|
|
<if test="conveyorTotalArea != null">conveyorTotalArea,</if>
|
|
|
|
|
<if test="glueProcess != null">glueProcess,</if>
|
|
|
|
|
<if test="upGlue != null">upGlue,</if>
|
|
|
|
|
<if test="upGlueCoefficient != null">upGlueCoefficient,</if>
|
|
|
|
|
<if test="upGlueDosage != null">upGlueDosage,</if>
|
|
|
|
|
<if test="belowGlue != null">belowGlue,</if>
|
|
|
|
|
<if test="belowGlueCoefficient != null">belowGlueCoefficient,</if>
|
|
|
|
|
<if test="belowGlueDosage != null">belowGlueDosage,</if>
|
|
|
|
|
<if test="bufferGlue != null">bufferGlue,</if>
|
|
|
|
|
<if test="bufferGlueCoefficient != null">bufferGlueCoefficient,</if>
|
|
|
|
|
<if test="bufferGlueDosage != null">bufferGlueDosage,</if>
|
|
|
|
|
<if test="largeClothSpecifications != null">largeClothSpecifications,</if>
|
|
|
|
|
<if test="largeClothFrictioningCoefficient != null">largeClothFrictioningCoefficient,</if>
|
|
|
|
|
<if test="largeClothDosage != null">largeClothDosage,</if>
|
|
|
|
|
<if test="middleGlue != null">middleGlue,</if>
|
|
|
|
|
<if test="middleGlueCoefficient != null">middleGlueCoefficient,</if>
|
|
|
|
|
<if test="middleGlueDosage != null">middleGlueDosage,</if>
|
|
|
|
|
<if test="deviceUsageRestrictions != null">deviceUsageRestrictions,</if>
|
|
|
|
|
<if test="workshopSection != null">workshopSection,</if>
|
|
|
|
|
<if test="classes != null">classes,</if>
|
|
|
|
|
<if test="taskForce != null">taskForce,</if>
|
|
|
|
|
<if test="teamName != null">teamName,</if>
|
|
|
|
|
<if test="groupLeader != null">groupLeader,</if>
|
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="hardware != null">#{hardware},</if>
|
|
|
|
|
<if test="software != null">#{software},</if>
|
|
|
|
|
<if test="stageText != null">#{stageText},</if>
|
|
|
|
|
<if test="seqNo != null and seqNo != ''">#{seqNo},</if>
|
|
|
|
|
<if test="planStartTime != null">#{planStartTime},</if>
|
|
|
|
|
<if test="planEndTime != null">#{planEndTime},</if>
|
|
|
|
|
<if test="associationResource != null">#{associationResource},</if>
|
|
|
|
|
<if test="workingEfficiency != null">#{workingEfficiency},</if>
|
|
|
|
|
<if test="equipmentNo != null">#{equipmentNo},</if>
|
|
|
|
|
<if test="preparationDuration != null">#{preparationDuration},</if>
|
|
|
|
|
<if test="windUpDuration != null">#{windUpDuration},</if>
|
|
|
|
|
<if test="clothMinimumSpeed != null">#{clothMinimumSpeed},</if>
|
|
|
|
|
<if test="clothMaximumSpeed != null">#{clothMaximumSpeed},</if>
|
|
|
|
|
<if test="formingMinimumSpeed != null">#{formingMinimumSpeed},</if>
|
|
|
|
|
<if test="formingMaximumSpeed != null">#{formingMaximumSpeed},</if>
|
|
|
|
|
<if test="glueMinimumSpeed != null">#{glueMinimumSpeed},</if>
|
|
|
|
|
<if test="glueMaximumSpeed != null">#{glueMaximumSpeed},</if>
|
|
|
|
|
<if test="sulfurizationLength != null">#{sulfurizationLength},</if>
|
|
|
|
|
<if test="vulcanizingMachineType != null">#{vulcanizingMachineType},</if>
|
|
|
|
|
<if test="vulcanizedBoardNumber != null">#{vulcanizedBoardNumber},</if>
|
|
|
|
|
<if test="resourceName != null">#{resourceName},</if>
|
|
|
|
|
<if test="processStage != null">#{processStage},</if>
|
|
|
|
|
<if test="preProcess != null">#{preProcess},</if>
|
|
|
|
|
<if test="releaseOrder != null">#{releaseOrder},</if>
|
|
|
|
|
<if test="taskCode != null">#{taskCode},</if>
|
|
|
|
|
<if test="conveyorLengthSpecification != null">#{conveyorLengthSpecification},</if>
|
|
|
|
|
<if test="upGlueThickness != null">#{upGlueThickness},</if>
|
|
|
|
|
<if test="upBufferGlueThickness != null">#{upBufferGlueThickness},</if>
|
|
|
|
|
<if test="belowGlueThickness != null">#{belowGlueThickness},</if>
|
|
|
|
|
<if test="belowBufferGlueThickness != null">#{belowBufferGlueThickness},</if>
|
|
|
|
|
<if test="beltWidth != null">#{beltWidth},</if>
|
|
|
|
|
<if test="customerRequestConveyorLength != null">#{customerRequestConveyorLength},</if>
|
|
|
|
|
<if test="rollingProductionMeters != null">#{rollingProductionMeters},</if>
|
|
|
|
|
<if test="vulcanizationMeters != null">#{vulcanizationMeters},</if>
|
|
|
|
|
<if test="recommendVulcanizationTime != null">#{recommendVulcanizationTime},</if>
|
|
|
|
|
<if test="largeClothMeters != null">#{largeClothMeters},</if>
|
|
|
|
|
<if test="smallClothMeters != null">#{smallClothMeters},</if>
|
|
|
|
|
<if test="encapsulationMeters != null">#{encapsulationMeters},</if>
|
|
|
|
|
<if test="workSpeed != null">#{workSpeed},</if>
|
|
|
|
|
<if test="workingHours != null">#{workingHours},</if>
|
|
|
|
|
<if test="distributionArea != null">#{distributionArea},</if>
|
|
|
|
|
<if test="encapsulationArea != null">#{encapsulationArea},</if>
|
|
|
|
|
<if test="vulcanizationArea != null">#{vulcanizationArea},</if>
|
|
|
|
|
<if test="conveyorTotalArea != null">#{conveyorTotalArea},</if>
|
|
|
|
|
<if test="glueProcess != null">#{glueProcess},</if>
|
|
|
|
|
<if test="upGlue != null">#{upGlue},</if>
|
|
|
|
|
<if test="upGlueCoefficient != null">#{upGlueCoefficient},</if>
|
|
|
|
|
<if test="upGlueDosage != null">#{upGlueDosage},</if>
|
|
|
|
|
<if test="belowGlue != null">#{belowGlue},</if>
|
|
|
|
|
<if test="belowGlueCoefficient != null">#{belowGlueCoefficient},</if>
|
|
|
|
|
<if test="belowGlueDosage != null">#{belowGlueDosage},</if>
|
|
|
|
|
<if test="bufferGlue != null">#{bufferGlue},</if>
|
|
|
|
|
<if test="bufferGlueCoefficient != null">#{bufferGlueCoefficient},</if>
|
|
|
|
|
<if test="bufferGlueDosage != null">#{bufferGlueDosage},</if>
|
|
|
|
|
<if test="largeClothSpecifications != null">#{largeClothSpecifications},</if>
|
|
|
|
|
<if test="largeClothFrictioningCoefficient != null">#{largeClothFrictioningCoefficient},</if>
|
|
|
|
|
<if test="largeClothDosage != null">#{largeClothDosage},</if>
|
|
|
|
|
<if test="middleGlue != null">#{middleGlue},</if>
|
|
|
|
|
<if test="middleGlueCoefficient != null">#{middleGlueCoefficient},</if>
|
|
|
|
|
<if test="middleGlueDosage != null">#{middleGlueDosage},</if>
|
|
|
|
|
<if test="deviceUsageRestrictions != null">#{deviceUsageRestrictions},</if>
|
|
|
|
|
<if test="workshopSection != null">#{workshopSection},</if>
|
|
|
|
|
<if test="classes != null">#{classes},</if>
|
|
|
|
|
<if test="taskForce != null">#{taskForce},</if>
|
|
|
|
|
<if test="teamName != null">#{teamName},</if>
|
|
|
|
|
<if test="groupLeader != null">#{groupLeader},</if>
|
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateProdPlanErpInfo" parameterType="ProdPlanErpInfo">
|
|
|
|
|
update prod_plan_erp_info
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="hardware != null">hardware = #{hardware},</if>
|
|
|
|
|
<if test="software != null">software = #{software},</if>
|
|
|
|
|
<if test="stageText != null">stageText = #{stageText},</if>
|
|
|
|
|
<if test="seqNo != null and seqNo != ''">seqNo = #{seqNo},</if>
|
|
|
|
|
<if test="planStartTime != null">planStartTime = #{planStartTime},</if>
|
|
|
|
|
<if test="planEndTime != null">planEndTime = #{planEndTime},</if>
|
|
|
|
|
<if test="associationResource != null">associationResource = #{associationResource},</if>
|
|
|
|
|
<if test="workingEfficiency != null">workingEfficiency = #{workingEfficiency},</if>
|
|
|
|
|
<if test="equipmentNo != null">equipmentNo = #{equipmentNo},</if>
|
|
|
|
|
<if test="preparationDuration != null">preparationDuration = #{preparationDuration},</if>
|
|
|
|
|
<if test="windUpDuration != null">windUpDuration = #{windUpDuration},</if>
|
|
|
|
|
<if test="clothMinimumSpeed != null">clothMinimumSpeed = #{clothMinimumSpeed},</if>
|
|
|
|
|
<if test="clothMaximumSpeed != null">clothMaximumSpeed = #{clothMaximumSpeed},</if>
|
|
|
|
|
<if test="formingMinimumSpeed != null">formingMinimumSpeed = #{formingMinimumSpeed},</if>
|
|
|
|
|
<if test="formingMaximumSpeed != null">formingMaximumSpeed = #{formingMaximumSpeed},</if>
|
|
|
|
|
<if test="glueMinimumSpeed != null">glueMinimumSpeed = #{glueMinimumSpeed},</if>
|
|
|
|
|
<if test="glueMaximumSpeed != null">glueMaximumSpeed = #{glueMaximumSpeed},</if>
|
|
|
|
|
<if test="sulfurizationLength != null">sulfurizationLength = #{sulfurizationLength},</if>
|
|
|
|
|
<if test="vulcanizingMachineType != null">vulcanizingMachineType = #{vulcanizingMachineType},</if>
|
|
|
|
|
<if test="vulcanizedBoardNumber != null">vulcanizedBoardNumber = #{vulcanizedBoardNumber},</if>
|
|
|
|
|
<if test="resourceName != null">resourceName = #{resourceName},</if>
|
|
|
|
|
<if test="processStage != null">processStage = #{processStage},</if>
|
|
|
|
|
<if test="preProcess != null">preProcess = #{preProcess},</if>
|
|
|
|
|
<if test="releaseOrder != null">releaseOrder = #{releaseOrder},</if>
|
|
|
|
|
<if test="taskCode != null">taskCode = #{taskCode},</if>
|
|
|
|
|
<if test="conveyorLengthSpecification != null">conveyorLengthSpecification =
|
|
|
|
|
#{conveyorLengthSpecification},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="upGlueThickness != null">upGlueThickness = #{upGlueThickness},</if>
|
|
|
|
|
<if test="upBufferGlueThickness != null">upBufferGlueThickness = #{upBufferGlueThickness},</if>
|
|
|
|
|
<if test="belowGlueThickness != null">belowGlueThickness = #{belowGlueThickness},</if>
|
|
|
|
|
<if test="belowBufferGlueThickness != null">belowBufferGlueThickness = #{belowBufferGlueThickness},</if>
|
|
|
|
|
<if test="beltWidth != null">beltWidth = #{beltWidth},</if>
|
|
|
|
|
<if test="customerRequestConveyorLength != null">customerRequestConveyorLength =
|
|
|
|
|
#{customerRequestConveyorLength},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="rollingProductionMeters != null">rollingProductionMeters = #{rollingProductionMeters},</if>
|
|
|
|
|
<if test="vulcanizationMeters != null">vulcanizationMeters = #{vulcanizationMeters},</if>
|
|
|
|
|
<if test="recommendVulcanizationTime != null">recommendVulcanizationTime = #{recommendVulcanizationTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="largeClothMeters != null">largeClothMeters = #{largeClothMeters},</if>
|
|
|
|
|
<if test="smallClothMeters != null">smallClothMeters = #{smallClothMeters},</if>
|
|
|
|
|
<if test="encapsulationMeters != null">encapsulationMeters = #{encapsulationMeters},</if>
|
|
|
|
|
<if test="workSpeed != null">workSpeed = #{workSpeed},</if>
|
|
|
|
|
<if test="workingHours != null">workingHours = #{workingHours},</if>
|
|
|
|
|
<if test="distributionArea != null">distributionArea = #{distributionArea},</if>
|
|
|
|
|
<if test="encapsulationArea != null">encapsulationArea = #{encapsulationArea},</if>
|
|
|
|
|
<if test="vulcanizationArea != null">vulcanizationArea = #{vulcanizationArea},</if>
|
|
|
|
|
<if test="conveyorTotalArea != null">conveyorTotalArea = #{conveyorTotalArea},</if>
|
|
|
|
|
<if test="glueProcess != null">glueProcess = #{glueProcess},</if>
|
|
|
|
|
<if test="upGlue != null">upGlue = #{upGlue},</if>
|
|
|
|
|
<if test="upGlueCoefficient != null">upGlueCoefficient = #{upGlueCoefficient},</if>
|
|
|
|
|
<if test="upGlueDosage != null">upGlueDosage = #{upGlueDosage},</if>
|
|
|
|
|
<if test="belowGlue != null">belowGlue = #{belowGlue},</if>
|
|
|
|
|
<if test="belowGlueCoefficient != null">belowGlueCoefficient = #{belowGlueCoefficient},</if>
|
|
|
|
|
<if test="belowGlueDosage != null">belowGlueDosage = #{belowGlueDosage},</if>
|
|
|
|
|
<if test="bufferGlue != null">bufferGlue = #{bufferGlue},</if>
|
|
|
|
|
<if test="bufferGlueCoefficient != null">bufferGlueCoefficient = #{bufferGlueCoefficient},</if>
|
|
|
|
|
<if test="bufferGlueDosage != null">bufferGlueDosage = #{bufferGlueDosage},</if>
|
|
|
|
|
<if test="largeClothSpecifications != null">largeClothSpecifications = #{largeClothSpecifications},</if>
|
|
|
|
|
<if test="largeClothFrictioningCoefficient != null">largeClothFrictioningCoefficient =
|
|
|
|
|
#{largeClothFrictioningCoefficient},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="largeClothDosage != null">largeClothDosage = #{largeClothDosage},</if>
|
|
|
|
|
<if test="middleGlue != null">middleGlue = #{middleGlue},</if>
|
|
|
|
|
<if test="middleGlueCoefficient != null">middleGlueCoefficient = #{middleGlueCoefficient},</if>
|
|
|
|
|
<if test="middleGlueDosage != null">middleGlueDosage = #{middleGlueDosage},</if>
|
|
|
|
|
<if test="deviceUsageRestrictions != null">deviceUsageRestrictions = #{deviceUsageRestrictions},</if>
|
|
|
|
|
<if test="workshopSection != null">workshopSection = #{workshopSection},</if>
|
|
|
|
|
<if test="classes != null">classes = #{classes},</if>
|
|
|
|
|
<if test="taskForce != null">taskForce = #{taskForce},</if>
|
|
|
|
|
<if test="teamName != null">teamName = #{teamName},</if>
|
|
|
|
|
<if test="groupLeader != null">groupLeader = #{groupLeader},</if>
|
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where obj_id = #{objId}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteProdPlanErpInfoByObjId" parameterType="Long">
|
|
|
|
|
delete
|
|
|
|
|
from prod_plan_erp_info
|
|
|
|
|
where obj_id = #{objId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteProdPlanErpInfoByObjIds" parameterType="String">
|
|
|
|
|
delete from prod_plan_erp_info where obj_id in
|
|
|
|
|
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{objId}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
</mapper>
|