ShipmentContainerDetailMapper.xml 1.21 KB
<?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.huaheng.pc.shipment.shipmentContainerDetail.mapper.ShipmentContainerDetailMapper">
    <select id="selectListEntity" resultType="com.huaheng.pc.shipment.shipmentContainerDetail.domain.ShipmentContainerDetail">
    SELECT s.id, s.headerId, s.shipmentCode, s.shipmentHeaderId, s.shipmentDetailId, s.materialCode, s.materialName, s.qty, s.inventoryId, s.created, s.createdBy, s.project
    FROM shipment_container_detail s
    inner join shipment_container_header d on s.headerId=d.id
    where s.shipmentHeaderId=#{shipmentHeaderId} and d.zoneCode&lt;>"AGV"
    </select>

    <select id="selectListAgvEntity" resultType="com.huaheng.pc.shipment.shipmentContainerDetail.domain.ShipmentContainerDetail">
    SELECT s.id, s.headerId, s.shipmentCode, s.shipmentHeaderId, s.shipmentDetailId, s.materialCode, s.materialName, s.qty, s.inventoryId, s.created, s.createdBy, s.project
    FROM shipment_container_detail s
    inner join shipment_container_header d on s.headerId=d.id
    where s.shipmentHeaderId=#{shipmentHeaderId} and d.zoneCode="AGV"
    </select>


</mapper>