insert into reset_password
(id, account_id, note, date)
VALUES
(UUID(), (SELECT id from account where employee_number = #{employeeNumber} ), #{note}, NOW())
SELECT
id, account_id, note, date, acc.id, acc.name, acc.mail, acc.employee_number
from reset_password rs join account acc on rs.account_id = acc.id
acc.activation = 1 and acc.name like concat('%',#{search},'%')
acc.activation = 1 and acc.employee_number like concat('%',#{search},'%')
order by date desc limit #{start}, #{perPage}
SELECT
count(id)
acc.activation = 1 and acc.name like concat('%',#{search},'%')
acc.activation = 1 and acc.employee_number like concat('%',#{search},'%')
order by date desc limit #{start}, #{perPage}
SELECT
id, account_id, note, date, acc.id, acc.name
from reset_password rs join account acc on rs.account_id = acc.id
acc.activation = 1 and acc.name like concat('%',#{search},'%')
acc.activation = 1 and acc.employee_number like concat('%',#{search},'%')
order by acc.id desc limit #{start}, #{perPage}
delete from reset_password WHERE id = #{id}