/// <summary> /// 更新一条分类信息 /// </summary> /// <param name="zhbk_fl">要更新的分类信息</param> /// <returns></returns> public Boolean UpdateZHBK_FL(ZHBK_FL zhbk_fl) { Boolean flag = true; int back = sqlMapper.Update("UpdateZHBK_FL", zhbk_fl); if (back <= 0) { flag = false; } return flag; }
/// <summary> /// 插入一条分类信息 /// </summary> /// <param name="zhbk_fl">分类信息</param> /// <returns></returns> public Boolean InsertZHBK_FL(ZHBK_FL zhbk_fl) { Boolean flag = true; try { sqlMapper.Insert("InsertZHBK_FL", zhbk_fl); } catch (Exception) { flag = false; } return flag; }