|
@@ -1,18 +1,12 @@
|
|
|
package com.caimei.modules.sys.web;
|
|
|
|
|
|
-import com.caimei.modules.basesetting.entity.Province;
|
|
|
import com.caimei.modules.order.dao.NewShopOrderDao;
|
|
|
-import com.caimei.modules.order.entity.NewShopOrder;
|
|
|
import com.caimei.modules.order.service.NewOrderService;
|
|
|
import com.caimei.modules.order.service.WeChatService;
|
|
|
-import com.caimei.modules.product.entity.Product;
|
|
|
import com.caimei.modules.sys.dao.NotificationDao;
|
|
|
import com.caimei.modules.sys.entity.Notification;
|
|
|
import com.caimei.modules.sys.service.NotificationService;
|
|
|
-import com.caimei.modules.sys.utils.SMSUtils;
|
|
|
import com.caimei.modules.user.dao.MessageCenterDao;
|
|
|
-import com.caimei.modules.user.entity.MessageCenter;
|
|
|
-import com.caimei.utils.StringUtils;
|
|
|
import com.thinkgem.jeesite.common.config.Global;
|
|
|
import com.thinkgem.jeesite.common.persistence.Page;
|
|
|
import com.thinkgem.jeesite.common.web.BaseController;
|
|
@@ -20,19 +14,12 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
-import org.springframework.scheduling.annotation.Scheduled;
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.Model;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import redis.clients.jedis.Jedis;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
-import javax.xml.ws.soap.Addressing;
|
|
|
-import java.io.IOException;
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
-import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -51,23 +38,10 @@ public class NotificationController extends BaseController {
|
|
|
private NotificationDao notificationDao;
|
|
|
@Autowired
|
|
|
private NotificationService notificationService;
|
|
|
- @Autowired
|
|
|
- private MessageCenterDao messageCenterDao;
|
|
|
- @Autowired
|
|
|
- private NewOrderService newOrderService;
|
|
|
- @Autowired
|
|
|
- private NewShopOrderDao newShopOrderDao;
|
|
|
- @Autowired
|
|
|
- private WeChatService weChatService;
|
|
|
- @Value("${wwwServer}")
|
|
|
- private String domain;
|
|
|
|
|
|
@RequestMapping(value = {"list", ""})
|
|
|
public String list(Notification notifi, HttpServletRequest request, HttpServletResponse response, Model model) {
|
|
|
-
|
|
|
- List<String> content = new ArrayList<>();
|
|
|
Page<Notification> page = notificationService.notificationPagen(new Page<Notification>(request, response), notifi);
|
|
|
-
|
|
|
String[] IdArr = null;
|
|
|
String[] porductIDs = null;
|
|
|
String[] shopIDs = null;
|
|
@@ -122,11 +96,9 @@ public class NotificationController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = {"hides"})
|
|
|
public String hides(Notification notification, HttpServletRequest request, HttpServletResponse response, Model model) {
|
|
|
-
|
|
|
notificationDao.hides();
|
|
|
return "redirect:" + Global.getAdminPath() + "/sys/Notification/list";
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|
|
|
|