ri.id, ri.rk_type, ri.wl_type, ri.cangku, ri.rk_time, ri.lihuo_y, ri.is_chuku, ri.status, ri.remark, ri.bill_no, ri.is_delivery, ri.xj, ri.xm_no, ri.xm_ms, ri.xm_no_ck, ri.xm_ms_ck, ri.wl_no, ri.wl_ms, ri.gys_no, ri.gys_mc, ri.jh_amt, ri.ht_dj, ri.sap_no, ri.xh, ri.jh_qty, ri.ht_qty, ri.dw, ri.real_qty, ri.pcode, ri.pcode_id, ri.tray_code, ri.entity_id, ri.ck_lihuo_y, ri.team_code, ri.ck_type, ri.ck_remark, ri.ly_time, ri.bill_no_ck, ri.borrow_time, ri.return_time, ri.has_moved, ri.is_borrowed, ri.create_by, ri.create_time, ri.update_by, ri.update_time, ri.is_delete, ri.gys_jh_id FROM rk_info ri LEFT JOIN delivery_mtd m ON m.wl_no = ri.wl_no AND (m.is_delete = '0' OR m.is_delete = 0 OR m.is_delete IS NULL) insert into rk_info rk_type, wl_type, cangku, rk_time, lihuo_y, is_chuku, status, remark, bill_no, is_delivery, xj, xm_no, xm_ms, xm_no_ck, xm_ms_ck, wl_no, wl_ms, gys_no, gys_mc, jh_amt, ht_dj, sap_no, xh, jh_qty, ht_qty, dw, real_qty, pcode, pcode_id, tray_code, entity_id, ck_lihuo_y, team_code, ck_type, ck_remark, ly_time, bill_no_ck, borrow_time, return_time, has_moved, is_borrowed, create_by, create_time, update_by, update_time, is_delete, gys_jh_id, #{rkType}, #{wlType}, #{cangku}, #{rkTime}, #{lihuoY}, #{isChuku}, #{status}, #{remark}, #{billNo}, #{isDelivery}, #{xj}, #{xmNo}, #{xmMs}, #{xmNoCk}, #{xmMsCk}, #{wlNo}, #{wlMs}, #{gysNo}, #{gysMc}, #{jhAmt}, #{htDj}, #{sapNo}, #{xh}, #{jhQty}, #{htQty}, #{dw}, #{realQty}, #{pcode}, #{pcodeId}, #{trayCode}, #{entityId}, #{ckLihuoY}, #{teamCode}, #{ckType}, #{ckRemark}, #{lyTime}, #{billNoCk}, #{borrowTime}, #{returnTime}, #{hasMoved}, #{isBorrowed}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{isDelete}, #{gysJhId}, update rk_info rk_type = #{rkType}, wl_type = #{wlType}, cangku = #{cangku}, rk_time = #{rkTime}, lihuo_y = #{lihuoY}, is_chuku = #{isChuku}, status = #{status}, remark = #{remark}, bill_no = #{billNo}, is_delivery = #{isDelivery}, xj = #{xj}, xm_no = #{xmNo}, xm_ms = #{xmMs}, xm_no_ck = #{xmNoCk}, xm_ms_ck = #{xmMsCk}, wl_no = #{wlNo}, wl_ms = #{wlMs}, gys_no = #{gysNo}, gys_mc = #{gysMc}, jh_amt = #{jhAmt}, ht_dj = #{htDj}, sap_no = #{sapNo}, xh = #{xh}, jh_qty = #{jhQty}, ht_qty = #{htQty}, dw = #{dw}, real_qty = #{realQty}, pcode = #{pcode}, pcode_id = #{pcodeId}, tray_code = #{trayCode}, entity_id = #{entityId}, ck_lihuo_y = #{ckLihuoY}, team_code = #{teamCode}, ck_type = #{ckType}, ck_remark = #{ckRemark}, ly_time = #{lyTime}, bill_no_ck = #{billNoCk}, borrow_time = #{borrowTime}, return_time = #{ReturnTime}, has_moved = #{hasMoved}, is_borrowed = #{isBorrowed}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, is_delete = #{isDelete}, gys_jh_id = #{gysJhId}, where id = #{id} delete from rk_info where id = #{id} delete from rk_info where id in #{id}