| | |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | |
| | | |
| | | |
| | | <!-- /////////////////////////////////// --> |
| | | <!-- 统计相关 --> |
| | | <!-- /////////////////////////////////// --> |
| | | <select id="statisticsByIc" resultType="com.dy.pipIrrGlobal.voSt.VoIcConsumeStatistics"> |
| | | select ocvh.client_id as clientId, |
| | | cc.id as cardId, |
| | | sum(ocvh.cl_this_money) as amount, |
| | | count(ocvh.id) as times |
| | | from rm_open_close_valve_history ocvh |
| | | inner join se_client_card cc on cc.cardNum = ocvh.cl_ic_card_no |
| | | where ocvh.cl_dt <![CDATA[>=]]> #{startDt, jdbcType=BIGINT} |
| | | and ocvh.cl_dt <![CDATA[<=]]> #{endDt, jdbcType=BIGINT} |
| | | group by ocvh.client_id, cc.id |
| | | </select> |
| | | </mapper> |