ReceiptContainerDetailMapper.xml 625 Bytes
<?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.receipt.receiptContainerDetail.mapper.ReceiptContainerDetailMapper">
    <select id="SelectStatus" resultType="java.lang.Integer">
        SELECT h.status
        FROM receipt_container_header h
        INNER JOIN receipt_container_detail d ON h.id = d.headerId AND d.id IN (#{ids})
        GROUP BY h.id,h.status
    </select>

    <delete id="batchDelete">
        DELETE FROM receipt_detail WHERE id in (#{ids})
    </delete>
    
</mapper>