asinkj/asinkj-biz/asinkj-amz/src/main/resources/mapper/amz/BizShipmentPlanMapper.xml

37 lines
1.3 KiB
XML
Raw Normal View History

2025-03-21 19:10:18 +08:00
<?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="org.asinkj.amz.mapper.BizShipmentPlanMapper">
2025-05-10 14:29:20 +08:00
<update id="updateByFbaShipmentId">
<foreach collection="list" item="item" index="index" separator=";">
UPDATE biz_shipment_plan
<set>
<if test="item.boxQuantity != null">
box_quantity = #{item.boxQuantity},
</if>
<if test="item.boxQuantity != null">
box_size = #{item.boxSize},
</if>
<if test="item.boxQuantity != null">
vendor_weight = #{item.vendorWeight},
</if>
<if test="item.boxQuantity != null">
set_total = #{item.setTotal},
</if>
</set>
WHERE shipment_id = #{item.shipmentId}
</foreach>
</update>
2025-03-21 19:10:18 +08:00
<select id="selectExistingShipmentIds" resultType="java.lang.String">
2025-05-10 14:29:20 +08:00
SELECT shipment_id
2025-03-21 19:10:18 +08:00
FROM biz_shipment_plan
WHERE del_flag = '0'
2025-05-10 14:29:20 +08:00
WHERE shipment_id IN
2025-03-21 19:10:18 +08:00
<foreach item="id" collection="batchIds" open="(" separator="," close=")">
#{id}
</foreach>
</select>
</mapper>