| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?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="cn.iocoder.yudao.module.order.dal.mysql.ShipmentDetailMapper">
- <!-- 根据主表ID查询明细列表 -->
- <select id="selectDetailsByMasterId" resultType="cn.iocoder.yudao.module.order.dal.dataobject.ShipmentDetailDO">
- SELECT
- RecID as recId,
- Domain as domain,
- Id as id,
- Line as line,
- OrdNbr as ordNbr,
- OrdLine as ordLine,
- ContainerItem as containerItem,
- Descr as descr,
- UM as um,
- Location as location,
- LotSerial as lotSerial,
- QtyToShip as qtyToShip,
- PickingQty as pickingQty,
- RealQty as realQty,
- Status as status,
- Remark as remark,
- ShType as shType,
- Typed as typed,
- IsActive as isActive,
- IsConfirm as isConfirm,
- CreateUser as createUser,
- CreateTime as createTime,
- UpdateUser as updateUser,
- UpdateTime as updateTime,
- ASNBOLShipperRecID as asnbolShipperRecId,
- ShipDate as shipDate,
- CustPO as custPo,
- Price as price,
- GrossWeight as grossWeight,
- NetWeight as netWeight,
- Volume as volume
- FROM ASNBOLShipperDetail
- WHERE Id = #{id} AND Domain = #{domain} AND IsActive = 1
- ORDER BY Line
- </select>
- <!-- 根据主表ID删除明细 -->
- <update id="deleteByMasterId">
- UPDATE ASNBOLShipperDetail
- SET IsActive = 0, UpdateTime = NOW()
- WHERE Id = #{id} AND Domain = #{domain}
- </update>
- <!-- 插入发货单明细 -->
- <insert id="insert" useGeneratedKeys="true" keyProperty="recId" keyColumn="RecID">
- INSERT INTO ASNBOLShipperDetail (
- Domain, Id, Line, OrdNbr, OrdLine, ContainerItem, Descr, UM,
- Location, LotSerial, QtyToShip, PickingQty, RealQty, Status, Remark,
- ShType, Typed, IsActive, IsConfirm, CreateTime, ASNBOLShipperRecID, ShipDate,
- ShipFromId, ShipToId, Dimension1, Dimension2
- ) VALUES (
- #{domain}, #{id}, #{line}, #{ordNbr}, #{ordLine}, #{containerItem}, #{descr}, #{um},
- #{location}, #{lotSerial}, #{qtyToShip}, #{pickingQty}, #{realQty}, #{status}, #{remark},
- #{shType}, #{typed}, #{isActive}, #{isConfirm}, #{createTime}, #{asnbolShipperRecId}, #{shipDate},
- #{shipFromId}, #{shipToId}, #{dimension1}, #{dimension2}
- )
- </insert>
- </mapper>
|