<?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.superdesk.uniorder.dao.mapper.accounting.unified.supplier.AccountingUnifiedSupplierIssuesMapperEx">


    <!-- 查出 问题对账单 -->
    <select id="init001AccountingUnifiedSupplierIssuess" resultMap="cn.superdesk.uniorder.dao.mapper.accounting.unified.supplier.AccountingUnifiedSupplierIssuesMapper.BaseResultMap">
		SELECT
			ausxg.accounting_order_id,
			ausxg.accounting_order_sn,
			GROUP_CONCAT(ausxg.order_sn) as order_sn_list
		FROM accounting_unified_supplier_x_goods ausxg
			LEFT JOIN unified_order_goods uog on ausxg.unified_order_goods_id = uog.id
		WHERE
			uog.id is NULL
		GROUP by ausxg.accounting_order_id,ausxg.accounting_order_sn
	</select>
</mapper>