| | |
| | | <select id="selectMoneyReceivablesAll" resultType="java.lang.Double"> |
| | | select sum(receivables) receivables from man_company_money |
| | | where year(create_time) = #{year} |
| | | and user_id = #{userId} |
| | | <if test="userId != null"> |
| | | and user_id = #{userId} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectMoneyActualReceiptsAll" resultType="java.lang.Double"> |
| | | select sum(actual_receipts) actualReceipts from man_company_money |
| | | where year(create_time) = #{year} |
| | | and user_id = #{userId} |
| | | <if test="userId != null"> |
| | | and user_id = #{userId} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectMoneyCopyAll" resultMap="BaseResultMap"> |