| | |
| | | fromSouce += " Inner Join Pay_TradingSingle as ts On(ob.Keyid = ts.OrderId) "; |
| | | fromSouce += " Inner Join OA_CorporateClients as oc On(ob.BuyerId = oc.Keyid) "; |
| | | fromSouce += " left join EC_AwbInfo ea on ob.Keyid = ea.Keyid where DATEDIFF(DAY,ob.CreateTime,'" + chaxuntimestart + "') <=0 and DATEDIFF(DAY,ob.CreateTime,'" + chaxuntimeend + "') >=0 and ob.PayState = -1 "; |
| | | fromSouce += " group by oc.BusinessManagerId ) obhuikuan on os.Keyid = ob.BusinessManagerId "; |
| | | fromSouce += " group by oc.BusinessManagerId ) obhuikuan on os.Keyid = obhuikuan.BusinessManagerId "; |
| | | |
| | | |
| | | fromSouce += " left join ( select oc.BusinessManagerId ,COUNT( distinct ob.BuyerId ) as weihuikuankehu "; |
| | |
| | | fromSouce += " Inner Join Pay_TradingSingle as ts On(ob.Keyid = ts.OrderId) "; |
| | | fromSouce += " Inner Join OA_CorporateClients as oc On(ob.BuyerId = oc.Keyid) "; |
| | | fromSouce += " left join EC_AwbInfo ea on ob.Keyid = ea.Keyid where DATEDIFF(DAY,ob.CreateTime,'" + chaxuntimestart + "') <=0 and DATEDIFF(DAY,ob.CreateTime,'" + chaxuntimeend + "') >=0 and ob.PayState != -1 "; |
| | | fromSouce += " group by oc.BusinessManagerId ) obweihuikuan on os.Keyid = ob.BusinessManagerId "; |
| | | fromSouce += " group by oc.BusinessManagerId ) obweihuikuan on os.Keyid = obweihuikuan.BusinessManagerId "; |
| | | |
| | | |
| | | fromSouce += " left join ( select oc.BusinessManagerId,sum(ob.SumPrice) kaipiaojine "; |
| | |
| | | </exceptionPolicies> |
| | | </exceptionHandling> |
| | | <connectionStrings> |
| | | <add name="SqlConnection" connectionString="Server=CB2-20200827ONU;Database=ECTEST;Trusted_Connection=True;" providerName="System.Data.SqlClient" /> |
| | | <!-- <add name="SqlConnection" |
| | | connectionString="Data Source=DESKTOP-8E2C3RS;Initial Catalog=ECTEST;User ID=sa;Password=123456" |
| | | providerName="System.Data.SqlClient" />--> |
| | | <!--<add name="SqlConnection" connectionString="Server=CB2-20200827ONU;Database=ECTEST;Trusted_Connection=True;" providerName="System.Data.SqlClient" />--> |
| | | <add name="SqlConnection" |
| | | connectionString="Data Source=.;Initial Catalog=ECTEST;User ID=sa;Password=123456" |
| | | providerName="System.Data.SqlClient" /> |
| | | <!--<add name="SqlConnection" |
| | | connectionString="Data Source=118.123.213.60\SQLSERVER2008;Initial Catalog=ECTEST;User ID=sa;Password=123qwe!@#;" |
| | | providerName="System.Data.SqlClient" />--> |
| | |
| | | USE [ECTEST] |
| | | GO |
| | | |
| | | |
| | | |
| | | |
| | | INSERT INTO [Sys_Dictionary]([Name] ,[DicType] ,[LastUpdateTime] ,[Operator] ,[MeanValue]) VALUES ('å¼ ','å°å·åä½',getdate(),'管çå',1) |
| | | INSERT INTO [Sys_Dictionary]([Name] ,[DicType] ,[LastUpdateTime] ,[Operator] ,[MeanValue]) VALUES ('æ¬','å°å·åä½',getdate(),'管çå',2) |
| | | INSERT INTO [Sys_Dictionary]([Name] ,[DicType] ,[LastUpdateTime] ,[Operator] ,[MeanValue]) VALUES ('å','å°å·åä½',getdate(),'管çå',3) |
| | | INSERT INTO [Sys_Dictionary]([Name] ,[DicType] ,[LastUpdateTime] ,[Operator] ,[MeanValue]) VALUES ('åª','å°å·åä½',getdate(),'管çå',4) |
| | | |
| | | go |
| | | |
| | | --2021.09.10 å¢å 夿³¨ |
| | | alter table [OA_Kaipiaoshenqing] |
| | | add [remark] nvarchar(250) null |
| | |
| | | alter table [EC_OrderExtend] |
| | | add [printunit] [int] NULL |
| | | |
| | | go |
| | | |
| | | update [EC_OrderExtend] set [printunit]=1 |
| | | |
| | | go |
| | | |
| | | ALTER TABLE [dbo].[EC_OrderExtend] ADD CONSTRAINT [DF_EC_OrderExtend_printunit] DEFAULT ((1)) FOR [printunit] |
| | | |
| | | go |
| | | |
| | | --æ´æ°åå¨è¿ç¨[sp_EC_OrderBasic_Search_Seller] ï¼è®¢åæ¥è¯¢sql |
| | | --æ´æ°åå¨è¿ç¨sp_EC_OrderExtend_Insertï¼sp_EC_OrderExtend_Updateï¼ è®¢åæ©å±sql |