|
|
|
@ -174,6 +174,14 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterOrderDeptSupList" resultType="com.glxp.api.res.inout.IoOrderDetailDeptResultResponse">
|
|
|
|
|
SELECT
|
|
|
|
|
fromInvCode,
|
|
|
|
|
fromInvName,
|
|
|
|
|
fromCorpName,
|
|
|
|
|
SUM( amount ) AS amount,
|
|
|
|
|
SUM( count ) AS count
|
|
|
|
|
FROM
|
|
|
|
|
(
|
|
|
|
|
SELECT
|
|
|
|
|
aw.code as fromInvCode,
|
|
|
|
|
aw.name as fromInvName,
|
|
|
|
|
IFNULL(bc.name,aw2.name) as fromCorpName,
|
|
|
|
@ -231,6 +239,11 @@
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
group by a1.fromInvCode,a1.fromCorp
|
|
|
|
|
) t1
|
|
|
|
|
GROUP BY
|
|
|
|
|
fromInvCode,
|
|
|
|
|
fromInvName,
|
|
|
|
|
fromCorpName
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectStatDataByTime" resultType="com.glxp.api.res.inv.IoOrderDetailStatRsponse">
|
|
|
|
|