main_params | 主参数 | |
main_params.created_at_begin | 创建日期开始 | {{LAST_SYNC_TIME datetime}} |
main_params.created_at_end | 创建日期结束 | {{CURRENT_TIME datetime}} |
main_params.extend_params_1 | 扩展sql | |
main_params.extend_params_1.FInterID | 主表主键id | :FInterID |
main_params.extend_params_1.extend_params_2 | 扩展sql | |
main_params.extend_params_1.extend_params_2.FproviderID | 供应商ID | :FproviderID |
main_params.extend_params_1.extend_params_2.extend_params_3 | 扩展sql | |
main_params.extend_params_1.extend_params_2.extend_params_3.FCustID | 客户ID | :FCustID |
main_params.extend_params_1.extend_params_2.extend_params_3.extend_params_4 | 扩展sql | |
main_params.extend_params_1.extend_params_2.extend_params_3.extend_params_4.FInterID | 主表主键id | :FInterID |
main_params.extend_params_1.extend_params_2.extend_params_3.extend_params_4.main_sql | 主表查询sql | select s.id_ as FInterID,s.code_ as FBillNo,s.create_time_ as FDate,ifnull(s.remark,'') as FNote,s.tax_rate as FEntryTaxRate,s.expect_time_ as FDeliveryDate,now() as FPlanDate,s.finance_finish_time_ as FPayDate,s.provider_id_ as FproviderID,s.client_id_ as FCustID from sl_sale_order s where s.code_ = 'PSDHS-0001-20220227-0280' |
main_params.extend_params_1.extend_params_2.extend_params_3.extend_params_4.extend_sql_1 | 扩展sql | select se.id_ as FEntrySeq,se.product_code_ as FMaterialId,se.number_ as FQty,se.price_ as FTaxPrice,se.number_ as FPriceBaseQty,se.number_ as FStockQty,se.number_ as FStockBaseQty,se.price*se.number as FAllAmountExceptDisCount,se.number_ as FPlanQty from sl_sale_order_item se where se.sale_order_id_ = :FInterID |
main_params.extend_params_1.extend_params_2.extend_params_3.extend_params_4.extend_sql_2 | 供应商SQL | select p.code_ as FSaleOrgId from ph_provider p where p.id_ = :FproviderID |
main_params.extend_params_1.extend_params_2.extend_params_3.extend_params_4.extend_sql_3 | 客户SQL | select c.code_ as FCustId,c.code_ as FReceiveId,c.client_region_name_ as FSaleDeptId,c.code_ as FSettleId,c.code_ as FChargeId from sl_client c where c.id_ = :FCustID |
main_params.extend_params_1.extend_params_2.extend_params_3.extend_params_4.extend_sql_4 | 子公司sql | select sub.link_name_ as FSaleOrgId,sub.link_name_ as FStockOrgId,sub.link_name_ as FSettleOrgIds,sub.link_name_ as FSupplyOrgId from fn_subsidiary_corporation sub left join sl_sale_order_settlement sel on sel.subsidiary_corporation_id_ = sub.id_ where sel.sale_order_id_ = :FInterID |