You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
374 lines
24 KiB
374 lines
24 KiB
2 years ago
|
<?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.ruoyi.ck.mapper.BomMapper">
|
||
|
|
||
|
<resultMap type="Bom" id="BomResult">
|
||
|
<result property="versionNo" column="Version_No"/>
|
||
|
<result property="cpCode" column="CP_CODE"/>
|
||
|
<result property="cpName" column="CP_NAME"/>
|
||
|
<result property="cpType" column="CP_TYPE"/>
|
||
|
<result property="cpMachineNo" column="CP_Machine_NO"/>
|
||
|
<result property="cpDw" column="CP_DW"/>
|
||
|
<result property="wlCode" column="Wl_Code"/>
|
||
|
<result property="itemname" column="Itemname"/>
|
||
|
<result property="itemstandard" column="Itemstandard"/>
|
||
|
<result property="stockDw" column="Stock_dw"/>
|
||
|
<result property="useNum" column="Use_Num"/>
|
||
|
<result property="lostpre" column="lostpre"/>
|
||
|
<result property="zpGuige" column="zp_guige"/>
|
||
|
<result property="zpUseNum" column="zp_use_num"/>
|
||
|
<result property="mQty" column="m_qty"/>
|
||
|
<result property="memolist" column="memolist"/>
|
||
|
<result property="nowversion" column="nowversion"/>
|
||
|
<result property="begindate" column="begindate"/>
|
||
|
<result property="endtime" column="endtime"/>
|
||
|
<result property="wldm" column="wldm"/>
|
||
|
<result property="customno" column="customno"/>
|
||
|
<result property="sendflag" column="sendflag"/>
|
||
|
<result property="YDWDH" column="YDWDH"/>
|
||
|
<result property="ZLDWDH" column="ZLDWDH"/>
|
||
|
<result property="ylWeight" column="yl_weight"/>
|
||
|
<result property="zongzhongWeight" column="zongzhong_Weight"/>
|
||
|
<result property="pno" column="pno"/>
|
||
|
<result property="Addtime" column="Addtime"/>
|
||
|
<result property="fuWidth" column="Fu_Width"/>
|
||
|
<result property="yflItemclass" column="YFL_ItemClass"/>
|
||
|
<result property="mouldNo" column="Mould_No"/>
|
||
|
<result property="standNowversion" column="stand_nowversion"/>
|
||
|
<result property="comfirmFlag" column="Comfirm_Flag"/>
|
||
|
<result property="comfirmMan" column="Comfirm_man"/>
|
||
|
<result property="comfirmDate" column="Comfirm_date"/>
|
||
|
<result property="writeMan" column="write_man"/>
|
||
|
<result property="GongCha" column="GongCha"/>
|
||
|
<result property="factoryMouldNo" column="Factory_Mould_no"/>
|
||
|
<result property="mainMaterial" column="Main_Material"/>
|
||
|
<result property="limitFlag" column="Limit_Flag"/>
|
||
|
<result property="gongchaMore" column="gongcha_more"/>
|
||
|
<result property="gongchaSmall" column="gongcha_small"/>
|
||
|
<result property="changtime" column="changtime"/>
|
||
|
<result property="cpNum" column="CP_NUM"/>
|
||
|
<result property="worklineclass" column="worklineclass"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<sql id="selectBomVo">
|
||
|
select Version_No, CP_CODE, CP_NAME, CP_TYPE, CP_Machine_NO, CP_DW, Wl_Code, Itemname, Itemstandard, Stock_dw, Use_Num, lostpre, zp_guige, zp_use_num, m_qty, memolist, nowversion, begindate, endtime, wldm, customno, sendflag, YDWDH, ZLDWDH, yl_weight, zongzhong_Weight, pno, Addtime, Fu_Width, YFL_ItemClass, Mould_No, stand_nowversion, Comfirm_Flag, Comfirm_man, Comfirm_date, write_man, GongCha, Factory_Mould_no, Main_Material, Limit_Flag, gongcha_more, gongcha_small, changtime, CP_NUM, worklineclass from bom
|
||
|
</sql>
|
||
|
|
||
|
<select id="selectBomList" parameterType="Bom" resultMap="BomResult">
|
||
|
<include refid="selectBomVo"/>
|
||
|
<where>
|
||
|
<if test="versionNo != null and versionNo != ''">and Version_No like concat('%', #{versionNo}, '%')</if>
|
||
|
<!-- <if test="cpCode != null and cpCode != ''"> and CP_CODE like concat('%', #{cpCode}, '%')</if>-->
|
||
|
<if test="cpCode != null and cpCode != ''">and CP_CODE = #{cpCode}</if>
|
||
|
<if test="cpName != null and cpName != ''">and CP_NAME like concat('%', #{cpName}, '%')</if>
|
||
|
<if test="cpType != null and cpType != ''">and CP_TYPE like concat('%', #{cpType}, '%')</if>
|
||
|
<if test="cpMachineNo != null and cpMachineNo != ''">and CP_Machine_NO like concat('%', #{cpMachineNo},
|
||
|
'%')
|
||
|
</if>
|
||
|
<if test="cpDw != null and cpDw != ''">and CP_DW like concat('%', #{cpDw}, '%')</if>
|
||
|
<if test="wlCode != null and wlCode != ''">and Wl_Code like concat('%', #{wlCode}, '%')</if>
|
||
|
<if test="itemname != null and itemname != ''">and Itemname like concat('%', #{itemname}, '%')</if>
|
||
|
<if test="itemstandard != null and itemstandard != ''">and Itemstandard like concat('%', #{itemstandard},
|
||
|
'%')
|
||
|
</if>
|
||
|
<if test="stockDw != null and stockDw != ''">and Stock_dw like concat('%', #{stockDw}, '%')</if>
|
||
|
<if test="useNum != null ">and Use_Num like concat('%', #{useNum}, '%')</if>
|
||
|
<if test="lostpre != null ">and lostpre like concat('%', #{lostpre}, '%')</if>
|
||
|
<if test="zpGuige != null and zpGuige != ''">and zp_guige like concat('%', #{zpGuige}, '%')</if>
|
||
|
<if test="zpUseNum != null ">and zp_use_num like concat('%', #{zpUseNum}, '%')</if>
|
||
|
<if test="mQty != null ">and m_qty like concat('%', #{mQty}, '%')</if>
|
||
|
<if test="memolist != null and memolist != ''">and memolist like concat('%', #{memolist}, '%')</if>
|
||
|
<if test="nowversion != null ">and nowversion like concat('%', #{nowversion}, '%')</if>
|
||
|
<if test="begindate != null ">and begindate like concat('%', #{begindate}, '%')</if>
|
||
|
<if test="endtime != null ">and endtime like concat('%', #{endtime}, '%')</if>
|
||
|
<if test="wldm != null and wldm != ''">and wldm like concat('%', #{wldm}, '%')</if>
|
||
|
<if test="customno != null and customno != ''">and customno like concat('%', #{customno}, '%')</if>
|
||
|
<if test="sendflag != null ">and sendflag like concat('%', #{sendflag}, '%')</if>
|
||
|
<if test="YDWDH != null ">and YDWDH like concat('%', #{YDWDH}, '%')</if>
|
||
|
<if test="ZLDWDH != null ">and ZLDWDH like concat('%', #{ZLDWDH}, '%')</if>
|
||
|
<if test="ylWeight != null ">and yl_weight like concat('%', #{ylWeight}, '%')</if>
|
||
|
<if test="zongzhongWeight != null ">and zongzhong_Weight like concat('%', #{zongzhongWeight}, '%')</if>
|
||
|
<if test="pno != null and pno != ''">and pno like concat('%', #{pno}, '%')</if>
|
||
|
<if test="Addtime != null ">and Addtime like concat('%', #{Addtime}, '%')</if>
|
||
|
<if test="fuWidth != null ">and Fu_Width like concat('%', #{fuWidth}, '%')</if>
|
||
|
<if test="yflItemclass != null and yflItemclass != ''">and YFL_ItemClass like concat('%', #{yflItemclass},
|
||
|
'%')
|
||
|
</if>
|
||
|
<if test="mouldNo != null and mouldNo != ''">and Mould_No like concat('%', #{mouldNo}, '%')</if>
|
||
|
<if test="standNowversion != null ">and stand_nowversion like concat('%', #{standNowversion}, '%')</if>
|
||
|
<if test="comfirmFlag != null ">and Comfirm_Flag like concat('%', #{comfirmFlag}, '%')</if>
|
||
|
<if test="comfirmMan != null and comfirmMan != ''">and Comfirm_man like concat('%', #{comfirmMan}, '%')
|
||
|
</if>
|
||
|
<if test="comfirmDate != null ">and Comfirm_date like concat('%', #{comfirmDate}, '%')</if>
|
||
|
<if test="writeMan != null and writeMan != ''">and write_man like concat('%', #{writeMan}, '%')</if>
|
||
|
<if test="GongCha != null and GongCha != ''">and GongCha like concat('%', #{GongCha}, '%')</if>
|
||
|
<if test="factoryMouldNo != null and factoryMouldNo != ''">and Factory_Mould_no like concat('%',
|
||
|
#{factoryMouldNo}, '%')
|
||
|
</if>
|
||
|
<if test="mainMaterial != null ">and Main_Material like concat('%', #{mainMaterial}, '%')</if>
|
||
|
<if test="limitFlag != null ">and Limit_Flag like concat('%', #{limitFlag}, '%')</if>
|
||
|
<if test="gongchaMore != null ">and gongcha_more like concat('%', #{gongchaMore}, '%')</if>
|
||
|
<if test="gongchaSmall != null ">and gongcha_small like concat('%', #{gongchaSmall}, '%')</if>
|
||
|
<if test="changtime != null ">and changtime like concat('%', #{changtime}, '%')</if>
|
||
|
<if test="cpNum != null ">and CP_NUM like concat('%', #{cpNum}, '%')</if>
|
||
|
<if test="worklineclass != null and worklineclass != ''">and worklineclass like concat('%',
|
||
|
#{worklineclass}, '%')
|
||
|
</if>
|
||
|
</where>
|
||
|
group by Version_No,CP_CODE
|
||
|
</select>
|
||
|
|
||
|
<select id="selectBomListByCodeVersion" parameterType="Bom" resultMap="BomResult">
|
||
|
<include refid="selectBomVo"/>
|
||
|
<where>
|
||
|
<if test="versionNo != null and versionNo != ''">and Version_No = #{versionNo}</if>
|
||
|
<if test="cpCode != null and cpCode != ''">and CP_CODE = #{cpCode}</if>
|
||
|
<if test="cpName != null and cpName != ''">and CP_NAME like concat('%', #{cpName}, '%')</if>
|
||
|
<if test="cpType != null and cpType != ''">and CP_TYPE like concat('%', #{cpType}, '%')</if>
|
||
|
<if test="cpMachineNo != null and cpMachineNo != ''">and CP_Machine_NO like concat('%', #{cpMachineNo},
|
||
|
'%')
|
||
|
</if>
|
||
|
<if test="cpDw != null and cpDw != ''">and CP_DW like concat('%', #{cpDw}, '%')</if>
|
||
|
<if test="wlCode != null and wlCode != ''">and Wl_Code like concat('%', #{wlCode}, '%')</if>
|
||
|
<if test="itemname != null and itemname != ''">and Itemname like concat('%', #{Itemname}, '%')</if>
|
||
|
<if test="itemstandard != null and itemstandard != ''">and Itemstandard like concat('%', #{Itemstandard},
|
||
|
'%')
|
||
|
</if>
|
||
|
<if test="stockDw != null and stockDw != ''">and Stock_dw like concat('%', #{stockDw}, '%')</if>
|
||
|
<if test="useNum != null ">and Use_Num like concat('%', #{useNum}, '%')</if>
|
||
|
<if test="lostpre != null ">and lostpre like concat('%', #{lostpre}, '%')</if>
|
||
|
<if test="zpGuige != null and zpGuige != ''">and zp_guige like concat('%', #{zpGuige}, '%')</if>
|
||
|
<if test="zpUseNum != null ">and zp_use_num like concat('%', #{zpUseNum}, '%')</if>
|
||
|
<if test="mQty != null ">and m_qty like concat('%', #{mQty}, '%')</if>
|
||
|
<if test="memolist != null and memolist != ''">and memolist like concat('%', #{memolist}, '%')</if>
|
||
|
<if test="nowversion != null ">and nowversion like concat('%', #{nowversion}, '%')</if>
|
||
|
<if test="begindate != null ">and begindate like concat('%', #{begindate}, '%')</if>
|
||
|
<if test="endtime != null ">and endtime like concat('%', #{endtime}, '%')</if>
|
||
|
<if test="wldm != null and wldm != ''">and wldm like concat('%', #{wldm}, '%')</if>
|
||
|
<if test="customno != null and customno != ''">and customno like concat('%', #{customno}, '%')</if>
|
||
|
<if test="sendflag != null ">and sendflag like concat('%', #{sendflag}, '%')</if>
|
||
|
<if test="YDWDH != null ">and YDWDH like concat('%', #{YDWDH}, '%')</if>
|
||
|
<if test="ZLDWDH != null ">and ZLDWDH like concat('%', #{ZLDWDH}, '%')</if>
|
||
|
<if test="ylWeight != null ">and yl_weight like concat('%', #{ylWeight}, '%')</if>
|
||
|
<if test="zongzhongWeight != null ">and zongzhong_Weight like concat('%', #{zongzhongWeight}, '%')</if>
|
||
|
<if test="pno != null and pno != ''">and pno like concat('%', #{pno}, '%')</if>
|
||
|
<if test="Addtime != null ">and Addtime like concat('%', #{Addtime}, '%')</if>
|
||
|
<if test="fuWidth != null ">and Fu_Width like concat('%', #{fuWidth}, '%')</if>
|
||
|
<if test="yflItemclass != null and yflItemclass != ''">and YFL_ItemClass like concat('%', #{yflItemclass},
|
||
|
'%')
|
||
|
</if>
|
||
|
<if test="mouldNo != null and mouldNo != ''">and Mould_No like concat('%', #{mouldNo}, '%')</if>
|
||
|
<if test="standNowversion != null ">and stand_nowversion like concat('%', #{standNowversion}, '%')</if>
|
||
|
<if test="comfirmFlag != null ">and Comfirm_Flag like concat('%', #{comfirmFlag}, '%')</if>
|
||
|
<if test="comfirmMan != null and comfirmMan != ''">and Comfirm_man like concat('%', #{comfirmMan}, '%')
|
||
|
</if>
|
||
|
<if test="comfirmDate != null ">and Comfirm_date like concat('%', #{comfirmDate}, '%')</if>
|
||
|
<if test="writeMan != null and writeMan != ''">and write_man like concat('%', #{writeMan}, '%')</if>
|
||
|
<if test="GongCha != null and GongCha != ''">and GongCha like concat('%', #{GongCha}, '%')</if>
|
||
|
<if test="factoryMouldNo != null and factoryMouldNo != ''">and Factory_Mould_no like concat('%',
|
||
|
#{factoryMouldNo}, '%')
|
||
|
</if>
|
||
|
<if test="mainMaterial != null ">and Main_Material like concat('%', #{mainMaterial}, '%')</if>
|
||
|
<if test="limitFlag != null ">and Limit_Flag like concat('%', #{limitFlag}, '%')</if>
|
||
|
<if test="gongchaMore != null ">and gongcha_more like concat('%', #{gongchaMore}, '%')</if>
|
||
|
<if test="gongchaSmall != null ">and gongcha_small like concat('%', #{gongchaSmall}, '%')</if>
|
||
|
<if test="changtime != null ">and changtime like concat('%', #{changtime}, '%')</if>
|
||
|
<if test="cpNum != null ">and CP_NUM like concat('%', #{cpNum}, '%')</if>
|
||
|
<if test="worklineclass != null and worklineclass != ''">and worklineclass like concat('%',
|
||
|
#{worklineclass}, '%')
|
||
|
</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
|
||
|
|
||
|
<select id="selectBomGroupByCPCode" parameterType="Bom" resultMap="BomResult">
|
||
|
<include refid="selectBomVo"/>
|
||
|
<where>
|
||
|
<if test="cpCode != null and cpCode != ''">and CP_CODE = #{cpCode}</if>
|
||
|
<if test="versionNo != null and versionNo!= ''">and Version_No like concat('%', #{versionNo}, '%')</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
<!-- <select id="selectBomById" parameterType="String" resultMap="BomResult">-->
|
||
|
<!-- <include refid="selectBomVo"/>-->
|
||
|
<!-- where Version_No = #{versionNo}-->
|
||
|
<!-- </select>-->
|
||
|
|
||
|
<!-- <select id="selectBomByCPCode" parameterType="Bom" resultMap="BomResult">-->
|
||
|
<!-- <include refid="selectBomList"/>-->
|
||
|
|
||
|
<!-- </select>-->
|
||
|
|
||
|
<insert id="insertBom" parameterType="Bom">
|
||
|
insert into bom
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="versionNo != null">Version_No,</if>
|
||
|
<if test="cpCode != null">CP_CODE,</if>
|
||
|
<if test="cpName != null">CP_NAME,</if>
|
||
|
<if test="cpType != null">CP_TYPE,</if>
|
||
|
<if test="cpMachineNo != null">CP_Machine_NO,</if>
|
||
|
<if test="cpDw != null">CP_DW,</if>
|
||
|
<if test="wlCode != null">Wl_Code,</if>
|
||
|
<if test="itemname != null">Itemname,</if>
|
||
|
<if test="itemstandard != null">Itemstandard,</if>
|
||
|
<if test="stockDw != null">Stock_dw,</if>
|
||
|
<if test="useNum != null">Use_Num,</if>
|
||
|
<if test="lostpre != null">lostpre,</if>
|
||
|
<if test="zpGuige != null">zp_guige,</if>
|
||
|
<if test="zpUseNum != null">zp_use_num,</if>
|
||
|
<if test="mQty != null">m_qty,</if>
|
||
|
<if test="memolist != null">memolist,</if>
|
||
|
<if test="nowversion != null">nowversion,</if>
|
||
|
<if test="begindate != null">begindate,</if>
|
||
|
<if test="endtime != null">endtime,</if>
|
||
|
<if test="wldm != null">wldm,</if>
|
||
|
<if test="customno != null">customno,</if>
|
||
|
<if test="sendflag != null">sendflag,</if>
|
||
|
<if test="YDWDH != null">YDWDH,</if>
|
||
|
<if test="ZLDWDH != null">ZLDWDH,</if>
|
||
|
<if test="ylWeight != null">yl_weight,</if>
|
||
|
<if test="zongzhongWeight != null">zongzhong_Weight,</if>
|
||
|
<if test="pno != null">pno,</if>
|
||
|
<if test="Addtime != null">Addtime,</if>
|
||
|
<if test="fuWidth != null">Fu_Width,</if>
|
||
|
<if test="yflItemclass != null">YFL_ItemClass,</if>
|
||
|
<if test="mouldNo != null">Mould_No,</if>
|
||
|
<if test="standNowversion != null">stand_nowversion,</if>
|
||
|
<if test="comfirmFlag != null">Comfirm_Flag,</if>
|
||
|
<if test="comfirmMan != null">Comfirm_man,</if>
|
||
|
<if test="comfirmDate != null">Comfirm_date,</if>
|
||
|
<if test="writeMan != null">write_man,</if>
|
||
|
<if test="GongCha != null">GongCha,</if>
|
||
|
<if test="factoryMouldNo != null">Factory_Mould_no,</if>
|
||
|
<if test="mainMaterial != null">Main_Material,</if>
|
||
|
<if test="limitFlag != null">Limit_Flag,</if>
|
||
|
<if test="gongchaMore != null">gongcha_more,</if>
|
||
|
<if test="gongchaSmall != null">gongcha_small,</if>
|
||
|
<if test="changtime != null">changtime,</if>
|
||
|
<if test="cpNum != null">CP_NUM,</if>
|
||
|
<if test="worklineclass != null">worklineclass,</if>
|
||
|
</trim>
|
||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
<if test="versionNo != null">#{versionNo},</if>
|
||
|
<if test="cpCode != null">#{cpCode},</if>
|
||
|
<if test="cpName != null">#{cpName},</if>
|
||
|
<if test="cpType != null">#{cpType},</if>
|
||
|
<if test="cpMachineNo != null">#{cpMachineNo},</if>
|
||
|
<if test="cpDw != null">#{cpDw},</if>
|
||
|
<if test="wlCode != null">#{wlCode},</if>
|
||
|
<if test="itemname != null">#{itemname},</if>
|
||
|
<if test="itemstandard != null">#{itemstandard},</if>
|
||
|
<if test="stockDw != null">#{stockDw},</if>
|
||
|
<if test="useNum != null">#{useNum},</if>
|
||
|
<if test="lostpre != null">#{lostpre},</if>
|
||
|
<if test="zpGuige != null">#{zpGuige},</if>
|
||
|
<if test="zpUseNum != null">#{zpUseNum},</if>
|
||
|
<if test="mQty != null">#{mQty},</if>
|
||
|
<if test="memolist != null">#{memolist},</if>
|
||
|
<if test="nowversion != null">#{nowversion},</if>
|
||
|
<if test="begindate != null">#{begindate},</if>
|
||
|
<if test="endtime != null">#{endtime},</if>
|
||
|
<if test="wldm != null">#{wldm},</if>
|
||
|
<if test="customno != null">#{customno},</if>
|
||
|
<if test="sendflag != null">#{sendflag},</if>
|
||
|
<if test="YDWDH != null">#{YDWDH},</if>
|
||
|
<if test="ZLDWDH != null">#{ZLDWDH},</if>
|
||
|
<if test="ylWeight != null">#{ylWeight},</if>
|
||
|
<if test="zongzhongWeight != null">#{zongzhongWeight},</if>
|
||
|
<if test="pno != null">#{pno},</if>
|
||
|
<if test="Addtime != null">#{Addtime},</if>
|
||
|
<if test="fuWidth != null">#{fuWidth},</if>
|
||
|
<if test="yflItemclass != null">#{yflItemclass},</if>
|
||
|
<if test="mouldNo != null">#{mouldNo},</if>
|
||
|
<if test="standNowversion != null">#{standNowversion},</if>
|
||
|
<if test="comfirmFlag != null">#{comfirmFlag},</if>
|
||
|
<if test="comfirmMan != null">#{comfirmMan},</if>
|
||
|
<if test="comfirmDate != null">#{comfirmDate},</if>
|
||
|
<if test="writeMan != null">#{writeMan},</if>
|
||
|
<if test="GongCha != null">#{GongCha},</if>
|
||
|
<if test="factoryMouldNo != null">#{factoryMouldNo},</if>
|
||
|
<if test="mainMaterial != null">#{mainMaterial},</if>
|
||
|
<if test="limitFlag != null">#{limitFlag},</if>
|
||
|
<if test="gongchaMore != null">#{gongchaMore},</if>
|
||
|
<if test="gongchaSmall != null">#{gongchaSmall},</if>
|
||
|
<if test="changtime != null">#{changtime},</if>
|
||
|
<if test="cpNum != null">#{cpNum},</if>
|
||
|
<if test="worklineclass != null">#{worklineclass},</if>
|
||
|
</trim>
|
||
|
</insert>
|
||
|
|
||
|
<update id="updateBom" parameterType="Bom">
|
||
|
update bom
|
||
|
<trim prefix="SET" suffixOverrides=",">
|
||
|
<if test="cpCode != null">CP_CODE = #{cpCode},</if>
|
||
|
<if test="cpName != null">CP_NAME = #{cpName},</if>
|
||
|
<if test="cpType != null">CP_TYPE = #{cpType},</if>
|
||
|
<if test="cpMachineNo != null">CP_Machine_NO = #{cpMachineNo},</if>
|
||
|
<if test="cpDw != null">CP_DW = #{cpDw},</if>
|
||
|
<if test="wlCode != null">Wl_Code = #{wlCode},</if>
|
||
|
<if test="itemname != null">Itemname = #{Itemname},</if>
|
||
|
<if test="itemstandard != null">Itemstandard = #{Itemstandard},</if>
|
||
|
<if test="stockDw != null">Stock_dw = #{stockDw},</if>
|
||
|
<if test="useNum != null">Use_Num = #{useNum},</if>
|
||
|
<if test="lostpre != null">lostpre = #{lostpre},</if>
|
||
|
<if test="zpGuige != null">zp_guige = #{zpGuige},</if>
|
||
|
<if test="zpUseNum != null">zp_use_num = #{zpUseNum},</if>
|
||
|
<if test="mQty != null">m_qty = #{mQty},</if>
|
||
|
<if test="memolist != null">memolist = #{memolist},</if>
|
||
|
<if test="nowversion != null">nowversion = #{nowversion},</if>
|
||
|
<if test="begindate != null">begindate = #{begindate},</if>
|
||
|
<if test="endtime != null">endtime = #{endtime},</if>
|
||
|
<if test="wldm != null">wldm = #{wldm},</if>
|
||
|
<if test="customno != null">customno = #{customno},</if>
|
||
|
<if test="sendflag != null">sendflag = #{sendflag},</if>
|
||
|
<if test="YDWDH != null">YDWDH = #{YDWDH},</if>
|
||
|
<if test="ZLDWDH != null">ZLDWDH = #{ZLDWDH},</if>
|
||
|
<if test="ylWeight != null">yl_weight = #{ylWeight},</if>
|
||
|
<if test="zongzhongWeight != null">zongzhong_Weight = #{zongzhongWeight},</if>
|
||
|
<if test="pno != null">pno = #{pno},</if>
|
||
|
<if test="Addtime != null">Addtime = #{Addtime},</if>
|
||
|
<if test="fuWidth != null">Fu_Width = #{fuWidth},</if>
|
||
|
<if test="yflItemclass != null">YFL_ItemClass = #{yflItemclass},</if>
|
||
|
<if test="mouldNo != null">Mould_No = #{mouldNo},</if>
|
||
|
<if test="standNowversion != null">stand_nowversion = #{standNowversion},</if>
|
||
|
<if test="comfirmFlag != null">Comfirm_Flag = #{comfirmFlag},</if>
|
||
|
<if test="comfirmMan != null">Comfirm_man = #{comfirmMan},</if>
|
||
|
<if test="comfirmDate != null">Comfirm_date = #{comfirmDate},</if>
|
||
|
<if test="writeMan != null">write_man = #{writeMan},</if>
|
||
|
<if test="GongCha != null">GongCha = #{GongCha},</if>
|
||
|
<if test="factoryMouldNo != null">Factory_Mould_no = #{factoryMouldNo},</if>
|
||
|
<if test="mainMaterial != null">Main_Material = #{mainMaterial},</if>
|
||
|
<if test="limitFlag != null">Limit_Flag = #{limitFlag},</if>
|
||
|
<if test="gongchaMore != null">gongcha_more = #{gongchaMore},</if>
|
||
|
<if test="gongchaSmall != null">gongcha_small = #{gongchaSmall},</if>
|
||
|
<if test="changtime != null">changtime = #{changtime},</if>
|
||
|
<if test="cpNum != null">CP_NUM = #{cpNum},</if>
|
||
|
<if test="worklineclass != null">worklineclass = #{worklineclass},</if>
|
||
|
</trim>
|
||
|
<!-- <where>-->
|
||
|
<!-- <if test="versionNo!=null and versionNo!=''">and Version_No = #{versionNo}</if>-->
|
||
|
<!-- </where>-->
|
||
|
where Version_No = #{versionNo}
|
||
|
</update>
|
||
|
|
||
|
<delete id="deleteBomById" parameterType="String">
|
||
|
delete from bom where Version_No = #{versionNo}
|
||
|
</delete>
|
||
|
|
||
|
<delete id="deleteBomByIds" parameterType="String">
|
||
|
delete from bom where Version_No in
|
||
|
<foreach item="versionNo" collection="array" open="(" separator="," close=")">
|
||
|
#{versionNo}
|
||
|
</foreach>
|
||
|
</delete>
|
||
|
|
||
|
<delete id="deleteByItem" parameterType="Bom">
|
||
|
delete from bom
|
||
|
<where>
|
||
|
<if test="versionNo != null and versionNo != ''">and Version_No = #{versionNo}</if>
|
||
|
<if test="cpCode != null and cpCode != ''">and CP_CODE = #{cpCode}</if>
|
||
|
<if test="wlCode != null and wlCode != ''">and Wl_Code = #{wlCode}</if>
|
||
|
</where>
|
||
|
</delete>
|
||
|
</mapper>
|