/// <summary> /// 检查优惠券已经赠送完毕的卖家并给出提示 /// </summary> public void StartCouponExpiredMax() { //获取账户里面有1周前未审核评价的卖家 ShopData dbShop = new ShopData(); List <ShopInfo> list = dbShop.GetShopInfoListCouponExpiredMax(); MessageData dbMessage = new MessageData(); string typ = "couponmax"; //循环获取这些卖家的未审核订单 for (int i = 0; i < list.Count; i++) { ShopInfo shop = list[i]; //告之这些卖家他们的优惠券已经过期,需要重新设置 string msg = "好评有礼:亲爱的" + shop.Nick + ",您设置赠送的优惠券已经达到了最大赠送数量,您可以到服务里面的\"优惠券\"创建新的优惠券并在\"基本设置\"中重新保存"; //如果7天内已经发送过类似短信的话则不再提醒 if (!dbMessage.IsSendMsgNearDays(shop, typ)) { string msgResult = Message.SendGuodu(shop.Mobile, msg); dbMessage.InsertShopAlertMsgLog(shop, msg, msgResult, typ); } } }