chenhaozhe
2 天以前 89793cb2f9d4eb80582d0b5dda465881ff9a8382
WebAPI/Controllers/BLL/Xt_SystemParameterController.cs
@@ -158,6 +158,42 @@
        }
        #endregion
        #region 系统参数查询 删除
        [Route("Xt_SystemParameter/Xt_SystemParameterDelete")]
        [HttpGet]
        public object Xt_SystemParameterDelete(string HInterID, string user)
        {
            if (!DBUtility.ClsPub.Security_Log_second("Xt_SystemParameter_Delete", 1, false, user))
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "无删除权限!";
                objJsonResult.data = null;
                return objJsonResult;
            }
            bool bResult;
            Int64 lngBillKey = 0;
            lngBillKey = DBUtility.ClsPub.isLong(HInterID);
            DAL.ClsXt_SystemParameter_Ctl oBill = new DAL.ClsXt_SystemParameter_Ctl();
            bResult = oBill.DeleteByID(lngBillKey);
            if (bResult)
            {
                objJsonResult.code = "1";
                objJsonResult.count = 1;
                objJsonResult.Message = "删除成功!";
                objJsonResult.data = 1;
                return objJsonResult;
            }
            else
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "删除失败!" + DBUtility.ClsPub.sExeReturnInfo;
                objJsonResult.data = 1;
                return objJsonResult;
            }
        }
        #endregion
    }
}