You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
225 lines
12 KiB
XML
225 lines
12 KiB
XML
11 months 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.op.wms.mapper.WmsRuturnPutEmbryoMapper">
|
||
|
|
||
|
<resultMap type="WmsRuturnPutEmbryo" id="WmsRuturnPutEmbryoResult">
|
||
|
<result property="id" column="id"/>
|
||
|
<result property="factoryCode" column="factoryCode"/>
|
||
|
<result property="productOrder" column="productOrder"/>
|
||
|
<result property="whCode" column="whCode"/>
|
||
|
<result property="waCode" column="waCode"/>
|
||
|
<result property="wlCode" column="wlCode"/>
|
||
|
<result property="productName" column="productName"/>
|
||
|
<result property="productCode" column="productCode"/>
|
||
|
<result property="productSort" column="productSort"/>
|
||
|
<result property="speciFication" column="speciFication"/>
|
||
|
<result property="unitOfMeasure" column="unitOfMeasure"/>
|
||
|
<result property="planQuantity" column="planQuantity"/>
|
||
|
<result property="putQuantity" column="putQuantity"/>
|
||
|
<result property="status" column="status"/>
|
||
|
<result property="sapStatus" column="sapStatus"/>
|
||
|
<result property="sapProof" column="sapProof"/>
|
||
|
<result property="sapMessage" column="sapMessage"/>
|
||
|
<result property="putDate" column="putDate"/>
|
||
|
<result property="attr1" column="attr1"/>
|
||
|
<result property="attr2" column="attr2"/>
|
||
|
<result property="attr3" column="attr3"/>
|
||
|
<result property="attr4" column="attr4"/>
|
||
|
<result property="attr5" column="attr5"/>
|
||
|
<result property="attr6" column="attr6"/>
|
||
|
<result property="attr7" column="attr7"/>
|
||
|
<result property="attr8" column="create_time"/>
|
||
|
<result property="attr9" column="attr9"/>
|
||
|
<result property="attr10" column="attr10"/>
|
||
|
<result property="createBy" column="createBy"/>
|
||
|
<result property="createTime" column="createTime"/>
|
||
|
<result property="updateBy" column="updateBy"/>
|
||
|
<result property="updateTime" column="updateTime"/>
|
||
|
|
||
|
</resultMap>
|
||
|
|
||
|
<select id="selectWmsRuturnPutEmbryo" resultMap="WmsRuturnPutEmbryoResult">
|
||
|
SELECT
|
||
|
wms_ruturn_put_embryo.id ,
|
||
|
wms_ruturn_put_embryo.factory_code As factoryCode,
|
||
|
wms_ruturn_put_embryo.product_order As productOrder ,
|
||
|
wms_ruturn_put_embryo.wh_code As whCode,
|
||
|
wms_ruturn_put_embryo.wa_code As waCode,
|
||
|
wms_ruturn_put_embryo.wl_code As wlCode,
|
||
|
wms_ruturn_put_embryo.product_name As productName,
|
||
|
wms_ruturn_put_embryo.product_code As productCode,
|
||
|
wms_ruturn_put_embryo.product_sort As productSort,
|
||
|
wms_ruturn_put_embryo.specification As speciFication,
|
||
|
wms_ruturn_put_embryo.unit_of_measure As unitOfMeasure,
|
||
|
wms_ruturn_put_embryo.plan_quantity As planQuantity,
|
||
|
COALESCE(wms_ruturn_put_embryo.put_quantity, 0) AS putQuantity,
|
||
|
wms_ruturn_put_embryo.status As status,
|
||
|
wms_ruturn_put_embryo.SAP_status As sapStatus,
|
||
|
wms_ruturn_put_embryo.SAP_proof As sapProof,
|
||
|
wms_ruturn_put_embryo.SAP_message As sapMessage,
|
||
|
wms_ruturn_put_embryo.put_date As putDate,
|
||
|
wms_ruturn_put_embryo.attr1 ,
|
||
|
wms_ruturn_put_embryo.attr2 ,
|
||
|
wms_ruturn_put_embryo.attr3 ,
|
||
|
wms_ruturn_put_embryo.attr4 ,
|
||
|
wms_ruturn_put_embryo.attr5 ,
|
||
|
wms_ruturn_put_embryo.attr6 ,
|
||
|
wms_ruturn_put_embryo.attr7,
|
||
|
wms_ruturn_put_embryo.attr8,
|
||
|
wms_ruturn_put_embryo.attr9,
|
||
|
wms_ruturn_put_embryo.attr10,
|
||
|
wms_ruturn_put_embryo.create_by As createBy,
|
||
|
wms_ruturn_put_embryo.create_time As createTime,
|
||
|
wms_ruturn_put_embryo.update_by As updateBy,
|
||
|
wms_ruturn_put_embryo.update_time As updateTime
|
||
|
FROM
|
||
|
wms_ruturn_put_embryo
|
||
|
where
|
||
|
active_flag='1' and product_order=#{productOrder}
|
||
|
</select>
|
||
|
<select id="selectWmsRuturnPutEmbryoByid" resultMap="WmsRuturnPutEmbryoResult">
|
||
|
SELECT
|
||
|
wms_ruturn_put_embryo.id ,
|
||
|
wms_ruturn_put_embryo.factory_code As factoryCode,
|
||
|
wms_ruturn_put_embryo.product_order As productOrder ,
|
||
|
wms_ruturn_put_embryo.wh_code As whCode,
|
||
|
wms_ruturn_put_embryo.wa_code As waCode,
|
||
|
wms_ruturn_put_embryo.wl_code As wlCode,
|
||
|
wms_ruturn_put_embryo.product_name As productName,
|
||
|
wms_ruturn_put_embryo.product_code As productCode,
|
||
|
wms_ruturn_put_embryo.product_sort As productSort,
|
||
|
wms_ruturn_put_embryo.specification As speciFication,
|
||
|
wms_ruturn_put_embryo.unit_of_measure As unitOfMeasure,
|
||
|
wms_ruturn_put_embryo.plan_quantity As planQuantity,
|
||
|
COALESCE(wms_ruturn_put_embryo.put_quantity, 0) AS putQuantity,
|
||
|
wms_ruturn_put_embryo.status As status,
|
||
|
wms_ruturn_put_embryo.SAP_status As sapStatus,
|
||
|
wms_ruturn_put_embryo.SAP_proof As sapProof,
|
||
|
wms_ruturn_put_embryo.SAP_message As sapMessage,
|
||
|
wms_ruturn_put_embryo.put_date As putDate,
|
||
|
wms_ruturn_put_embryo.attr1 ,
|
||
|
wms_ruturn_put_embryo.attr2 ,
|
||
|
wms_ruturn_put_embryo.attr3 ,
|
||
|
wms_ruturn_put_embryo.attr4 ,
|
||
|
wms_ruturn_put_embryo.attr5 ,
|
||
|
wms_ruturn_put_embryo.attr6 ,
|
||
|
wms_ruturn_put_embryo.attr7,
|
||
|
wms_ruturn_put_embryo.attr8,
|
||
|
wms_ruturn_put_embryo.attr9,
|
||
|
wms_ruturn_put_embryo.attr10,
|
||
|
wms_ruturn_put_embryo.create_by As createBy,
|
||
|
wms_ruturn_put_embryo.create_time As createTime,
|
||
|
wms_ruturn_put_embryo.update_by As updateBy,
|
||
|
wms_ruturn_put_embryo.update_time As updateTime
|
||
|
FROM
|
||
|
wms_ruturn_put_embryo
|
||
|
where
|
||
|
active_flag='1' and id=#{id}
|
||
|
</select>
|
||
|
<update id="updateWmsRuturnPutEmbryo" >
|
||
|
update wms_ruturn_put_embryo
|
||
|
<trim prefix="SET" suffixOverrides=",">
|
||
|
<if test="whCode != null">wh_code = #{whCode},</if>
|
||
|
<if test="waCode != null">wa_code = #{waCode},</if>
|
||
|
<if test="wlCode != null">wl_code = #{wlCode},</if>
|
||
|
<if test="productOrder != null">product_order = #{productOrder},</if>
|
||
|
<if test="productCode != null">product_code = #{productCode},</if>
|
||
|
<if test="productName != null">product_name = #{productName},</if>
|
||
|
<if test="planQuantity != null">plan_quantity = #{planQuantity},</if>
|
||
|
<if test="putQuantity != null">put_quantity = #{putQuantity},</if>
|
||
|
<if test="status != null">status = #{status},</if>
|
||
|
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||
|
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||
|
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||
|
<if test="attr4 != null">attr4 = #{attr4},</if>
|
||
|
<if test="attr5 != null">attr5 = #{attr5},</if>
|
||
|
<if test="attr6 != null">attr6 = #{attr6},</if>
|
||
|
<if test="attr7 != null">attr7 = #{attr7},</if>
|
||
|
<if test="attr8 != null">attr8 = #{attr8},</if>
|
||
|
<if test="attr9 != null">attr9 = #{attr9},</if>
|
||
|
<if test="attr10 != null">attr10 = #{attr10},</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>
|
||
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
||
|
</trim>
|
||
|
where id=#{id}
|
||
|
</update>
|
||
|
<insert id="insertWmsRuturnPutEmbryoMapperRecords">
|
||
|
insert into wms_ruturn_put_embryo_record
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null">id,</if>
|
||
|
<if test="factoryCode != null">factory_code,</if>
|
||
|
<if test="productOrder != null">product_order,</if>
|
||
|
<if test="whCode != null">wh_code,</if>
|
||
|
<if test="waCode != null">wa_code,</if>
|
||
|
<if test="wlCode != null">wl_code,</if>
|
||
|
<if test="productName != null">product_name,</if>
|
||
|
<if test="productCode != null">product_code,</if>
|
||
|
<if test="productSort != null">product_sort,</if>
|
||
|
<if test="specification != null">specification,</if>
|
||
|
<if test="unitOfMeasure != null">unit_of_measure,</if>
|
||
|
<if test="planQuantity != null">plan_quantity,</if>
|
||
|
<if test="putQuantity != null">put_quantity,</if>
|
||
|
<if test="status != null">status,</if>
|
||
|
<if test="SAPStatus != null">SAP_status,</if>
|
||
|
<if test="SAPProof != null">SAP_proof,</if>
|
||
|
<if test="SAPMessage != null">SAP_message,</if>
|
||
|
<if test="putDate != null">put_date,</if>
|
||
|
<if test="attr1 != null">attr1,</if>
|
||
|
<if test="attr2 != null">attr2,</if>
|
||
|
<if test="attr3 != null">attr3,</if>
|
||
|
<if test="attr4 != null">attr4,</if>
|
||
|
<if test="attr5 != null">attr5,</if>
|
||
|
<if test="attr6 != null">attr6,</if>
|
||
|
<if test="attr7 != null">attr7,</if>
|
||
|
<if test="attr8 != null">attr8,</if>
|
||
|
<if test="attr9 != null">attr9,</if>
|
||
|
<if test="attr10 != null">attr10,</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>
|
||
|
<if test="activeFlag != null">active_flag,</if>
|
||
|
</trim>
|
||
|
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null">#{id},</if>
|
||
|
<if test="factoryCode != null">#{factoryCode},</if>
|
||
|
<if test="productOrder != null">#{productOrder},</if>
|
||
|
<if test="whCode != null">#{whCode},</if>
|
||
|
<if test="waCode != null">#{waCode},</if>
|
||
|
<if test="wlCode != null">#{wlCode},</if>
|
||
|
<if test="productName != null">#{productName},</if>
|
||
|
<if test="productCode != null">#{productCode},</if>
|
||
|
<if test="productSort != null">#{productSort},</if>
|
||
|
<if test="specification != null">#{specification},</if>
|
||
|
<if test="unitOfMeasure != null">#{unitOfMeasure},</if>
|
||
|
<if test="planQuantity != null">#{planQuantity},</if>
|
||
|
<if test="putQuantity != null">#{putQuantity},</if>
|
||
|
<if test="status != null">#{status},</if>
|
||
|
<if test="SAPStatus != null">#{SAPStatus},</if>
|
||
|
<if test="SAPProof != null">#{SAPProof},</if>
|
||
|
<if test="SAPMessage != null">#{SAPMessage},</if>
|
||
|
<if test="putDate != null">#{putDate},</if>
|
||
|
<if test="attr1 != null">#{attr1},</if>
|
||
|
<if test="attr2 != null">#{attr2},</if>
|
||
|
<if test="attr3 != null">#{attr3},</if>
|
||
|
<if test="attr4 != null">#{attr4},</if>
|
||
|
<if test="attr5 != null">#{attr5},</if>
|
||
|
<if test="attr6 != null">#{attr6},</if>
|
||
|
<if test="attr7 != null">#{attr7},</if>
|
||
|
<if test="attr8 != null">#{attr8},</if>
|
||
|
<if test="attr9 != null">#{attr9},</if>
|
||
|
<if test="attr10 != null">#{attr10},</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>
|
||
|
<if test="activeFlag != null">#{activeFlag},</if>
|
||
|
</trim>
|
||
|
</insert>
|
||
|
</mapper>
|