zzr99
2022-07-08 17378c3946c1aac0dbe3b6cd05911421a17d3b34
WebAPI/Controllers/²Ö´æ¹ÜÀí/ÌõÂë³öÈë¿â¼Ç¼/Kf_ICStockInOutBillController.cs
@@ -202,5 +202,52 @@
        #endregion
        #endregion
        #region æ‰«ç è®°å½•缓存列表
         [Route("Kf_ICStockInOutBill/GetKF_PonderationBillMain_Temp")]
        [HttpGet]
        public object GetKF_PonderationBillMain_Temp(string sWhere)
        {
            try
            {
                DataSet ds = new DataSet();
                string sql1 = string.Format(@"select * from h_v_KF_PonderationBillList_Query where 1=1 ");
                if (sWhere == null || sWhere.Equals(""))
                {
                    ds = oCN.RunProcReturn(sql1 + "order by åˆ¶å•日期 desc", "h_v_KF_PonderationBillList_Query");
                }
                else
                {
                    ds = oCN.RunProcReturn(sql1 + sWhere + "order by åˆ¶å•日期 desc", "h_v_KF_PonderationBillList_Query");
                }
                if (ds.Tables[0].Rows.Count == 0)
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "查询数据异常,请与管理员联系!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                else
                {
                    objJsonResult.code = "1";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "返回记录成功!";
                    objJsonResult.data = ds.Tables[0];
                    return objJsonResult;
                }
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = e.Message.ToString();
                objJsonResult.data = null;
            }
            return objJsonResult;
        }
        #endregion
    }
}