123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- <?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.zkqy.amichi.mapper.MaterialRetentionLogMapper">
- <resultMap type="com.zkqy.amichi.domain.MaterialRetentionLog" id="MaterialRetentionLogResult">
- <result property="id" column="id" />
- <result property="materialCode" column="material_code" />
- <result property="materialName" column="material_name" />
- <result property="specification" column="specification" />
- <result property="model" column="model" />
- <result property="unit" column="unit" />
- <result property="actualQuantityIssued" column="actual_quantity_issued" />
- <result property="deliveryWarehouse" column="delivery_warehouse" />
- <result property="ckNumber" column="ck_number" />
- <result property="documentRemarks" column="document_remarks" />
- <result property="documentType" column="document_type" />
- <result property="inventoryOrganization" column="inventory_organization" />
- <result property="receivingTissue" column="receiving_tissue" />
- <result property="inventoryDirection" column="inventory_direction" />
- <result property="dateOfDelivery" column="date_of_delivery" />
- <result property="materialsRequisitionDepartment" column="materials_requisition_department" />
- <result property="materialTaker" column="material_taker" />
- <result property="businessType" column="business_type" />
- <result property="ownerType" column="owner_type" />
- <result property="owner" column="owner" />
- <result property="documentStatus" column="document_status" />
- <result property="detailedRemarks" column="detailed_remarks" />
- <result property="createById" column="create_by_id" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="updateById" column="update_by_id" />
- <result property="updateBy" column="update_by" />
- <result property="updateTime" column="update_time" />
- <result property="delFlag" column="del_flag" />
- <result property="productCode" column="product_code" />
- <result property="productName" column="product_name" />
- <result property="productModel" column="product_model" />
- <result property="productSpecification" column="product_specification" />
- <result property="materialType" column="material_type" />
- <result property="process" column="process" />
- <result property="orderNumber" column="order_number" />
- <result property="productionOrderNumber" column="production_order_number" />
- </resultMap>
- <sql id="selectMaterialRetentionLogVo">
- select id, material_code, material_name, specification, model, unit,
- CASE
- WHEN CAST(actual_quantity_issued AS CHAR) LIKE '%.0000' THEN FLOOR(actual_quantity_issued)
- ELSE actual_quantity_issued
- END AS actual_quantity_issued,delivery_warehouse, ck_number, document_remarks,
- document_type, inventory_organization, receiving_tissue, inventory_direction, date_of_delivery, materials_requisition_department,
- material_taker, business_type, owner_type, owner, document_status, detailed_remarks, create_by_id, create_by, create_time,
- update_by_id, update_by, update_time, del_flag,product_code,product_name,product_model,product_specification,material_type,process,order_number,production_order_number from fjqydb.material_retention_log
- </sql>
- <select id="selectMaterialRetentionLogList" parameterType="com.zkqy.amichi.domain.MaterialRetentionLog" resultMap="MaterialRetentionLogResult">
- <include refid="selectMaterialRetentionLogVo"/>
- <where>
- <if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
- <if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
- <if test="specification != null and specification != ''"> and specification = #{specification}</if>
- <if test="model != null and model != ''"> and model = #{model}</if>
- <if test="unit != null and unit != ''"> and unit = #{unit}</if>
- <if test="actualQuantityIssued != null and actualQuantityIssued != ''"> and actual_quantity_issued = #{actualQuantityIssued}</if>
- <if test="deliveryWarehouse != null and deliveryWarehouse != ''"> and delivery_warehouse = #{deliveryWarehouse}</if>
- <if test="ckNumber != null and ckNumber != ''"> and ck_number = #{ckNumber}</if>
- <if test="documentRemarks != null and documentRemarks != ''"> and document_remarks = #{documentRemarks}</if>
- <if test="documentType != null and documentType != ''"> and document_type = #{documentType}</if>
- <if test="inventoryOrganization != null and inventoryOrganization != ''"> and inventory_organization = #{inventoryOrganization}</if>
- <if test="receivingTissue != null and receivingTissue != ''"> and receiving_tissue = #{receivingTissue}</if>
- <if test="inventoryDirection != null and inventoryDirection != ''"> and inventory_direction = #{inventoryDirection}</if>
- <if test="dateOfDelivery != null and dateOfDelivery != ''"> and date_of_delivery = #{dateOfDelivery}</if>
- <if test="materialsRequisitionDepartment != null and materialsRequisitionDepartment != ''"> and materials_requisition_department = #{materialsRequisitionDepartment}</if>
- <if test="materialTaker != null and materialTaker != ''"> and material_taker = #{materialTaker}</if>
- <if test="businessType != null and businessType != ''"> and business_type = #{businessType}</if>
- <if test="ownerType != null and ownerType != ''"> and owner_type = #{ownerType}</if>
- <if test="owner != null and owner != ''"> and owner = #{owner}</if>
- <if test="documentStatus != null and documentStatus != ''"> and document_status = #{documentStatus}</if>
- <if test="detailedRemarks != null and detailedRemarks != ''"> and detailed_remarks = #{detailedRemarks}</if>
- <if test="createById != null "> and create_by_id = #{createById}</if>
- <if test="updateById != null "> and update_by_id = #{updateById}</if>
- <if test="productCode != null "> and product_code = #{productCode}</if>
- <if test="productName != null "> and product_name = #{productName}</if>
- <if test="process!=null">and process=#{process}</if>
- <if test="productModel != null "> and product_model = #{productModel}</if>
- <if test="productSpecification != null "> and product_specification = #{productSpecification}</if>
- <if test="orderNumber!=null">and order_number = #{orderNumber}</if>
- <if test="productionOrderNumber!=null">and production_order_number =#{productionOrderNumber}</if>
- <if test="createTimeString != null and createTimeString[0] != null and createTimeString[0] != ''">
- and DATE_FORMAT(create_time,'%Y-%m-%d') <![CDATA[ >= ]]> #{createTimeString[0]}
- </if>
- <if test="createTimeString != null and createTimeString[1] != null and createTimeString[1] != ''">
- and DATE_FORMAT(create_time,'%Y-%m-%d') <![CDATA[ <= ]]> #{createTimeString[1]}
- </if>
- </where>
- order by create_time desc
- </select>
- <sql id="selectMaterialRetentionLogVo2">
- SELECT
- mrl.id,
- mrl.material_code,
- mrl.material_name,
- mrl.specification,
- mrl.model,
- mrl.unit,
- CASE
- WHEN CAST( mrl.actual_quantity_issued AS CHAR ) LIKE '%.0000' THEN
- FLOOR( mrl.actual_quantity_issued ) ELSE mrl.actual_quantity_issued
- END AS actual_quantity_issued,
- mrl.delivery_warehouse,
- mrl.ck_number,
- mrl.document_remarks,
- mrl.document_type,
- mrl.inventory_organization,
- mrl.receiving_tissue,
- mrl.inventory_direction,
- mrl.date_of_delivery,
- mrl.materials_requisition_department,
- mrl.material_taker,
- mrl.business_type,
- mrl.owner_type,
- mrl.OWNER,
- mrl.document_status,
- mrl.detailed_remarks,
- mrl.create_by_id,
- mrl.create_by,
- mrl.create_time,
- mrl.update_by_id,
- mrl.update_by,
- mrl.update_time,
- mrl.del_flag,
- mrl.product_code,
- mrl.product_name,
- mrl.product_model,
- mrl.product_specification,
- mrl.material_type,
- mrl.process,
- mrl.order_number,
- mrl.production_order_number
- FROM
- fjqydb.material_retention_log AS mrl
- LEFT JOIN fjqydb.plan_task_details AS ptd ON ptd.demand_document = mrl.production_order_number
- </sql>
- <select id="selectMaterialRetentionLogListNoProduction" parameterType="com.zkqy.amichi.domain.MaterialRetentionLog" resultMap="MaterialRetentionLogResult">
- <include refid="selectMaterialRetentionLogVo2"/>
- <where>
- <if test="materialCode != null and materialCode != ''"> and ptd.material_code = #{materialCode}</if>
- <if test="materialName != null and materialName != ''"> and ptd.material_name like concat('%', #{materialName}, '%')</if>
- <if test="specification != null and specification != ''"> and ptd.specification = #{specification}</if>
- <if test="model != null and model != ''"> and ptd.model = #{model}</if>
- <if test="unit != null and unit != ''"> and ptd.unit = #{unit}</if>
- <if test="actualQuantityIssued != null and actualQuantityIssued != ''"> and ptd.actual_quantity_issued = #{actualQuantityIssued}</if>
- <if test="deliveryWarehouse != null and deliveryWarehouse != ''"> and ptd.delivery_warehouse = #{deliveryWarehouse}</if>
- <if test="ckNumber != null and ckNumber != ''"> and ptd.ck_number = #{ckNumber}</if>
- <if test="documentRemarks != null and documentRemarks != ''"> and ptd.document_remarks = #{documentRemarks}</if>
- <if test="documentType != null and documentType != ''"> and ptd.document_type = #{documentType}</if>
- <if test="inventoryOrganization != null and inventoryOrganization != ''"> and ptd.inventory_organization = #{inventoryOrganization}</if>
- <if test="receivingTissue != null and receivingTissue != ''"> and ptd.receiving_tissue = #{receivingTissue}</if>
- <if test="inventoryDirection != null and inventoryDirection != ''"> and ptd.inventory_direction = #{inventoryDirection}</if>
- <if test="dateOfDelivery != null and dateOfDelivery != ''"> and ptd.date_of_delivery = #{dateOfDelivery}</if>
- <if test="materialsRequisitionDepartment != null and materialsRequisitionDepartment != ''"> and ptd.materials_requisition_department = #{materialsRequisitionDepartment}</if>
- <if test="materialTaker != null and materialTaker != ''"> and ptd.material_taker = #{materialTaker}</if>
- <if test="businessType != null and businessType != ''"> and ptd.business_type = #{businessType}</if>
- <if test="ownerType != null and ownerType != ''"> and ptd.owner_type = #{ownerType}</if>
- <if test="owner != null and owner != ''"> and ptd.owner = #{owner}</if>
- <if test="documentStatus != null and documentStatus != ''"> and ptd.document_status = #{documentStatus}</if>
- <if test="detailedRemarks != null and detailedRemarks != ''"> and ptd.detailed_remarks = #{detailedRemarks}</if>
- <if test="createById != null "> and ptd.create_by_id = #{createById}</if>
- <if test="updateById != null "> and ptd.update_by_id = #{updateById}</if>
- <if test="productCode != null "> and ptd.product_code = #{productCode}</if>
- <if test="productName != null "> and ptd.product_name = #{productName}</if>
- <if test="productModel != null "> and ptd.product_model = #{productModel}</if>
- <if test="productSpecification != null "> and ptd.product_specification = #{productSpecification}</if>
- <if test="orderNumber!=null">and ptd.order_number = #{orderNumber}</if>
- <if test="productionOrderNumber!=null">and ptd.production_order_number =#{productionOrderNumber}</if>
- and ptd.status !=3
- </where>
- </select>
- <select id="selectMaterialRetentionLogById" parameterType="Long" resultMap="MaterialRetentionLogResult">
- <include refid="selectMaterialRetentionLogVo"/>
- where id = #{id}
- </select>
- <insert id="insertMaterialRetentionLog" parameterType="com.zkqy.amichi.domain.MaterialRetentionLog" useGeneratedKeys="true" keyProperty="id">
- insert into fjqydb.material_retention_log
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="materialCode != null and materialCode != ''">material_code,</if>
- <if test="materialName != null and materialName != ''">material_name,</if>
- <if test="specification != null">specification,</if>
- <if test="model != null">model,</if>
- <if test="unit != null">unit,</if>
- <if test="actualQuantityIssued != null">actual_quantity_issued,</if>
- <if test="deliveryWarehouse != null">delivery_warehouse,</if>
- <if test="ckNumber != null">ck_number,</if>
- <if test="documentRemarks != null">document_remarks,</if>
- <if test="documentType != null">document_type,</if>
- <if test="inventoryOrganization != null">inventory_organization,</if>
- <if test="receivingTissue != null">receiving_tissue,</if>
- <if test="inventoryDirection != null">inventory_direction,</if>
- <if test="dateOfDelivery != null">date_of_delivery,</if>
- <if test="materialsRequisitionDepartment != null">materials_requisition_department,</if>
- <if test="materialTaker != null">material_taker,</if>
- <if test="businessType != null">business_type,</if>
- <if test="ownerType != null">owner_type,</if>
- <if test="owner != null">owner,</if>
- <if test="documentStatus != null">document_status,</if>
- <if test="detailedRemarks != null">detailed_remarks,</if>
- <if test="createById != null">create_by_id,</if>
- <if test="createBy != null">create_by,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateById != null">update_by_id,</if>
- <if test="updateBy != null">update_by,</if>
- <if test="updateTime != null">update_time,</if>
- <if test="delFlag != null">del_flag,</if>
- <if test="productCode != null ">product_code,</if>
- <if test="productName != null ">product_name,</if>
- <if test="prouuctModel != null ">prouuct_model,</if>
- <if test="productSpecification != null ">product_specification,</if>
- <if test="item.orderNumber!=null">order_number,</if>
- <if test="item.productionOrderNumber!=null">production_order_number,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="materialCode != null and materialCode != ''">#{materialCode},</if>
- <if test="materialName != null and materialName != ''">#{materialName},</if>
- <if test="specification != null">#{specification},</if>
- <if test="model != null">#{model},</if>
- <if test="unit != null">#{unit},</if>
- <if test="actualQuantityIssued != null">#{actualQuantityIssued},</if>
- <if test="deliveryWarehouse != null">#{deliveryWarehouse},</if>
- <if test="ckNumber != null">#{ckNumber},</if>
- <if test="documentRemarks != null">#{documentRemarks},</if>
- <if test="documentType != null">#{documentType},</if>
- <if test="inventoryOrganization != null">#{inventoryOrganization},</if>
- <if test="receivingTissue != null">#{receivingTissue},</if>
- <if test="inventoryDirection != null">#{inventoryDirection},</if>
- <if test="dateOfDelivery != null">#{dateOfDelivery},</if>
- <if test="materialsRequisitionDepartment != null">#{materialsRequisitionDepartment},</if>
- <if test="materialTaker != null">#{materialTaker},</if>
- <if test="businessType != null">#{businessType},</if>
- <if test="ownerType != null">#{ownerType},</if>
- <if test="owner != null">#{owner},</if>
- <if test="documentStatus != null">#{documentStatus},</if>
- <if test="detailedRemarks != null">#{detailedRemarks},</if>
- <if test="createById != null">#{createById},</if>
- <if test="createBy != null">#{createBy},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateById != null">#{updateById},</if>
- <if test="updateBy != null">#{updateBy},</if>
- <if test="updateTime != null">#{updateTime},</if>
- <if test="delFlag != null">#{delFlag},</if>
- <if test="productCode != null ">#{productCode},</if>
- <if test="productName != null ">#{productName},</if>
- <if test="prouuctModel != null ">#{prouuctModel},</if>
- <if test="productSpecification != null ">#{productSpecification}</if>
- <if test="item.orderNumber!=null">#{orderNumber},</if>
- <if test="item.productionOrderNumber!=null">#{productionOrderNumber},</if>
- </trim>
- </insert>
- <insert id="insertMaterialRetentionLogBatch" parameterType="com.zkqy.amichi.jd.domain.MaterialRetentionLogVo" useGeneratedKeys="true" keyProperty="id">
- <foreach collection ="list" item="item" separator =";">
- INSERT INTO fjqydb.material_retention_log
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="item.materialCode != null and item.materialCode != ''">material_code,</if>
- <if test="item.materialName != null and item.materialName != ''">material_name,</if>
- <if test="item.specification != null">specification,</if>
- <if test="item.model != null">model,</if>
- <if test="item.unit != null">unit,</if>
- <if test="item.actualQuantityIssued != null">actual_quantity_issued,</if>
- <if test="item.deliveryWarehouse != null">delivery_warehouse,</if>
- <if test="item.ckNumber != null">ck_number,</if>
- <if test="item.documentRemarks != null">document_remarks,</if>
- <if test="item.documentType != null">document_type,</if>
- <if test="item.inventoryOrganization != null">inventory_organization,</if>
- <if test="item.receivingTissue != null">receiving_tissue,</if>
- <if test="item.inventoryDirection != null">inventory_direction,</if>
- <if test="item.dateOfDelivery != null">date_of_delivery,</if>
- <if test="item.materialsRequisitionDepartment != null">materials_requisition_department,</if>
- <if test="item.materialTaker != null">material_taker,</if>
- <if test="item.businessType != null">business_type,</if>
- <if test="item.ownerType != null">owner_type,</if>
- <if test="item.owner != null">owner,</if>
- <if test="item.documentStatus != null">document_status,</if>
- <if test="item.detailedRemarks != null">detailed_remarks,</if>
- <if test="item.createById != null">create_by_id,</if>
- <if test="item.createBy!= null">create_by,</if>
- <if test="item.createTime != null">create_time,</if>
- <if test="item.updateById != null">update_by_id,</if>
- <if test="item.updateBy != null">update_by,</if>
- <if test="item.updateTime != null">update_time,</if>
- <if test="item.delFlag != null">del_flag,</if>
- <if test="item.productCode != null ">product_code,</if>
- <if test="item.productName != null ">product_name,</if>
- <if test="item.productModel != null ">product_model,</if>
- <if test="item.productSpecification != null ">product_specification,</if>
- <if test="item.materialType!=null">material_type,</if>
- <if test="item.flowSequenceNumber!=null">flow_sequence_number,</if>
- <if test="item.process!=null">process,</if>
- <if test="item.orderNumber!=null">order_number,</if>
- <if test="item.productionOrderNumber!=null">production_order_number,</if>
- <if test="item.mesprocess!=null">mesprocess</if>
- </trim>
- VALUES
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="item.materialCode != null and item.materialCode != ''">#{item.materialCode},</if>
- <if test="item.materialName != null and item.materialName != ''">#{item.materialName},</if>
- <if test="item.specification != null">#{item.specification},</if>
- <if test="item.model != null">#{item.model},</if>
- <if test="item.unit != null">#{item.unit},</if>
- <if test="item.actualQuantityIssued != null">#{item.actualQuantityIssued},</if>
- <if test="item.deliveryWarehouse != null">#{item.deliveryWarehouse},</if>
- <if test="item.ckNumber != null">#{item.ckNumber},</if>
- <if test="item.documentRemarks != null">#{item.documentRemarks},</if>
- <if test="item.documentType != null">#{item.documentType},</if>
- <if test="item.inventoryOrganization != null">#{item.inventoryOrganization},</if>
- <if test="item.receivingTissue != null">#{item.receivingTissue},</if>
- <if test="item.inventoryDirection != null">#{item.inventoryDirection},</if>
- <if test="item.dateOfDelivery != null">#{item.dateOfDelivery},</if>
- <if test="item.materialsRequisitionDepartment != null">#{item.materialsRequisitionDepartment},</if>
- <if test="item.materialTaker != null">#{item.materialTaker},</if>
- <if test="item.businessType != null">#{item.businessType},</if>
- <if test="item.ownerType != null">#{item.ownerType},</if>
- <if test="item.owner != null">#{item.owner},</if>
- <if test="item.documentStatus != null">#{item.documentStatus},</if>
- <if test="item.detailedRemarks != null">#{item.detailedRemarks},</if>
- <if test="item.createById != null">#{item.createById},</if>
- <if test="item.createBy != null">#{item.createBy},</if>
- <if test="item.createTime != null">#{item.createTime},</if>
- <if test="item.updateById != null">#{item.updateById},</if>
- <if test="item.updateBy != null">#{item.updateBy},</if>
- <if test="item.updateTime != null">#{item.updateTime},</if>
- <if test="item.delFlag != null">#{item.delFlag},</if>
- <if test="item.productCode != null ">#{item.productCode},</if>
- <if test="item.productName != null ">#{item.productName},</if>
- <if test="item.productModel != null ">#{item.productModel},</if>
- <if test="item.productSpecification != null ">#{item.productSpecification},</if>
- <if test="item.materialType!=null">#{item.materialType},</if>
- <if test="item.flowSequenceNumber!=null">#{item.flowSequenceNumber},</if>
- <if test="item.process!=null">#{item.process},</if>
- <if test="item.orderNumber!=null">#{item.orderNumber},</if>
- <if test="item.productionOrderNumber!=null">#{item.productionOrderNumber},</if>
- <if test="item.mesprocess!=null">#{item.mesprocess},</if>
- </trim>
- </foreach>
- </insert>
- <update id="updateMaterialRetentionLog" parameterType="com.zkqy.amichi.domain.MaterialRetentionLog">
- update fjqydb.material_retention_log
- <trim prefix="SET" suffixOverrides=",">
- <if test="materialCode != null and materialCode != ''">material_code = #{materialCode},</if>
- <if test="materialName != null and materialName != ''">material_name = #{materialName},</if>
- <if test="specification != null">specification = #{specification},</if>
- <if test="model != null">model = #{model},</if>
- <if test="unit != null">unit = #{unit},</if>
- <if test="actualQuantityIssued != null">actual_quantity_issued = #{actualQuantityIssued},</if>
- <if test="deliveryWarehouse != null">delivery_warehouse = #{deliveryWarehouse},</if>
- <if test="ckNumber != null">ck_number = #{ckNumber},</if>
- <if test="documentRemarks != null">document_remarks = #{documentRemarks},</if>
- <if test="documentType != null">document_type = #{documentType},</if>
- <if test="inventoryOrganization != null">inventory_organization = #{inventoryOrganization},</if>
- <if test="receivingTissue != null">receiving_tissue = #{receivingTissue},</if>
- <if test="inventoryDirection != null">inventory_direction = #{inventoryDirection},</if>
- <if test="dateOfDelivery != null">date_of_delivery = #{dateOfDelivery},</if>
- <if test="materialsRequisitionDepartment != null">materials_requisition_department = #{materialsRequisitionDepartment},</if>
- <if test="materialTaker != null">material_taker = #{materialTaker},</if>
- <if test="businessType != null">business_type = #{businessType},</if>
- <if test="ownerType != null">owner_type = #{ownerType},</if>
- <if test="owner != null">owner = #{owner},</if>
- <if test="documentStatus != null">document_status = #{documentStatus},</if>
- <if test="detailedRemarks != null">detailed_remarks = #{detailedRemarks},</if>
- <if test="createById != null">create_by_id = #{createById},</if>
- <if test="createBy != null">create_by = #{createBy},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateById != null">update_by_id = #{updateById},</if>
- <if test="updateBy != null">update_by = #{updateBy},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- <if test="delFlag != null">del_flag = #{delFlag},</if>
- <if test="productCode != null ">product_code = #{productCode}</if>
- <if test="productName != null ">product_name = #{productName}</if>
- <if test="productModel != null ">product_model = #{productModel}</if>
- <if test="productSpecification != null ">product_specification = #{productSpecification}</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteMaterialRetentionLogById" parameterType="Long">
- delete from fjqydb.material_retention_log where id = #{id}
- </delete>
- <delete id="deleteMaterialRetentionLogByIds" parameterType="String">
- delete from fjqydb.material_retention_log where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|