|
@ -102,16 +102,16 @@ |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<resultMap id="TimeFinancialChart" type="com.ccsens.ptccsens.bean.vo.ProjectFinanceVo$TimeFinancialChart"> |
|
|
<resultMap id="TimeFinancialChart" type="com.ccsens.ptccsens.bean.vo.ProjectFinanceVo$TimeFinancialChart"> |
|
|
<id column="time" property="time"/> |
|
|
<result column="name" property="name"/> |
|
|
<collection property="data" ofType="com.ccsens.ptccsens.bean.vo.ProjectFinanceVo$ChartData"> |
|
|
<collection property="data" ofType="com.ccsens.ptccsens.bean.vo.ProjectFinanceVo$ChartData"> |
|
|
<id column="name" property="name"/> |
|
|
<id column="time" property="time"/> |
|
|
<result column="expend" property="expend"/> |
|
|
<result column="expend" property="expend"/> |
|
|
</collection> |
|
|
</collection> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<select id="timeFinancialChart" resultMap="TimeFinancialChart"> |
|
|
<select id="timeFinancialChart" resultMap="TimeFinancialChart"> |
|
|
SELECT |
|
|
SELECT |
|
|
task.`name`, |
|
|
task.`name`, |
|
|
DATE_FORMAT(FROM_UNIXTIME (fa.apply_time/1000),'%Y-%m') AS `time`, |
|
|
DATE_FORMAT(FROM_UNIXTIME (fa.apply_time/1000),'%m') AS `time`, |
|
|
SUM(fa.money) AS expend |
|
|
SUM(fa.money) AS expend |
|
|
FROM |
|
|
FROM |
|
|
( |
|
|
( |
|
|