| | |
| | | |
| | | <!--查询所有总收益--> |
| | | <select id="getAllIncomeMoney" resultType="java.lang.Double"> |
| | | SELECT IFNULL(SUM(money),0) as value FROM t_income where userType = 1 |
| | | SELECT IFNULL(SUM(money),0) as value FROM t_pub_transaction_details where userType = 2 and orderType = 6 |
| | | <if test="companyId != null and companyId != ''"> |
| | | and objectId = #{companyId} |
| | | and companyId = #{companyId} |
| | | </if> |
| | | <if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''"> |
| | | AND (insertTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59')) |