|
|
|
<?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.WmsSellOutEmbryoMapper">
|
|
|
|
|
|
|
|
<resultMap type="WmsSellOutEmbryo" id="WmsSellOutEmbryoResult">
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
<result property="deliveryOrder" column="delivery_order"/>
|
|
|
|
<result property="itemNumber" column="Item_number"/>
|
|
|
|
<result property="factoryCode" column="factory_code"/>
|
|
|
|
<result property="whCode" column="wh_code"/>
|
|
|
|
<result property="waCode" column="wa_code"/>
|
|
|
|
<result property="wlCode" column="wl_code"/>
|
|
|
|
<result property="deliveryPlace" column="delivery_place"/>
|
|
|
|
<result property="productName" column="product_name"/>
|
|
|
|
<result property="productCode" column="product_code"/>
|
|
|
|
<result property="productSort" column="product_sort"/>
|
|
|
|
<result property="specification" column="specification"/>
|
|
|
|
<result property="unitOfMeasure" column="unit_of_measure"/>
|
|
|
|
<result property="lotNumber" column="lot_number"/>
|
|
|
|
<result property="planQuantity" column="plan_quantity"/>
|
|
|
|
<result property="outQuantity" column="out_quantity"/>
|
|
|
|
<result property="status" column="status"/>
|
|
|
|
<result property="sapStatus" column="SAP_status"/>
|
|
|
|
<result property="sapProof" column="SAP_proof"/>
|
|
|
|
<result property="sapMessage" column="SAP_message"/>
|
|
|
|
<result property="outDate" column="out_date"/>
|
|
|
|
<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="attr8"/>
|
|
|
|
<result property="attr9" column="attr9"/>
|
|
|
|
<result property="attr10" column="attr10"/>
|
|
|
|
<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="remark" column="remark"/>
|
|
|
|
<result property="activeFlag" column="active_flag"/>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap type="WmsAllocationOutEmbryo" id="WmsAllocationOutEmbryoResult">
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
<result property="deliveryOrder" column="delivery_order"/>
|
|
|
|
<result property="itemNumber" column="Item_number"/>
|
|
|
|
<result property="factoryCode" column="factory_code"/>
|
|
|
|
<result property="whCode" column="wh_code"/>
|
|
|
|
<result property="waCode" column="wa_code"/>
|
|
|
|
<result property="wlCode" column="wl_code"/>
|
|
|
|
<result property="deliveryPlace" column="delivery_place"/>
|
|
|
|
<result property="productName" column="product_name"/>
|
|
|
|
<result property="productCode" column="product_code"/>
|
|
|
|
<result property="productSort" column="product_sort"/>
|
|
|
|
<result property="specification" column="specification"/>
|
|
|
|
<result property="unitOfMeasure" column="unit_of_measure"/>
|
|
|
|
<result property="lotNumber" column="lot_number"/>
|
|
|
|
<result property="planQuantity" column="plan_quantity"/>
|
|
|
|
<result property="outQuantity" column="out_quantity"/>
|
|
|
|
<result property="status" column="status"/>
|
|
|
|
<result property="sapStatus" column="SAP_status"/>
|
|
|
|
<result property="sapProof" column="SAP_proof"/>
|
|
|
|
<result property="sapMessage" column="SAP_message"/>
|
|
|
|
<result property="outDate" column="out_date"/>
|
|
|
|
<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="attr8"/>
|
|
|
|
<result property="attr9" column="attr9"/>
|
|
|
|
<result property="attr10" column="attr10"/>
|
|
|
|
<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="remark" column="remark"/>
|
|
|
|
<result property="activeFlag" column="active_flag"/>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="selectWmsSellOutEmbryoVo">
|
|
|
|
select id, delivery_order, Item_number,active_flag, factory_code, wh_code, wa_code, wl_code, delivery_place, product_name, product_code, product_sort, specification, unit_of_measure, lot_number, plan_quantity, out_quantity, status, SAP_status, SAP_proof, SAP_message, out_date, attr1, attr2, attr3, attr4, attr5, attr6, attr7, attr8, attr9, attr10, create_by, create_time, update_by, update_time, remark from wms_sell_out_embryo
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectWmsSellOutEmbryoList" parameterType="WmsSellOutEmbryo" resultMap="WmsSellOutEmbryoResult">
|
|
|
|
<include refid="selectWmsSellOutEmbryoVo"/>
|
|
|
|
<where>
|
|
|
|
<if test="deliveryOrder != null and deliveryOrder != ''">and delivery_order = #{deliveryOrder}</if>
|
|
|
|
<if test="itemNumber != null and itemNumber != ''">and Item_number = #{itemNumber}</if>
|
|
|
|
<if test="factoryCode != null and factoryCode != ''">and factory_code = #{factoryCode}</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="deliveryPlace != null and deliveryPlace != ''">and delivery_place = #{deliveryPlace}</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="lotNumber != null and lotNumber != ''">and lot_number = #{lotNumber}</if>
|
|
|
|
<if test="planQuantity != null ">and plan_quantity = #{planQuantity}</if>
|
|
|
|
<if test="outQuantity != null ">and out_quantity = #{outQuantity}</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="outDate != null ">and out_date = #{outDate}</if>
|
|
|
|
<if test="activeFlag != null and activeFlag != ''">and active_flag = #{activeFlag}</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>
|
|
|
|
|
|
|
|
<select id="selectWmsSellOutEmbryoById" parameterType="String" resultMap="WmsSellOutEmbryoResult">
|
|
|
|
<include refid="selectWmsSellOutEmbryoVo"/>
|
|
|
|
where id = #{id}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<!-- 根据订单号和产品编码查询-->
|
|
|
|
<select id="selectWmsSellOutEmbryoByOrderCodeAndProductCode"
|
|
|
|
resultMap="WmsSellOutEmbryoResult">
|
|
|
|
SELECT
|
|
|
|
id,product_name,Item_number,factory_code,wh_code,wa_code,wl_code,delivery_place,
|
|
|
|
product_sort,specification,unit_of_measure,lot_number,plan_quantity,out_quantity,status,
|
|
|
|
SAP_status,SAP_proof,SAP_message,out_date,attr1,attr2,attr3,attr4,attr5,
|
|
|
|
attr6,attr7,attr8,attr9,attr10,create_by,create_time,update_by,update_time,remark
|
|
|
|
FROM
|
|
|
|
wms_sell_out_embryo
|
|
|
|
WHERE
|
|
|
|
delivery_order = #{deliveryOrder} AND product_code = #{productCode}
|
|
|
|
</select>
|
|
|
|
<!-- 根据备货单号查询下面的产品编码-->
|
|
|
|
<select id="selectWmsSellOutEmbryoByDeliveryOrder" resultMap="WmsSellOutEmbryoResult">
|
|
|
|
select product_name,product_code from wms_sell_out_embryo where delivery_order = #{deliveryOrder}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<insert id="insertWmsSellOutEmbryo" parameterType="WmsSellOutEmbryo">
|
|
|
|
insert into wms_sell_out_embryo
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">id,</if>
|
|
|
|
<if test="deliveryOrder != null">delivery_order,</if>
|
|
|
|
<if test="itemNumber != null">Item_number,</if>
|
|
|
|
<if test="factoryCode != null">factory_code,</if>
|
|
|
|
<if test="whCode != null">wh_code,</if>
|
|
|
|
<if test="waCode != null">wa_code,</if>
|
|
|
|
<if test="wlCode != null">wl_code,</if>
|
|
|
|
<if test="deliveryPlace != null">delivery_place,</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="lotNumber != null">lot_number,</if>
|
|
|
|
<if test="planQuantity != null">plan_quantity,</if>
|
|
|
|
<if test="outQuantity != null">out_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="outDate != null">out_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="remark != null">remark,</if>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">#{id},</if>
|
|
|
|
<if test="deliveryOrder != null">#{deliveryOrder},</if>
|
|
|
|
<if test="itemNumber != null">#{itemNumber},</if>
|
|
|
|
<if test="factoryCode != null">#{factoryCode},</if>
|
|
|
|
<if test="whCode != null">#{whCode},</if>
|
|
|
|
<if test="waCode != null">#{waCode},</if>
|
|
|
|
<if test="wlCode != null">#{wlCode},</if>
|
|
|
|
<if test="deliveryPlace != null">#{deliveryPlace},</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="lotNumber != null">#{lotNumber},</if>
|
|
|
|
<if test="planQuantity != null">#{planQuantity},</if>
|
|
|
|
<if test="outQuantity != null">#{outQuantity},</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="outDate != null">#{outDate},</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="remark != null">#{remark},</if>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<update id="updateWmsSellOutEmbryo" parameterType="WmsSellOutEmbryo">
|
|
|
|
update wms_sell_out_embryo
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<if test="deliveryOrder != null">delivery_order = #{deliveryOrder},</if>
|
|
|
|
<if test="itemNumber != null">Item_number = #{itemNumber},</if>
|
|
|
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
|
|
|
<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="deliveryPlace != null">delivery_place = #{deliveryPlace},</if>
|
|
|
|
<if test="productName != null">product_name = #{productName},</if>
|
|
|
|
<if test="productCode != null">product_code = #{productCode},</if>
|
|
|
|
<if test="productSort != null">product_sort = #{productSort},</if>
|
|
|
|
<if test="specification != null">specification = #{specification},</if>
|
|
|
|
<if test="unitOfMeasure != null">unit_of_measure = #{unitOfMeasure},</if>
|
|
|
|
<if test="lotNumber != null">lot_number = #{lotNumber},</if>
|
|
|
|
<if test="planQuantity != null">plan_quantity = #{planQuantity},</if>
|
|
|
|
<if test="outQuantity != null">out_quantity = #{outQuantity},</if>
|
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
<if test="sapStatus != null">SAP_status = #{sapStatus},</if>
|
|
|
|
<if test="sapProof != null">SAP_proof = #{sapProof},</if>
|
|
|
|
<if test="sapMessage != null">SAP_message = #{sapMessage},</if>
|
|
|
|
<if test="outDate != null">out_date = #{outDate},</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="remark != null">remark = #{remark},</if>
|
|
|
|
</trim>
|
|
|
|
where id = #{id}
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<delete id="deleteWmsSellOutEmbryoById" parameterType="String">
|
|
|
|
delete from wms_sell_out_embryo where id = #{id}
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
<delete id="deleteWmsSellOutEmbryoByIds" parameterType="String">
|
|
|
|
delete from wms_sell_out_embryo where id in
|
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
#{id}
|
|
|
|
</foreach>
|
|
|
|
</delete>
|
|
|
|
<select id="selectWmsAllocationOutEmbryoList" resultMap="WmsSellOutEmbryoResult">
|
|
|
|
SELECT
|
|
|
|
id,
|
|
|
|
delivery_order,
|
|
|
|
Item_number,
|
|
|
|
active_flag,
|
|
|
|
factory_code,
|
|
|
|
wh_code,
|
|
|
|
wa_code,
|
|
|
|
wl_code,
|
|
|
|
delivery_place,
|
|
|
|
product_name,
|
|
|
|
product_code,
|
|
|
|
product_sort,
|
|
|
|
specification,
|
|
|
|
unit_of_measure,
|
|
|
|
lot_number,
|
|
|
|
plan_quantity,
|
|
|
|
out_quantity,
|
|
|
|
status,
|
|
|
|
SAP_status,
|
|
|
|
SAP_proof,
|
|
|
|
SAP_message,
|
|
|
|
out_date,
|
|
|
|
attr1,
|
|
|
|
attr2,
|
|
|
|
attr3,
|
|
|
|
attr4,
|
|
|
|
attr5,
|
|
|
|
attr6,
|
|
|
|
attr7,
|
|
|
|
attr8,
|
|
|
|
attr9,
|
|
|
|
attr10,
|
|
|
|
create_by,
|
|
|
|
create_time,
|
|
|
|
update_by,
|
|
|
|
update_time,
|
|
|
|
remark
|
|
|
|
FROM
|
|
|
|
wms_allocation_out_embryo
|
|
|
|
<where>
|
|
|
|
<if test="deliveryOrder != null and deliveryOrder != ''">and delivery_order = #{deliveryOrder}</if>
|
|
|
|
<if test="itemNumber != null and itemNumber != ''">and Item_number = #{itemNumber}</if>
|
|
|
|
<if test="factoryCode != null and factoryCode != ''">and factory_code = #{factoryCode}</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="deliveryPlace != null and deliveryPlace != ''">and delivery_place = #{deliveryPlace}</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="lotNumber != null and lotNumber != ''">and lot_number = #{lotNumber}</if>
|
|
|
|
<if test="planQuantity != null ">and plan_quantity = #{planQuantity}</if>
|
|
|
|
<if test="outQuantity != null ">and out_quantity = #{outQuantity}</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="outDate != null ">and out_date = #{outDate}</if>
|
|
|
|
<if test="activeFlag != null and activeFlag != ''">and active_flag = #{activeFlag}</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>
|
|
|
|
</mapper>
|