/// <summary>
 /// 编辑团长等级
 /// </summary>
 /// <param name="colonelGrade">团长等级</param>
 /// <returns></returns>
 public int UptColonelGrade(Model.ColonelGrade colonelGrade)
 {
     try
     {
         string sql = $" update ColonelGrade set CGradeName='{colonelGrade.CGradeName}',GradeExperience='{colonelGrade.GradeExperience}',FirstPY={colonelGrade.FirstPY},AwardRatio='{colonelGrade.AwardRatio}',GradeStatus={colonelGrade.GradeStatus} where CGId = {colonelGrade.CGId} ;";
         return(DapperHelper.Execute(sql));
     }
     catch (Exception)
     {
         throw;
     }
 }
        public int UptColonelGrade(Model.ColonelGrade colonelGrade)
        {
            int i = _colonelGradeRepository.UptColonelGrade(colonelGrade);

            if (i > 0)
            {
                logger.Debug($"编辑团长等级成功,id为{colonelGrade.CGId}");
            }
            else
            {
                logger.Debug($"编辑团长等级失败,id为{colonelGrade.CGId}");
            }

            return(i);
        }
Ejemplo n.º 3
0
        public int UptColonelGrade(Model.ColonelGrade colonelGrade)
        {
            int i = _colonelGradeRepository.UptColonelGrade(colonelGrade);

            return(i);
        }