Custom query with deptpaymentId.