select a.id, a.product_id, a.app_user_id, a.pledge_num, a.create_by, a.create_time, a.update_by, a.update_time,
a.search_value, a.remark,
u.user_id, u.login_name, u.login_password, u.phone, u.is_test, u.status, u.host, u.email,
p.coin, p.icon, p.title
from t_ming_product_user a
left join t_app_user u on u.user_id = a.app_user_id
left join t_ming_product p on p.id = a.product_id
insert into t_ming_product_user
product_id,app_user_id,pledge_num,create_by,create_time,update_by,update_time,search_value,remark,#{productId},#{appUserId},#{pledgeNum},#{createBy},#{createTime},#{updateBy},#{updateTime},#{searchValue},#{remark},
update t_ming_product_user
product_id = #{productId},app_user_id = #{appUserId},pledge_num = #{pledgeNum},create_by = #{createBy},create_time = #{createTime},update_by = #{updateBy},update_time = #{updateTime},search_value = #{searchValue},remark = #{remark},
where id = #{id}
delete from t_ming_product_user where id = #{id}
delete from t_ming_product_user where id in
#{id}