`id`,`tenant_id`,`parent_tenant_id`,`date`,`day_of_week`,`week_of_year`,`pay_price`,`month`,`merchant_id`,`create_date`,`update_date`,`type`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `date` = #{date}
and `day_of_week` = #{dayOfWeek}
and `week_of_year` = #{weekOfYear}
and `pay_price` = #{payPrice}
and `month` = #{month}
and `merchant_id` = #{merchantId}
and `create_date` = #{createDate}
and `update_date` = #{updateDate}
and `type` = #{type}
and id in
#{idItem}
order by ${sortColumns}
update wx_date_amount_record set pay_price=pay_price+#{payPrice}
where merchant_id=#{merchantId}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and type=#{type} and date = #{date}