chenzx
2024-12-02 c0a9a10f8da3ebaaffb01de6115392476f4f4197
czx20241202更新
5个文件已删除
10个文件已修改
64 ■■■■■ 已修改文件
.vs/PolicyControl/FileContentIndex/04d3f97a-8414-4d0e-9d75-5ecea460a9b4.vsidx 补丁 | 查看 | 原始文档 | blame | 历史
.vs/PolicyControl/FileContentIndex/06bc2a9a-85f6-47eb-a2fc-2c8eb536d516.vsidx 补丁 | 查看 | 原始文档 | blame | 历史
.vs/PolicyControl/FileContentIndex/1669bd7f-25db-4263-9fcb-06ae30f47f94.vsidx 补丁 | 查看 | 原始文档 | blame | 历史
.vs/PolicyControl/FileContentIndex/65f4c7ec-ff52-4e7a-9fee-c640c785a1b7.vsidx 补丁 | 查看 | 原始文档 | blame | 历史
.vs/PolicyControl/FileContentIndex/ca6fd239-2f27-444a-b7d0-78af5c5aac4f.vsidx 补丁 | 查看 | 原始文档 | blame | 历史
GasolineBlend.BLL/AccountBLL.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
GasolineBlend.BLL/GasolineBlend.BLL.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
GasolineBlend.DAL/AccountDAL.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
GasolineBlend.DAL/GasolineBlend.DAL.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
GasolineBlend.Entity/DefaultCompany.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
GasolineBlend.Entity/GasolineBlend.Entity.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
GasolineBlend/Controllers/DefaultCompanyController.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
GasolineBlend/Controllers/SubsidyDataController.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
GasolineBlend/Controllers/UserController.cs 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
GasolineBlend/GasolineBlend.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.vs/PolicyControl/FileContentIndex/04d3f97a-8414-4d0e-9d75-5ecea460a9b4.vsidx
Binary files differ
.vs/PolicyControl/FileContentIndex/06bc2a9a-85f6-47eb-a2fc-2c8eb536d516.vsidx
Binary files differ
.vs/PolicyControl/FileContentIndex/1669bd7f-25db-4263-9fcb-06ae30f47f94.vsidx
Binary files differ
.vs/PolicyControl/FileContentIndex/65f4c7ec-ff52-4e7a-9fee-c640c785a1b7.vsidx
Binary files differ
.vs/PolicyControl/FileContentIndex/ca6fd239-2f27-444a-b7d0-78af5c5aac4f.vsidx
Binary files differ
GasolineBlend.BLL/AccountBLL.cs
@@ -248,6 +248,15 @@
        }
        /// <summary>
        /// 更新用户基本信息
        /// </summary>
        /// <param name="account"></param>
        /// <returns></returns>
        public bool UpdateAccountAddress(Account account)
        {
            return _acc.UpdateAccountAddress(account);
        }
        /// <summary>
        /// 绑定微信账户-登录
        /// </summary>
        /// <param name="userName"></param>
GasolineBlend.BLL/GasolineBlend.BLL.csproj
@@ -127,6 +127,7 @@
  <ItemGroup>
    <Compile Include="AccountBLL.cs" />
    <Compile Include="AccountGroupBLL.cs" />
    <Compile Include="EnterpriseInformationBLL.cs" />
    <Compile Include="DefaultCompanyBLL.cs" />
    <Compile Include="PushDataBLL.cs" />
    <Compile Include="OrderDataBLL.cs" />
GasolineBlend.DAL/AccountDAL.cs
@@ -308,6 +308,20 @@
        }
        /// <summary>
        /// 更新用户基本信息
        /// </summary>
        /// <param name="account"></param>
        /// <returns></returns>
        public bool UpdateAccountAddress(Account account)
        {
            var sql = $"update sysAccount set Address=@Address where Id=@Id;";
            DynamicParameters paras = new DynamicParameters();
            paras.Add("Address", account.Address);
            paras.Add("Id", account.Id);
            return Conn.Execute(sql, paras) > 0;
        }
        /// <summary>
        /// 绑定微信账户-登录
        /// </summary>
        /// <param name="userName"></param>
GasolineBlend.DAL/GasolineBlend.DAL.csproj
@@ -85,6 +85,7 @@
  <ItemGroup>
    <Compile Include="AccountDAL.cs" />
    <Compile Include="AccountGroupDAL.cs" />
    <Compile Include="EnterpriseInformationDAL.cs" />
    <Compile Include="DefaultCompanyDAL.cs" />
    <Compile Include="PushDataDAL.cs" />
    <Compile Include="OrderDataDAL.cs" />
GasolineBlend.Entity/DefaultCompany.cs
@@ -15,7 +15,7 @@
        /// <summary>
        /// 是否推送政策
        /// </summary>
        public string Compose { get; set; }
        public string Company { get; set; }
        /// <summary>
        ///用户
GasolineBlend.Entity/GasolineBlend.Entity.csproj
@@ -47,6 +47,7 @@
    <Compile Include="Account.cs" />
    <Compile Include="AccountGroup.cs" />
    <Compile Include="AccountRecAge.cs" />
    <Compile Include="EnterpriseInformation.cs" />
    <Compile Include="DefaultCompany.cs" />
    <Compile Include="PushDataPage.cs" />
    <Compile Include="OrderDataPage.cs" />
GasolineBlend/Controllers/DefaultCompanyController.cs
@@ -68,6 +68,9 @@
            }
        }
        /// <summary>
        ///添加推送
        /// </summary>
GasolineBlend/Controllers/SubsidyDataController.cs
@@ -116,7 +116,8 @@
        {
            try
            {
                var id = OperatorProvider.Instance.Current.UserId;
                //var id = OperatorProvider.Instance.Current.UserId;
                var id = 1;
                if (id == 0)
                {
                    return Error(message: "账户未登录!请登录后查询", data: "-1");
GasolineBlend/Controllers/UserController.cs
@@ -655,6 +655,35 @@
            }
        }
        [HttpPost]
        public ActionResult UpdateAccountAddress(int id, string Address)
        {
            try
            {
                Account account = new Account();
                account.Address = Address;
                account.Id = id;
                if (id > 0)
                {
                    var rev = _acc.UpdateAccountAddress(account);
                    return rev ? Success() : Error();
                }
                else
                {
                    return Error("修改失败!当前用户不存在!");
                }
            }
            catch (Exception e)
            {
                LogHelper.Write(Level.Error, "修改用户基本信息 UpdateAccountAddress", e, OperatorProvider.Instance.Current == null ? "GuestEx" : OperatorProvider.Instance.Current.LoginName);
                return Error();
            }
        }
        /// <summary>
        /// 更新项目默认加载模式
        /// </summary>
GasolineBlend/GasolineBlend.csproj
@@ -222,6 +222,7 @@
    <Compile Include="App_Start\FilterConfig.cs" />
    <Compile Include="App_Start\RouteConfig.cs" />
    <Compile Include="App_Start\WebExceptionFilterAttribute.cs" />
    <Compile Include="Controllers\EnterpriseInformation.cs" />
    <Compile Include="Controllers\DefaultCompanyController.cs" />
    <Compile Include="Controllers\PushDataController.cs" />
    <Compile Include="Controllers\OrderDataController.cs" />