select f_id, f_pid, f_lineno, f_srcid, f_goodsid, f_billno, f_warehouselocid, f_mblno, f_originalbillno, f_bsdate, f_boxno, f_cntqty, f_goodsval, f_cntrtype, f_planvolumn, f_originalbilldate, f_transfer_warehouselocid, f_planqty, f_billingway, f_plangrossweight, f_packagespecs, f_chargedate, f_plannetweight, f_qty, f_grossweight, f_volumn, f_netweight, f_cntrno, f_truckno, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark, f_marks, 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 from t_warehousebillsitems insert into t_warehousebillsitems f_pid, f_lineno, f_srcid, f_goodsid, f_billno, f_warehouselocid, f_mblno, f_originalbillno, f_bsdate, f_boxno, f_cntqty, f_goodsval, f_cntrtype, f_originalbilldate, f_billingway, f_transfer_warehouselocid, f_planqty, f_planvolumn, f_chargedate, f_plangrossweight, f_packagespecs, f_plannetweight, f_qty, f_volumn, f_grossweight, f_netweight, f_cntrno, f_truckno, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark, f_marks, 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, #{fPid}, #{fLineno}, #{fSrcid}, #{fGoodsid}, #{fBillno}, #{fWarehouselocid}, #{fMblno}, #{fOriginalbillno}, #{fBsdate}, #{fBoxno}, #{fCntqty}, #{fGoodsval}, #{fCntrtype}, #{fOriginalbilldate}, #{fBillingway}, #{fTransferWarehouselocid}, #{fPlanqty}, #{fPlanvolumn}, #{fChargedate}, #{fPlangrossweight}, #{fPackagespecs}, #{fPlannetweight}, #{fQty}, #{fVolumn}, #{fGrossweight}, #{fNetweight}, #{fCntrno}, #{fTruckno}, #{fBillstatus}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{fMarks}, #{fInventoryDays}, #{fStorageFeeDeadline}, #{fAmt}, #{fBillingDays}, #{fDriverName}, #{fDriverTel}, #{fDriverIdCar}, #{fSerialNumber}, #{fIsPass}, #{fBilltype}, #{fBillingQty}, #{fBillingDeadline}, #{fBusinessType}, #{fIsInventory}, #{fWarehouseInformation}, #{fOrgwarehouseInformation}, update t_warehousebillsitems f_pid = #{fPid}, f_lineno = #{fLineno}, f_srcid = #{fSrcid}, f_goodsid = #{fGoodsid}, f_billno = #{fBillno}, f_warehouselocid = #{fWarehouselocid}, f_mblno = #{fMblno}, f_originalbillno = #{fOriginalbillno}, f_bsdate = #{fBsdate}, f_boxno = #{fBoxno}, f_cntqty = #{fCntqty}, f_goodsval = #{fGoodsval}, f_cntrtype = #{fCntrtype}, f_planvolumn = #{fPlanvolumn}, f_originalbilldate = #{fOriginalbilldate}, f_transfer_warehouselocid = #{fTransferWarehouselocid}, f_planqty = #{fPlanqty}, f_billingway = #{fBillingway}, f_plangrossweight = #{fPlangrossweight}, f_packagespecs = #{fPackagespecs}, f_chargedate = #{fChargedate}, f_plannetweight = #{fPlannetweight}, f_qty = #{fQty}, f_grossweight = #{fGrossweight}, f_volumn = #{fVolumn}, f_netweight = #{fNetweight}, f_cntrno = #{fCntrno}, f_truckno = #{fTruckno}, f_billstatus = #{fBillstatus}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, f_marks = #{fMarks}, 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_serial_number = null , f_is_pass = #{fIsPass}, f_billtype = #{fBilltype}, f_billing_qty = #{fBillingQty}, f_is_inventory = #{fIsInventory}, f_billing_deadline = #{fBillingDeadline}, f_business_type = #{fBusinessType}, f_warehouse_information = #{fWarehouseInformation}, f_orgwarehouse_information = #{fOrgwarehouseInformation}, where f_id = #{fId} UPDATE t_warehousebillsitems SET f_storage_fee_deadline = null, f_chargedate = #{fChargedate} WHERE f_id = #{fId} delete from t_warehousebillsitems where f_id = #{fId} delete from t_warehousebillsitems where f_id in #{fId} delete from t_warehousebillsitems where f_pid = #{fId} update t_warehousebillsitems SET f_billstatus = IF ( f_billtype = 'SJCK' || f_billtype = 'SJRK', 40, #{fettle} ) where f_pid = #{fPid}