Пример #1
0
 /// <summary>
 /// 更新一条分类信息
 /// </summary>
 /// <param name="gjbz_fl">要更新的分类信息</param>
 /// <returns></returns>
 public Boolean UpdateGJBZ_FL(GJBZ_FL gjbz_fl)
 {
     Boolean flag = true;
     int back = sqlMapper.Update("UpdateGJBZ_FL", gjbz_fl);
     if (back <= 0)
     {
         flag = false;
     }
     return flag;
 }
Пример #2
0
        /// <summary>
        /// 插入一条分类信息
        /// </summary>
        /// <param name="gjbz_fl">分类信息</param>
        /// <returns></returns>
        public Boolean InsertGJBZ_FL(GJBZ_FL gjbz_fl)
        {
            Boolean flag = true;
            try
            {
                sqlMapper.Insert("InsertGJBZ_FL", gjbz_fl);
            }
            catch (Exception)
            {
                flag = false;
            }

            return flag;
        }