예제 #1
0
        public void Execute(IJobExecutionContext context)
        {
            CouponLog.Info("保养项目推荐服务启动");

            try
            {
                var updateBaoYangRecordResult = SuggestBusiness.UpdateBaoYangRecord();
                if (updateBaoYangRecordResult)
                {
                    CouponLog.Info("保养档案更新成功");
                }
                else
                {
                    CouponLog.Info("保养档案更新失败");
                }

                CouponLog.Info("保养推荐服务成功");
            }
            catch (Exception ex)
            {
                CouponLog.Error(ex.Message, ex);
            }

            CouponLog.Info("保养项目推荐服务结束");
        }
예제 #2
0
        public void Execute(IJobExecutionContext context)
        {
            logger.Info("维护用户保养档案新数据服务启动");

            try
            {
                SuggestBusiness.MaintainBaoYangRecordNewData();

                logger.Info("维护用户保养档案新数据更新成功");
            }
            catch (Exception ex)
            {
                logger.Error(ex.Message, ex);
            }

            logger.Info("维护用户保养档案新数据结束");
        }
        public void Execute(IJobExecutionContext context)
        {
            logger.Info("用户保养档案服务启动");

            try
            {
                var updateBaoYangRecordResult = SuggestBusiness.UpdateBaoYangRecord();
                if (updateBaoYangRecordResult)
                {
                    logger.Info("保养档案更新成功");
                }
                else
                {
                    logger.Info("保养档案更新失败");
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex.Message, ex);
            }

            logger.Info("用户保养档案服务结束");
        }