item4.id=conn.QuerySingleOrDefault<int?>(" select * from dc_report_cash_flow_log where data_type=@data_type and bailun_sku=@bailun_sku and item_no=@item_no ",new
varpick_data_logistics_order_id=conn.QueryFirstOrDefault<string>(" select logistics_order_id from dc_base_oms_pick where bailun_order_id=@bailun_order_id and bailun_sku=@bailun_sku limit 1 ",new{
item4.id=conn.QuerySingleOrDefault<int?>(" select * from dc_report_cash_flow_log where data_type=@data_type and bailun_sku=@bailun_sku and item_no=@item_no ",new
List<dc_report_cash_flow_config>configs=conn.Query<dc_report_cash_flow_config>(" select * from dc_report_cash_flow_config ").AsList();
List<dc_report_cash_flow_config>configs=conn.Query<dc_report_cash_flow_config>(" select * from dc_report_cash_flow_config ").AsList();
while(true)
while(true)
{
{
varnow=DateTime.Now;
varsql=" select t1.*,t2.pay_time from dc_base_purchase_details as t1 left join dc_base_purchase as t2 on t1.purchase_id = t2.purchase_id and t1.bailun_sku = t2.bailun_sku where t1.gmt_create>=@btime and t1.gmt_create<=@etime ";
varsql=" select t1.*,t2.pay_time from dc_base_purchase_details as t1 left join dc_base_purchase as t2 on t1.purchase_id = t2.purchase_id and t1.bailun_sku = t2.bailun_sku where t1.gmt_create>=@btime and t1.gmt_create<=@etime ";
item.id=conn.QuerySingleOrDefault<int?>(" select * from dc_report_cash_flow_log where data_type=@data_type and bailun_sku=@bailun_sku and item_no=@item_no ",new
item.id=conn.QuerySingleOrDefault<int?>(" select * from dc_report_cash_flow_log where data_type=@data_type and bailun_sku=@bailun_sku and item_no=@item_no ",new
{
{
data_type=item.data_type,
data_type=item.data_type,
...
@@ -602,5 +686,75 @@ where t1.create_time>=@btime and t1.create_time<=@etime ";
...
@@ -602,5 +686,75 @@ where t1.create_time>=@btime and t1.create_time<=@etime ";