select id, serial_no, in_no, order_sn, bill_code, customer_code, customer_name, entry_date, confirm_status, confirm_date, used_status, status, stock_in_flag, bl_upload_pic, total_parcel_qty, total_volume, total_weight, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_warehouse_in insert into emis_warehouse_in serial_no, in_no, order_sn, bill_code, customer_code, customer_name, entry_date, confirm_status, confirm_date, used_status, status, stock_in_flag, bl_upload_pic, total_parcel_qty, total_volume, total_weight, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site, #{serialNo}, #{inNo}, #{orderSn}, #{billCode}, #{customerCode}, #{customerName}, #{entryDate}, #{confirmStatus}, #{confirmDate}, #{usedStatus}, #{status}, #{stockInFlag}, #{blUploadPic}, #{totalParcelQty}, #{totalVolume}, #{totalWeight}, #{remark}, #{tenantId}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{createSite}, #{updateSite}, update emis_warehouse_in serial_no = #{serialNo}, in_no = #{inNo}, order_sn = #{orderSn}, bill_code = #{billCode}, customer_code = #{customerCode}, customer_name = #{customerName}, entry_date = #{entryDate}, confirm_status = #{confirmStatus}, confirm_date = #{confirmDate}, used_status = #{usedStatus}, status = #{status}, stock_in_flag = #{stockInFlag}, bl_upload_pic = #{blUploadPic}, total_parcel_qty = #{totalParcelQty}, total_volume = #{totalVolume}, total_weight = #{totalWeight}, remark = #{remark}, tenant_id = #{tenantId}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, create_site = #{createSite}, update_site = #{updateSite}, where id = #{id} update emis_warehouse_in bill_code = #{billCode}, used_status ='1', update_by = #{updateBy}, update_time = #{updateTime}, update_site = #{updateSite}, where in_no = #{inNo} update emis_warehouse_in bill_code =null, used_status ='0', update_by = #{updateBy}, update_time = #{updateTime}, update_site = #{updateSite}, where in_no = #{inNo} update emis_warehouse_in set stock_in_flag = '1', total_parcel_qty=#{totalParcelQty}, total_volume=#{totalVolume}, total_weight=#{totalWeight}, bl_upload_pic=#{blUploadPic} where in_no = #{inNo} update emis_warehouse_in set used_status='1' where bill_code = #{billCode} and in_no = #{inNo} update emis_warehouse_in set del_flag='1' where id = #{id} update emis_warehouse_in set del_flag='1' where id in #{id}