select id, task_id, purchase_time, arrival_time, purchaser, create_by, create_time, update_by, update_time, remark, company_id from purchase_check_info select pci.id, pci.task_id, pci.purchase_time, pci.arrival_time, pci.purchaser, pci.create_by, pci.create_time, pci.update_by, pci.update_time, pci.remark, pci.company_id, t.task_status, t.task_type, t.code, su.user_name as create_user_name from purchase_check_info pci left join tm_task t on t.task_id = pci.task_id left join sys_user su ON pci.create_by = su.user_id insert into purchase_check_info task_id, purchase_time, arrival_time, purchaser, create_by, create_time, update_by, update_time, remark, company_id, #{taskId}, #{purchaseTime}, #{arrivalTime}, #{purchaser}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{companyId}, update purchase_check_info task_id = #{taskId}, purchase_time = #{purchaseTime}, arrival_time = #{arrivalTime}, purchaser = #{purchaser}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, company_id = #{companyId}, where id = #{id} delete from purchase_check_info where id = #{id} delete from purchase_check_info where id in #{id}