Ejemplo n.º 1
0
        //修改公司信息
        public int UpdOneCompanyInter(OneCompany oc)
        {
            string sql    = $"update  onecompany set onecompanyname = '{oc.OneCompanyName}',onecompanyaccount='{oc.OneCompanyAccount}',bankname='{oc.BankName}' where id={oc.Id};";
            int    result = helper.ExceuteNonQuery(sql);

            return(result);
        }
        public IActionResult UpdOneCompanyInter(OneCompany oc)
        {
            int result;

            try
            {
                result = accountManageBll.UpdOneCompanyInter(oc);
            }
            catch (Exception ex)
            {
                log.Error(ex.Message);
                throw;
            }
            return(Ok(new { state = result > 0 ? true : false, data = result > 0 ? "操作成功" : "操作失败" }));
        }
        public IActionResult GetOneCompany()
        {
            OneCompany oneCompany = new OneCompany();

            try
            {
                oneCompany = accountManageBll.GetOneCompany();
            }
            catch (Exception ex)
            {
                log.Error(ex.Message);
                throw;
            }
            return(Ok(new { code = 0, data = oneCompany, msg = "" }));
        }