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.
501 lines
24 KiB
XML
501 lines
24 KiB
XML
<?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="insertWmsRuturnPutEmbryo">
|
|
insert into wms_ruturn_put_embryo
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<sql id="selectWmsRuturnPutEmbryoVo">
|
|
select id, factory_code, product_order, wh_code, wa_code, wl_code, product_name, product_code, product_sort, speciFication as speciFication, unit_of_measure, plan_quantity, put_quantity, status, SAP_status, SAP_proof, SAP_message, put_date, attr1, attr2, attr3, attr4, attr5, attr6, attr7, attr8, attr9, attr10, create_by, create_time, update_by, update_time from wms_ruturn_put_embryo
|
|
</sql>
|
|
|
|
<select id="selectWmsRuturnPutEmbryoList" parameterType="WmsRuturnPutEmbryo" resultMap="WmsRuturnPutEmbryoResult">
|
|
<include refid="selectWmsRuturnPutEmbryoVo"/>
|
|
<where>
|
|
<if test="factoryCode != null and factoryCode != ''">
|
|
and factory_code = #{factoryCode}
|
|
</if>
|
|
<if test="productOrder != null and productOrder != ''">
|
|
and product_order = #{productOrder}
|
|
</if>
|
|
<if test="whCode != null and whCode != ''">
|
|
and wh_code = #{whCode}
|
|
</if>
|
|
<if test="waCode != null and waCode != ''">
|
|
and wa_code = #{waCode}
|
|
</if>
|
|
<if test="wlCode != null and wlCode != ''">
|
|
and wl_code = #{wlCode}
|
|
</if>
|
|
<if test="productName != null and productName != ''">
|
|
and product_name like concat('%', #{productName}, '%')
|
|
</if>
|
|
<if test="productCode != null and productCode != ''">
|
|
and product_code = #{productCode}
|
|
</if>
|
|
<if test="productSort != null and productSort != ''">
|
|
and product_sort = #{productSort}
|
|
</if>
|
|
<if test="speciFication != null and speciFication != ''">
|
|
and specification = #{speciFication}
|
|
</if>
|
|
<if test="unitOfMeasure != null and unitOfMeasure != ''">
|
|
and unit_of_measure = #{unitOfMeasure}
|
|
</if>
|
|
<if test="planQuantity != null ">
|
|
and plan_quantity = #{planQuantity}
|
|
</if>
|
|
<if test="putQuantity != null ">
|
|
and put_quantity = #{putQuantity}
|
|
</if>
|
|
<if test="status != null and status != ''">
|
|
and status = #{status}
|
|
</if>
|
|
<if test="sapStatus != null and sapStatus != ''">
|
|
and SAP_status = #{sapStatus}
|
|
</if>
|
|
<if test="sapProof != null and sapProof != ''">
|
|
and SAP_proof = #{sapProof}
|
|
</if>
|
|
<if test="sapMessage != null and sapMessage != ''">
|
|
and SAP_message = #{sapMessage}
|
|
</if>
|
|
<if test="putDate != null ">
|
|
and put_date = #{putDate}
|
|
</if>
|
|
<if test="attr1 != null and attr1 != ''">
|
|
and attr1 = #{attr1}
|
|
</if>
|
|
<if test="attr2 != null and attr2 != ''">
|
|
and attr2 = #{attr2}
|
|
</if>
|
|
<if test="attr3 != null and attr3 != ''">
|
|
and attr3 = #{attr3}
|
|
</if>
|
|
<if test="attr4 != null and attr4 != ''">
|
|
and attr4 = #{attr4}
|
|
</if>
|
|
<if test="attr5 != null and attr5 != ''">
|
|
and attr5 = #{attr5}
|
|
</if>
|
|
<if test="attr6 != null and attr6 != ''">
|
|
and attr6 = #{attr6}
|
|
</if>
|
|
<if test="attr7 != null and attr7 != ''">
|
|
and attr7 = #{attr7}
|
|
</if>
|
|
<if test="attr8 != null and attr8 != ''">
|
|
and attr8 = #{attr8}
|
|
</if>
|
|
<if test="attr9 != null and attr9 != ''">
|
|
and attr9 = #{attr9}
|
|
</if>
|
|
<if test="attr10 != null and attr10 != ''">
|
|
and attr10 = #{attr10}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
<resultMap type="com.op.wms.domain.BaseEquipment" id="BaseEquipmentResult">
|
|
<result property="equipmentId" column="equipment_id"/>
|
|
<result property="equipmentCode" column="equipment_code"/>
|
|
<result property="equipmentName" column="equipment_name"/>
|
|
<result property="equipmentBrand" column="equipment_brand"/>
|
|
<result property="equipmentSpec" column="equipment_spec"/>
|
|
<result property="equipmentTypeId" column="equipment_type_id"/>
|
|
<result property="equipmentTypeCode" column="equipment_type_code"/>
|
|
<result property="equipmentTypeName" column="equipment_type_name"/>
|
|
<result property="workshopId" column="workshop_id"/>
|
|
<result property="workshopCode" column="workshop_code"/>
|
|
<result property="workshopName" column="workshop_name"/>
|
|
<result property="status" column="status"/>
|
|
<result property="remark" column="remark"/>
|
|
<result property="attr1" column="attr1"/>
|
|
<result property="attr2" column="attr2"/>
|
|
<result property="attr3" column="attr3"/>
|
|
<result property="attr4" column="attr4"/>
|
|
<result property="createBy" column="create_by"/>
|
|
<result property="createTime" column="create_time"/>
|
|
<result property="updateBy" column="update_by"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="unitWorkingHours" column="unit_working_hours"/>
|
|
<result property="workshopSection" column="workshop_section"/>
|
|
<result property="equipmentLocation" column="equipment_location"/>
|
|
<result property="hourlyUnitPrice" column="hourly_unit_price"/>
|
|
<result property="plcIp" column="plc_ip"/>
|
|
<result property="plcPort" column="plc_port"/>
|
|
<result property="equipmentBarcode" column="equipment_barcode"/>
|
|
<result property="equipmentBarcodeImage" column="equipment_barcode_image"/>
|
|
<result property="manufacturer" column="manufacturer"/>
|
|
<result property="supplier" column="supplier"/>
|
|
<result property="useLife" column="use_life"/>
|
|
<result property="buyTime" column="buy_time"/>
|
|
<result property="assetOriginalValue" column="asset_original_value"/>
|
|
<result property="netAssetValue" column="net_asset_value"/>
|
|
<result property="assetHead" column="asset_head"/>
|
|
<result property="fixedAssetCode" column="fixed_asset_code"/>
|
|
<result property="department" column="department"/>
|
|
<result property="sapAsset" column="sap_asset"/>
|
|
<result property="equipmentHead" column="equipment_head"/>
|
|
<result property="factoryCode" column="factory_code"/>
|
|
<result property="equipmentStatus" column="equipment_status"/>
|
|
<result property="equipmentCategory" column="equipment_category"/>
|
|
<result property="assetClassificationName" column="asset_classification_name"/>
|
|
<result property="assetDescription" column="asset_description"/>
|
|
<result property="equipmentNumber" column="equipment_number"/>
|
|
<result property="inventoryNumber" column="inventory_number"/>
|
|
<result property="unitMeasurement" column="unit_measurement"/>
|
|
<result property="sapCode" column="sap_code"/>
|
|
<result property="sapName" column="sap_name"/>
|
|
<result property="factoryWorkshop" column="factory_workshop"/>
|
|
</resultMap>
|
|
<select id="selectBaseEquipmentList" resultMap="BaseEquipmentResult" >
|
|
select
|
|
equipment_id,
|
|
equipment_code,
|
|
equipment_name,
|
|
equipment_brand,
|
|
equipment_spec,
|
|
equipment_type_id,
|
|
equipment_type_code,
|
|
equipment_type_name,
|
|
workshop_id,
|
|
workshop_code,
|
|
workshop_name,
|
|
status,
|
|
remark,
|
|
attr1,
|
|
attr2,
|
|
attr3,
|
|
attr4,
|
|
create_by,
|
|
create_time,
|
|
update_by,
|
|
update_time,
|
|
workshop_section,
|
|
equipment_location,
|
|
hourly_unit_price,
|
|
unit_working_hours,
|
|
del_flag,
|
|
plc_ip,
|
|
plc_port,
|
|
sap_asset,
|
|
equipment_barcode,
|
|
equipment_barcode_image,
|
|
manufacturer,
|
|
supplier,
|
|
use_life,
|
|
buy_time,
|
|
asset_original_value,
|
|
net_asset_value,
|
|
asset_head,
|
|
fixed_asset_code,
|
|
department,
|
|
equipment_head,
|
|
factory_code,
|
|
equipment_status,
|
|
equipment_category,
|
|
asset_classification_name,
|
|
asset_description,
|
|
equipment_number,
|
|
inventory_number,
|
|
unit_measurement,
|
|
sap_code,
|
|
sap_name,
|
|
factory_workshop
|
|
from base_equipment WHERE equipment_type_code='equ_type_bzx' AND del_flag='0'
|
|
</select>
|
|
</mapper>
|