{
  "querycode" : "select CONCAT(MONTH(CREATEDATE), '月') as summary, SUM(CRAMOUNT) as cramount, '收款' as recordtype from crmpayrecord where YEAR(CREATEDATE) = ${srfwebcontext('srfparentkey','{\"defname\":\"CREATEDATE\",\"dename\":\"CRMPAYRECORD\"}')} GROUP BY MONTH(CREATEDATE)\nunion all select CONCAT(MONTH(CREATEDATE), '月') as summary, SUM(DRAMOUNT) as cramount, '付款' as recordtype from crmpayrecord where YEAR(CREATEDATE) = ${srfwebcontext('srfparentkey','{\"defname\":\"CREATEDATE\",\"dename\":\"CRMPAYRECORD\"}')} GROUP BY MONTH(CREATEDATE)",
  "dbtype" : "MYSQL5",
  "memo" : "select MONTH(CREATEDATE) as month, SUM(CRAMOUNT) as cramount, '收款' as type from crmpayrecord where CREATEDATE <= and CREATEDATE >=  GROUP BY MONTH(CREATEDATE) union all select MONTH(CREATEDATE) as month, SUM(DRAMOUNT) as dramount, '付款' as type from crmpayrecord where CREATEDATE <= and CREATEDATE >=  GROUP BY MONTH(CREATEDATE);",
  "createdate" : "2021-02-26 10:30:56",
  "psdedqcodename" : "MySQL5"
}