Browse Source

更改

master
ligaode 4 months ago
parent
commit
8fa4f96d74
  1. 12
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehrebatewith/ScmVehRebateWithMapper.xml

12
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehrebatewith/ScmVehRebateWithMapper.xml

@ -21,16 +21,16 @@
SELECT svr.rebateTypeKey,
svr.rebateTypeValue,
SUM(svr.estimateRebate) withRebate,
SUM(svr.expectTreatCost) as expectTreatCost,
SUM(svr.expectSuppCost) as expectSuppCost,
COUNT(*) num,
SUM(svr.expectTreatCost) as expectTreatCost,
SUM(svr.expectSuppCost) as expectSuppCost,
COUNT(*) num,
GROUP_CONCAT(svrw.vehRebateSid) vehRebateSid,
svr.purchaseSystemName,
svr.brandName
FROM scm_veh_rebate_with svrw
LEFT JOIN scm_veh_rebate svr
ON svr.sid = svrw.vehRebateSid
LEFT JOIN scm_veh_rebate svr
ON svr.sid = svrw.vehRebateSid
WHERE svrw.mainSid = #{sid}
GROUP BY svr.calculationModeKey
GROUP BY svr.brandSid, svr.rebateTypeValue, svr.purchaseSystemSid
</select>
</mapper>
Loading…
Cancel
Save