| | |
| | | update report_fee_month_statistics t set |
| | | t.owe_amount= #{oweAmount} |
| | | where 1=1 |
| | | <if test="statisticsId !=null and statisticsId != ''"> |
| | | and t.statistics_id= #{statisticsId} |
| | | </if> |
| | | <if test="curMaxTime !=null "> |
| | | and t.cur_max_time <= #{curMaxTime} |
| | | </if> |
| | |
| | | <select id="queryFeeDetail" parameterType="Map" resultType="Map"> |
| | | select t.obj_name objName,t.fee_name feeName,t.fee_create_time feeCreateTime,max(t.deadline_time) |
| | | deadlineTime,t.create_time createTime,SUM(t.receivable_amount) receivableAmount,SUM(t.received_amount) |
| | | receivedAmount,SUM(t.owe_amount) oweAmount |
| | | receivedAmount,SUM(t.owe_amount) oweAmount,max(t.update_time) updateTime |
| | | from report_fee_month_statistics t |
| | | inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0' |
| | | left join building_room br on t.obj_id = br.room_id and t.obj_type = '3333' and br.status_cd = '0' |