|
@@ -18,6 +18,8 @@ import com.thinkgem.jeesite.common.persistence.Page;
|
|
|
import com.thinkgem.jeesite.common.web.BaseController;
|
|
|
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;
|
|
@@ -39,7 +41,9 @@ import java.util.List;
|
|
|
* @author : Charles
|
|
|
* @date : 2022/7/20
|
|
|
*/
|
|
|
-@Controller
|
|
|
+//@Controller
|
|
|
+@Configuration
|
|
|
+@EnableScheduling
|
|
|
@RequestMapping(value = "${adminPath}/sys/Notification")
|
|
|
public class NotificationController extends BaseController {
|
|
|
|
|
@@ -539,9 +543,8 @@ if(count<=0){
|
|
|
}
|
|
|
constraint=jedis.rpop("constraint");
|
|
|
System.out.println(jedis.rpop("constraint"));
|
|
|
- if("0".equals(constraint)){
|
|
|
+// if("0".equals(constraint)){
|
|
|
for (int i=0;i<pro.size();i++){
|
|
|
-
|
|
|
MessageCenter messageCenter = new MessageCenter();
|
|
|
messageCenter.setShopId(pro.get(i).getShopID());
|
|
|
messageCenter.setClubId(null);
|
|
@@ -571,7 +574,6 @@ if(count<=0){
|
|
|
}
|
|
|
//械字号资质证书1个月后过期
|
|
|
for (int i=0;i<pro1.size();i++){
|
|
|
-
|
|
|
MessageCenter messageCenter = new MessageCenter();
|
|
|
messageCenter.setShopId(pro1.get(i).getShopID());
|
|
|
messageCenter.setClubId(null);
|
|
@@ -600,7 +602,6 @@ if(count<=0){
|
|
|
}
|
|
|
//械字号资质证书7日后过期
|
|
|
for (int i=0;i<pro2.size();i++){
|
|
|
-
|
|
|
MessageCenter messageCenter = new MessageCenter();
|
|
|
messageCenter.setShopId(pro2.get(i).getShopID());
|
|
|
messageCenter.setClubId(null);
|
|
@@ -727,7 +728,7 @@ if(count<=0){
|
|
|
name="";
|
|
|
shopID="";
|
|
|
}
|
|
|
- }
|
|
|
+// }
|
|
|
jedis.lpush("constraint","1");
|
|
|
}
|
|
|
|