| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更新用户基本信息 |
| | | /// </summary> |
| | | /// <param name="account"></param> |
| | | /// <returns></returns> |
| | | public bool UpdateAccountAddress(Account account) |
| | | { |
| | | return _acc.UpdateAccountAddress(account); |
| | | } |
| | | /// <summary> |
| | | /// 绑定微信账户-登录 |
| | | /// </summary> |
| | | /// <param name="userName"></param> |
| | |
| | | <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" /> |
| | |
| | | } |
| | | |
| | | /// <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> |
| | |
| | | <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" /> |
| | |
| | | /// <summary> |
| | | /// 是否推送政策 |
| | | /// </summary> |
| | | public string Compose { get; set; } |
| | | public string Company { get; set; } |
| | | |
| | | /// <summary> |
| | | ///用户 |
| | |
| | | <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" /> |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | ///添加推送 |
| | | /// </summary> |
| | |
| | | { |
| | | try |
| | | { |
| | | var id = OperatorProvider.Instance.Current.UserId; |
| | | //var id = OperatorProvider.Instance.Current.UserId; |
| | | var id = 1; |
| | | if (id == 0) |
| | | { |
| | | return Error(message: "账户未登录!请登录后查询", data: "-1"); |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | [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> |
| | |
| | | <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" /> |