增
insert into t_customer
(customer_name,contacts,phone_number,address,remarks)
VALUES(#{customerName},#{contacts},#{phoneNumber},#{address},#{remarks})
删
from t_customer
where t_customer.customer_id =#{customerId}
改
UPDATE t_customer
t_customer.phone_number =#{phoneNumber},
WHERE t_customer.customer_id =#{customerId}
查
t_customer_return_list.customer_return_list_id,
t_customer_return_list.return_number,
t_customer_return_list.return_date,
t_customer_return_list.amount_paid,
t_customer_return_list.amount_payable,
t_customer_return_list.state,
t_customer_return_list.customer_id,
t_customer_return_list.user_id,
t_customer_return_list.remarks,
t_user.true_name,
t_customer.customer_name
FROM
t_customer_return_list
LEFT JOIN t_user ON t_customer_return_list.user_id = t_user.user_id
LEFT JOIN t_customer ON t_customer_return_list.customer_id = t_customer.customer_id