ShipmentContainerDetailMapper.xml 1.19 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 material m on s.materialCode=m.code
    where s.shipmentHeaderId=#{shipmentHeaderId} and m.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 material m on s.materialCode=m.code
    where s.shipmentHeaderId=#{shipmentHeaderId} and m.zoneCode="AGV"
    </select>


</mapper>