select f_id, f_billno, f_customsdeclartion, f_originalbillno, f_deptid, f_bsdeptid, f_contacts, f_tel, f_corpid, f_tocorpid, f_stltypeid, f_bscorpno, f_warehouseid, f_storekeeper, f_chargedate, f_bsdate, f_planqty, f_plangrossweight, f_plannetweight, f_planvolumn, f_qty, f_grossweight, f_netweight, f_volumn, f_billingway, f_trademodeid, f_sbu, f_feetunit, f_mblno, f_marks, f_vslvoy, f_eta, f_customno, f_ifweigh, f_ifpledge, f_ifdamage, f_bankcorpid, f_billtype, f_billstatus, f_items_status, del_flag, create_by, create_time, update_by, update_time, remark, f_billing_deadline, f_product_name, f_review_date, f_truckno, f_driver_name, f_driver_tel, f_driver_id_car, f_business_type, f_labour, f_fleet, f_inwarehouseid, f_bstime, f_cartype, f_goodsid, f_new_trademodeid, f_loadportid, f_destportid, f_serviceitems, f_invoceobj, f_sign, f_detentioncargo, f_booksmarks, f_shippername, f_shipperattn, f_shippertel, f_consigneername, f_consigneeattn, f_consigneetel, f_insurance, f_insuranceamt, f_closedate, f_docmentdate, f_vslid, f_voyid, f_typeid, f_paymode, f_laneid, f_cntval, free_container_date from t_warehousebills insert into t_warehousebills f_billno, f_customsdeclartion, f_originalbillno, f_deptid, f_bsdeptid, f_contacts, f_tel, f_corpid, f_tocorpid, f_stltypeid, f_bscorpno, f_warehouseid, f_storekeeper, f_chargedate, f_bsdate, f_planqty, f_plangrossweight, f_plannetweight, f_planvolumn, f_qty, f_grossweight, f_netweight, f_volumn, f_billingway, f_trademodeid, f_sbu, f_feetunit, f_mblno, f_marks, f_vslvoy, f_eta, f_customno, f_ifweigh, f_ifpledge, f_ifdamage, f_bankcorpid, f_billtype, f_billstatus, f_items_status, del_flag, create_by, create_time, update_by, update_time, remark, f_billing_deadline, f_product_name, f_review_date, f_truckno, f_driver_name, f_driver_tel, f_driver_id_car, f_business_type, f_labour, f_fleet, f_inwarehouseid, f_bstime, f_cartype, f_goodsid, f_new_trademodeid, f_loadportid, f_destportid, f_serviceitems, f_invoceobj, f_sign, f_detentioncargo, f_booksmarks, f_shippername, f_shipperattn, f_shippertel, f_consigneername, f_consigneeattn, f_consigneetel, f_insurance, f_insuranceamt, f_closedate, f_docmentdate, f_vslid, f_voyid, f_typeid, f_paymode, f_laneid, f_cntval, free_container_date, #{fBillno}, #{fCustomsdeclartion}, #{fOriginalbillno}, #{fDeptid}, #{fBsdeptid}, #{fContacts}, #{fTel}, #{fCorpid}, #{fTocorpid}, #{fStltypeid}, #{fBscorpno}, #{fWarehouseid}, #{fStorekeeper}, #{fChargedate}, #{fBsdate}, #{fPlanqty}, #{fPlangrossweight}, #{fPlannetweight}, #{fPlanvolumn}, #{fQty}, #{fGrossweight}, #{fNetweight}, #{fVolumn}, #{fBillingway}, #{fTrademodeid}, #{fSbu}, #{fFeetunit}, #{fMblno}, #{fMarks}, #{fVslvoy}, #{fEta}, #{fCustomno}, #{fIfweigh}, #{fIfpledge}, #{fIfdamage}, #{fBankcorpid}, #{fBilltype}, #{fBillstatus}, #{fItemsStatus}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{fBillingDeadline}, #{fProductName}, #{fReviewDate}, #{fTruckno}, #{fDriverName}, #{fDriverTel}, #{fDriverIdCar}, #{fBusinessType}, #{fLabour}, #{fFleet}, #{fInwarehouseid}, #{fBstime}, #{fCartype}, #{fGoodsid}, #{fNewTrademodeid}, #{fLoadportid}, #{fDestportid}, #{fServiceitems}, #{fInvoceobj}, #{fSign}, #{fDetentioncargo}, #{fBooksmarks}, #{fShippername}, #{fShipperattn}, #{fShippertel}, #{fConsigneername}, #{fConsigneeattn}, #{fConsigneetel}, #{fInsurance}, #{fInsuranceamt}, #{fClosedate}, #{fDocmentdate}, #{fVslid}, #{fVoyid}, #{fTypeid}, #{fPaymode}, #{fLaneid}, #{fCntval}, #{freeContainerDate}, update t_warehousebills f_billno = #{fBillno}, f_customsdeclartion = #{fCustomsdeclartion}, f_originalbillno = #{fOriginalbillno}, f_deptid = #{fDeptid}, f_bsdeptid = #{fBsdeptid}, f_contacts = #{fContacts}, f_tel = #{fTel}, f_corpid = #{fCorpid}, f_tocorpid = #{fTocorpid}, f_stltypeid = #{fStltypeid}, f_bscorpno = #{fBscorpno}, f_warehouseid = #{fWarehouseid}, f_storekeeper = #{fStorekeeper}, f_chargedate = #{fChargedate}, f_bsdate = #{fBsdate}, f_planqty = #{fPlanqty}, f_plangrossweight = #{fPlangrossweight}, f_plannetweight = #{fPlannetweight}, f_planvolumn = #{fPlanvolumn}, f_qty = #{fQty}, f_grossweight = #{fGrossweight}, f_netweight = #{fNetweight}, f_volumn = #{fVolumn}, f_billingway = #{fBillingway}, f_trademodeid = #{fTrademodeid}, f_sbu = #{fSbu}, f_feetunit = #{fFeetunit}, f_mblno = #{fMblno}, f_marks = #{fMarks}, f_vslvoy = #{fVslvoy}, f_eta = #{fEta}, f_customno = #{fCustomno}, f_ifweigh = #{fIfweigh}, f_ifpledge = #{fIfpledge}, f_ifdamage = #{fIfdamage}, f_bankcorpid = #{fBankcorpid}, f_billtype = #{fBilltype}, f_billstatus = #{fBillstatus}, f_items_status = #{fItemsStatus}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, f_billing_deadline = #{fBillingDeadline}, f_product_name = #{fProductName}, f_review_date = #{fReviewDate}, f_truckno = #{fTruckno}, f_driver_name = #{fDriverName}, f_driver_tel = #{fDriverTel}, f_driver_id_car = #{fDriverIdCar}, f_business_type = #{fBusinessType}, f_labour = #{fLabour}, f_fleet = #{fFleet}, f_inwarehouseid = #{fInwarehouseid}, f_bstime = #{fBstime}, f_cartype = #{fCartype}, f_goodsid = #{fGoodsid}, f_new_trademodeid = #{fNewTrademodeid}, f_loadportid = #{fLoadportid}, f_destportid = #{fDestportid}, f_serviceitems = #{fServiceitems}, f_invoceobj = #{fInvoceobj}, f_sign = #{fSign}, f_detentioncargo = #{fDetentioncargo}, f_booksmarks = #{fBooksmarks}, f_shippername = #{fShippername}, f_shipperattn = #{fShipperattn}, f_shippertel = #{fShippertel}, f_consigneername = #{fConsigneername}, f_consigneeattn = #{fConsigneeattn}, f_consigneetel = #{fConsigneetel}, f_insurance = #{fInsurance}, f_insuranceamt = #{fInsuranceamt}, f_closedate = #{fClosedate}, f_docmentdate = #{fDocmentdate}, f_vslid = #{fVslid}, f_voyid = #{fVoyid}, f_typeid = #{fTypeid}, f_paymode = #{fPaymode}, f_laneid = #{fLaneid}, f_cntval = #{fCntval}, free_container_date = #{freeContainerDate}, where f_id = #{fId} update t_warehousebills f_billno = #{fBillno}, f_customsdeclartion = #{fCustomsdeclartion}, f_originalbillno = #{fOriginalbillno}, f_deptid = #{fDeptid}, f_bsdeptid = #{fBsdeptid}, f_contacts = #{fContacts}, f_tel = #{fTel}, f_corpid = #{fCorpid}, f_tocorpid = #{fTocorpid}, f_stltypeid = #{fStltypeid}, f_bscorpno = #{fBscorpno}, f_warehouseid = #{fWarehouseid}, f_storekeeper = #{fStorekeeper}, f_chargedate = #{fChargedate}, f_bsdate = #{fBsdate}, f_planqty = #{fPlanqty}, f_plangrossweight = #{fPlangrossweight}, f_plannetweight = #{fPlannetweight}, f_planvolumn = #{fPlanvolumn}, f_qty = #{fQty}, f_grossweight = #{fGrossweight}, f_netweight = #{fNetweight}, f_volumn = #{fVolumn}, f_trademodeid = #{fTrademodeid}, f_billingway = #{fBillingway}, f_sbu = #{fSbu}, f_feetunit = #{fFeetunit}, f_mblno = #{fMblno}, f_vslvoy = #{fVslvoy}, f_marks = #{fMarks}, f_eta = #{fEta}, f_customno = #{fCustomno}, f_ifweigh = #{fIfweigh}, f_ifpledge = #{fIfpledge}, f_ifdamage = #{fIfdamage}, f_bankcorpid = #{fBankcorpid}, f_billtype = #{fBilltype}, f_billstatus = #{fBillstatus}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, f_items_status = #{fItemsStatus}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, f_billing_deadline = #{fBillingDeadline}, f_product_name = #{fProductName}, f_review_date = #{fReviewDate}, f_review_date = null, f_truckno = #{fTruckno}, f_driver_name = #{fDriverName}, f_driver_tel = #{fDriverTel}, f_driver_id_car = #{fDriverIdCar}, f_business_type = #{fBusinessType}, f_review_date = null, f_labour = #{fLabour }, f_fleet = #{fFleet}, f_inwarehouseid = #{fInwarehouseid}, f_bstime = #{fBstime}, f_cartype = #{fCartype}, f_goodsid = #{fGoodsid}, f_new_trademodeid = #{fNewTrademodeid}, f_loadportid = #{fLoadportid}, f_destportid = #{fDestportid}, f_serviceitems = #{fServiceitems}, f_invoceobj = #{fInvoceobj}, f_sign = #{fSign}, f_detentioncargo = #{fDetentioncargo}, f_booksmarks = #{fBooksmarks}, f_shippername = #{fShippername}, f_shipperattn = #{fShipperattn}, f_shippertel = #{fShippertel}, f_consigneername = #{fConsigneername}, f_consigneeattn = #{fConsigneeattn}, f_consigneetel = #{fConsigneetel}, f_insurance = #{fInsurance}, f_insuranceamt = #{fInsuranceamt}, f_closedate = #{fClosedate}, f_docmentdate = #{fDocmentdate}, f_vslid = #{fVslid}, f_voyid = #{fVoyid}, f_paymode = #{fPaymode}, f_laneid = #{fLaneid}, f_typeid = #{fTypeid}, free_container_date = #{freeContainerDate}, where f_id = #{fId} delete from t_warehousebills where f_id = #{fId} delete item.*, bill.*, fess.*, enclosure.* from t_warehousebills bill LEFT JOIN t_warehousebillsfees fess ON fess.f_pid = bill.f_id LEFT JOIN t_enclosure enclosure ON enclosure.f_pid = bill.f_id LEFT JOIN t_warehousebillsitems item ON item.f_pid = bill.f_id where bill.f_id in #{fId} delete bill.*, fess.*, enclosure.* from t_warehousebills bill LEFT JOIN t_warehousebills_cntr fess ON fess.f_pid = bill.f_id LEFT JOIN t_warehousebills_cntritems enclosure ON enclosure.f_pid = bill.f_id where bill.f_id in #{fId} update t_warehousebills f_billstatus = #{fettle}, f_review_date = #{auditItem}, f_review_date = null, where f_id = #{fPid}