/// <summary> /// 更新Item表打包标识方法 /// </summary> /// <param name="loggingSessionInfo">登录model</param> /// <param name="bat_id">批次标识</param> /// <param name="strError">错误信息返回</param> /// <returns></returns> public bool SetItemIfFlagInfo(LoggingSessionInfo loggingSessionInfo, string BatId, out string strError) { ObjectImagesInfo itemInfo = new ObjectImagesInfo(); itemInfo.BatId = BatId; itemInfo.LastUpdateBy = loggingSessionInfo.CurrentUser.User_Id; itemInfo.LastUpdateTime = GetCurrentDateTime2();//重写了一个方法,原来是返回的字符串 cSqlMapper.Instance(loggingSessionInfo.CurrentLoggingManager).Update("ObjectImages.UpdateUnDownloadIfFlag", itemInfo); strError = "Success"; return(true); }
/// <summary> /// 设置打包批次号 /// </summary> /// <param name="loggingSessionInfo">登录model</param> /// <param name="bat_id">批次号</param> /// <param name="ItemInfoList">商品集合</param> /// <param name="strError">错误信息返回</param> /// <returns></returns> public bool SetItemBatInfo(LoggingSessionInfo loggingSessionInfo, string bat_id, IList <ObjectImagesInfo> ObjectImagesInfoList, out string strError) { ObjectImagesInfo itemInfo = new ObjectImagesInfo(); itemInfo.LastUpdateBy = loggingSessionInfo.CurrentUser.User_Id; itemInfo.LastUpdateTime = GetCurrentDateTime2(); itemInfo.BatId = bat_id; itemInfo.ObjectImagesInfoList = ObjectImagesInfoList; cSqlMapper.Instance(loggingSessionInfo.CurrentLoggingManager).Update("ObjectImages.UpdateUnDownloadBatId", itemInfo);//目前问题 strError = "Success"; return(true); }