select f_id, f_pid, f_srcid, f_lineno, f_billno, f_shipper, f_goodsid, f_mblno, f_src_bsdate, f_originalbillno, f_transfer_warehouselocid, f_warehouselocid, f_originalbilldate, f_bsdate, f_billingway, f_chargedate, f_boxno, f_goodsval, f_cntqty, f_packagespecs, f_cntrtype, f_planvolumn, f_planqty, f_plangrossweight, f_plannetweight, f_volumn, f_qty, f_grossweight, f_netweight, f_cntrno, f_truckno, f_marks, f_actual_weight, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark, f_inventory_days, f_storage_fee_deadline, f_amt, f_billing_days, f_driver_name, f_driver_tel, f_driver_id_car, f_serial_number, f_is_pass, f_billtype, f_billing_qty, f_billing_deadline, f_business_type, f_is_inventory, f_warehouse_information, f_orgwarehouse_information, f_labour, f_fleet, f_stevedore, f_lntype, f_forkliftman, f_localcntrno, f_sealno,f_now_carton,f_itemstatus,f_cartype_id,f_dc,is_calculate_storage_fees from t_warehousebillsitems insert into t_warehousebillsitems f_id, f_pid, f_srcid, f_lineno, f_billno, f_shipper, f_goodsid, f_mblno, f_src_bsdate, f_originalbillno, f_transfer_warehouselocid, f_warehouselocid, f_originalbilldate, f_bsdate, f_billingway, f_chargedate, f_boxno, f_goodsval, f_cntqty, f_packagespecs, f_cntrtype, f_planvolumn, f_planqty, f_plangrossweight, f_plannetweight, f_volumn, f_qty, f_grossweight, f_netweight, f_cntrno, f_truckno, f_marks, f_actual_weight, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark, f_inventory_days, f_storage_fee_deadline, f_amt, f_billing_days, f_driver_name, f_driver_tel, f_driver_id_car, f_serial_number, f_is_pass, f_billtype, f_billing_qty, f_billing_deadline, f_business_type, f_is_inventory, f_warehouse_information, f_orgwarehouse_information, f_labour, f_fleet, f_stevedore, f_lntype, f_forkliftman, f_localcntrno, f_sealno, f_now_carton, f_itemstatus, f_cartype_id, f_dc, is_calculate_storage_fees, #{fId}, #{fPid}, #{fSrcid}, #{fLineno}, #{fBillno}, #{fShipper}, #{fGoodsid}, #{fMblno}, #{fSrcBsdate}, #{fOriginalbillno}, #{fTransferWarehouselocid}, #{fWarehouselocid}, #{fOriginalbilldate}, #{fBsdate}, #{fBillingway}, #{fChargedate}, #{fBoxno}, #{fGoodsval}, #{fCntqty}, #{fPackagespecs}, #{fCntrtype}, #{fPlanvolumn}, #{fPlanqty}, #{fPlangrossweight}, #{fPlannetweight}, #{fVolumn}, #{fQty}, #{fGrossweight}, #{fNetweight}, #{fCntrno}, #{fTruckno}, #{fMarks}, #{fActualWeight}, #{fBillstatus}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{fInventoryDays}, #{fStorageFeeDeadline}, #{fAmt}, #{fBillingDays}, #{fDriverName}, #{fDriverTel}, #{fDriverIdCar}, #{fSerialNumber}, #{fIsPass}, #{fBilltype}, #{fBillingQty}, #{fBillingDeadline}, #{fBusinessType}, #{fIsInventory}, #{fWarehouseInformation}, #{fOrgwarehouseInformation}, #{fLabour}, #{fFleet}, #{fStevedore}, #{fLntype}, #{fForkliftman}, #{fLocalcntrno}, #{fSealno}, #{fNowCarton}, #{fItemstatus}, #{fCartypeId}, #{fDc}, #{isCalculateStorageFees}, update t_warehousebillsitems f_pid = #{fPid}, f_srcid = #{fSrcid}, f_lineno = #{fLineno}, f_billno = #{fBillno}, f_shipper = #{fShipper}, f_goodsid = #{fGoodsid}, f_mblno = #{fMblno}, f_src_bsdate = #{fSrcBsdate}, f_originalbillno = #{fOriginalbillno}, f_transfer_warehouselocid = #{fTransferWarehouselocid}, f_warehouselocid = #{fWarehouselocid}, f_originalbilldate = #{fOriginalbilldate}, f_bsdate = #{fBsdate}, f_billingway = #{fBillingway}, f_chargedate = #{fChargedate}, f_boxno = #{fBoxno}, f_goodsval = #{fGoodsval}, f_cntqty = #{fCntqty}, f_packagespecs = #{fPackagespecs}, f_cntrtype = #{fCntrtype}, f_planvolumn = #{fPlanvolumn}, f_planqty = #{fPlanqty}, f_plangrossweight = #{fPlangrossweight}, f_plannetweight = #{fPlannetweight}, f_volumn = #{fVolumn}, f_qty = #{fQty}, f_grossweight = #{fGrossweight}, f_netweight = #{fNetweight}, f_cntrno = #{fCntrno}, f_truckno = #{fTruckno}, f_marks = #{fMarks}, f_actual_weight = #{fActualWeight}, f_billstatus = #{fBillstatus}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, f_inventory_days = #{fInventoryDays}, f_storage_fee_deadline = #{fStorageFeeDeadline}, f_amt = #{fAmt}, f_billing_days = #{fBillingDays}, f_driver_name = #{fDriverName}, f_driver_tel = #{fDriverTel}, f_driver_id_car = #{fDriverIdCar}, f_serial_number = #{fSerialNumber}, f_is_pass = #{fIsPass}, f_billtype = #{fBilltype}, f_billing_qty = #{fBillingQty}, f_billing_deadline = #{fBillingDeadline}, f_business_type = #{fBusinessType}, f_is_inventory = #{fIsInventory}, f_warehouse_information = #{fWarehouseInformation}, f_orgwarehouse_information = #{fOrgwarehouseInformation}, f_labour = #{fLabour}, f_fleet = #{fFleet}, f_stevedore = #{fStevedore}, f_lntype = #{fLntype}, f_forkliftman = #{fForkliftman}, f_localcntrno = #{fLocalcntrno}, f_sealno = #{fSealno}, f_now_carton = #{fNowCarton}, f_itemstatus = #{fItemstatus}, f_cartype_id = #{fCartypeId}, f_dc = #{fDc}, is_calculate_storage_fees = #{isCalculateStorageFees}, where f_id = #{fId} UPDATE t_warehousebillsitems SET f_storage_fee_deadline = null, f_chargedate = #{fChargedate}, is_calculate_storage_fees = #{isCalculateStorageFees} WHERE f_id = #{fId} UPDATE t_warehousebillsitems SET del_flag = '1' where f_id = #{fId} UPDATE t_warehousebillsitems SET del_flag = '1' where f_id in #{fId} UPDATE t_warehousebillsitems SET del_flag = '1' where f_pid = #{fId} update t_warehousebillsitems SET f_billstatus = IF ( f_billtype = 'SJCK' || f_billtype = 'SJRK', 40, #{fettle} ) where f_pid = #{fPid} update t_warehousebillsitems SET f_chargedate = #{fChargedate} where f_pid = #{fPid} update t_warehousebillsitems SET f_itemstatus = #{fItemstatus} where f_pid = #{fPid} UPDATE t_warehousebillsitems SET f_storage_fee_deadline = null WHERE f_pid = #{fPid} and f_id not in #{fId} UPDATE t_warehousebillsitems SET f_storage_fee_deadline = null WHERE f_id = #{fPid} UPDATE t_warehousebillsitems SET f_storage_fee_deadline = #{time} WHERE f_pid = #{pId}