username@email.com
2021-09-22 a55f5fa0707c43ba79a791bc4ee57514a07c7ea6
提交
3个文件已修改
28 ■■■■ 已修改文件
CY_ECommercePlatform/CY.SQLDAL/EC/EC_OrderDAL.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Web.config 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
开票修改.sql 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.SQLDAL/EC/EC_OrderDAL.cs
@@ -1409,7 +1409,7 @@
            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  ";
@@ -1418,7 +1418,7 @@
            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    ";
CY_ECommercePlatform/CY.WebForm/Web.config
@@ -267,10 +267,10 @@
    </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" />-->
¿ªÆ±ÐÞ¸Ä.sql
@@ -1,6 +1,16 @@
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
@@ -22,9 +32,15 @@
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