|
|
@ -25,7 +25,7 @@ |
|
|
|
svc.brandName, |
|
|
|
svc.rebateTypeKey, |
|
|
|
svc.rebateTypeValue, |
|
|
|
SUM(svc.estimateRebate) withRebate, |
|
|
|
SUM(CAST(svc.estimateRebate AS DECIMAL(10, 2))) withRebate, |
|
|
|
COUNT(*) num, |
|
|
|
GROUP_CONCAT(svc.vehRebateSid) vehRebateSid, |
|
|
|
SUM(IF(svc.onceCheckState = 1, svc.secondaryUploadMoney, |
|
|
@ -49,7 +49,7 @@ |
|
|
|
svc.brandName, |
|
|
|
svc.palceGenDate, |
|
|
|
svc.withholdingDate, |
|
|
|
SUM(svc.estimateRebate) withRebate, |
|
|
|
SUM(CAST(svc.estimateRebate AS DECIMAL(10, 2))) withRebate, |
|
|
|
COUNT(*) num, |
|
|
|
GROUP_CONCAT(svc.vehRebateSid) vehRebateSid, |
|
|
|
SUM(IF(svc.onceCheckState = 1, svc.secondaryUploadMoney, |
|
|
@ -80,7 +80,7 @@ |
|
|
|
svc.brandName, |
|
|
|
CONCAT(svc.purchaseSystemName, svc.brandName, '本月上传返利核对及调整金额合计') title, |
|
|
|
COUNT(*) numTotal, |
|
|
|
SUM(svc.estimateRebate) withRebateTotal, |
|
|
|
SUM(CAST(svc.estimateRebate AS DECIMAL(10, 2))) withRebateTotal, |
|
|
|
SUM(svc.expectTreatCost + svc.expectSuppCost) withholdCostTotal, |
|
|
|
SUM(IF(svc.onceCheckState = 1, svc.secondaryUploadMoney, |
|
|
|
svc.uploadMoney + |
|
|
@ -103,7 +103,7 @@ |
|
|
|
CONCAT(svc.purchaseSystemName, svc.brandName, svc.rebateTypeValue, '明细') title, |
|
|
|
svc.rebateTypeValue, |
|
|
|
COUNT(*) num, |
|
|
|
SUM(svc.estimateRebate) withRebate, |
|
|
|
SUM(CAST(svc.estimateRebate AS DECIMAL(10, 2))) withRebate, |
|
|
|
SUM(svc.expectTreatCost + svc.expectSuppCost) withholdCost, |
|
|
|
SUM(IF(svc.onceCheckState = 1, svc.secondaryUploadMoney, |
|
|
|
svc.uploadMoney + svc.secondaryUploadMoney)) uploadMoney, |
|
|
@ -127,7 +127,7 @@ |
|
|
|
CONCAT(svc.purchaseSystemName, svc.brandName, svc.withholdingDate, '预提明细') title, |
|
|
|
svc.withholdingDate, |
|
|
|
COUNT(*) num, |
|
|
|
SUM(svc.estimateRebate) withRebate, |
|
|
|
SUM(CAST(svc.estimateRebate AS DECIMAL(10, 2))) withRebate, |
|
|
|
SUM(svc.expectTreatCost + svc.expectSuppCost) withholdCost, |
|
|
|
SUM(IF(svc.onceCheckState = 1, svc.secondaryUploadMoney, |
|
|
|
svc.uploadMoney + svc.secondaryUploadMoney)) uploadMoney, |
|
|
|