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, f_business_attribution, f_supervision_unit, f_declaration_elements, f_part_number, f_ifinspection, f_value, f_weighing_date, f_ifsampling, send_sample_date, f_ifweight_recovery, weight_recovery_date, warehouse_status, f_times ,f_date_changed, f_chargetype,f_weigh_weight, f_predict_branch,f_grade,f_delivery_details,f_salesman_id,f_itemstatus,f_updete_status, f_submit_update, f_delete_status,f_remarks_fees 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_trademodeid, f_billingway, f_sbu, f_feetunit, f_mblno, f_vslvoy, f_eta, f_marks, f_customno, f_ifweigh, f_ifpledge, f_ifdamage, f_bankcorpid, f_billtype, f_billstatus, del_flag, create_by, create_time, f_items_status, 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, f_business_attribution, f_supervision_unit, f_declaration_elements, f_part_number, f_ifinspection, f_value, f_weighing_date, f_ifsampling, send_sample_date, f_ifweight_recovery, weight_recovery_date, warehouse_status, f_times, f_date_changed, f_chargetype, f_weigh_weight, f_predict_branch, f_grade, f_delivery_details, f_salesman_id, f_itemstatus, f_updete_status, f_submit_update, f_delete_status, f_remarks_fees, #{fBillno}, #{fCustomsdeclartion}, #{fOriginalbillno}, #{fDeptid}, #{fBsdeptid}, #{fContacts}, #{fTel}, #{fCorpid}, #{fTocorpid}, #{fStltypeid}, #{fBscorpno}, #{fWarehouseid}, #{fStorekeeper}, #{fChargedate}, #{fBsdate}, #{fPlanqty}, #{fPlangrossweight}, #{fPlannetweight}, #{fPlanvolumn}, #{fQty}, #{fGrossweight}, #{fNetweight}, #{fVolumn}, #{fTrademodeid}, #{fBillingway}, #{fSbu}, #{fFeetunit}, #{fMblno}, #{fVslvoy}, #{fEta}, #{fMarks}, #{fCustomno}, #{fIfweigh}, #{fIfpledge}, #{fIfdamage}, #{fBankcorpid}, #{fBilltype}, #{fBillstatus}, #{delFlag}, #{createBy}, #{createTime}, #{fItemsStatus}, #{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}, #{fBusinessAttribution}, #{fSupervisionUnit}, #{fDeclarationElements}, #{fPartNumber}, #{fIfinspection}, #{fValue}, #{fWeighingDate}, #{fIfsampling}, #{sendSampleDate}, #{fIfweightRecovery}, #{weightRecoveryDate}, #{warehouseStatus}, #{fTimes}, #{fDateChanged}, #{fChargetype}, #{fWeighWeight}, #{fPredictBranch}, #{fGrade}, #{fDeliveryDetails}, #{fSalesmanId}, #{fItemstatus}, #{fUpdeteStatus}, #{fSubmitUpdate}, #{fDeleteStatus}, #{fRemarksFees}, 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_bsdate = #{fBsdate}, f_chargedate = #{fChargedate}, 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_eta = #{fEta}, f_marks = #{fMarks}, 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_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}, f_business_attribution = #{fBusinessAttribution}, f_supervision_unit = #{fSupervisionUnit}, f_declaration_elements = #{fDeclarationElements}, f_part_number = #{fPartNumber}, f_ifinspection = #{fIfinspection}, f_value = #{fValue}, f_weighing_date = #{fWeighingDate}, f_ifsampling = #{fIfsampling}, send_sample_date = #{sendSampleDate}, f_ifweight_recovery = #{fIfweightRecovery}, weight_recovery_date = #{weightRecoveryDate}, warehouse_status = #{warehouseStatus}, f_times = #{fTimes}, f_date_changed = #{fDateChanged}, f_chargetype = #{fChargetype}, f_weigh_weight = #{fWeighWeight}, f_predict_branch = #{fPredictBranch}, f_grade = #{fGrade}, f_delivery_details = #{fDeliveryDetails}, f_salesman_id = #{fSalesmanId}, f_itemstatus = #{fItemstatus}, f_updete_status = #{fUpdeteStatus}, f_submit_update = #{fSubmitUpdate}, f_delete_status = #{fDeleteStatus}, f_remarks_fees = #{fRemarksFees}, 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}, f_business_attribution = #{fBusinessAttribution}, f_supervision_unit = #{fSupervisionUnit}, f_declaration_elements = #{fDeclarationElements}, f_part_number = #{fPartNumber}, f_ifinspection = #{fIfinspection}, f_value = #{fValue}, f_weighing_date = #{fWeighingDate}, f_ifsampling = #{fIfsampling}, send_sample_date = #{sendSampleDate}, f_ifweight_recovery = #{fIfweightRecovery}, weight_recovery_date = #{weightRecoveryDate}, warehouse_status = #{warehouseStatus}, f_times = #{fTimes}, f_date_changed = #{fDateChanged}, f_chargetype = #{fChargetype}, f_weigh_weight = #{fWeighWeight}, f_predict_branch = #{fPredictBranch}, f_grade = #{fGrade}, f_delivery_details = #{fDeliveryDetails}, f_salesman_id = #{fSalesmanId}, f_itemstatus = #{fItemstatus}, f_updete_status = #{fUpdeteStatus}, f_submit_update = #{fSubmitUpdate}, f_delete_status = #{fDeleteStatus}, f_remarks_fees = #{fRemarksFees}, 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} update t_warehousebills SET ${auditItem.fidStatus} = #{fettle} where f_id = #{auditItem.billId} update t_warehousebills SET f_vslid = #{fVslid}, f_voyid = #{fVoyid} where f_id = #{fId}