|
@@ -85,7 +85,11 @@ public class SysNotificationController extends BaseController
|
|
sysConfig.setConfigKey("business.sys.showAffiche");
|
|
sysConfig.setConfigKey("business.sys.showAffiche");
|
|
SysConfig sysConfig1 = sysConfigMapper.selectConfig(sysConfig);
|
|
SysConfig sysConfig1 = sysConfigMapper.selectConfig(sysConfig);
|
|
if(sysConfig1.getConfigValue().equals("true")){
|
|
if(sysConfig1.getConfigValue().equals("true")){
|
|
- return AjaxResult.success(sysNotificationService.query().eq("type", 2).in("status", 1, 2).list());
|
|
|
|
|
|
+ List<SysNotification> list = sysNotificationService.query().eq("type", 2).in("status", 1, 2).list();
|
|
|
|
+ if(!list.isEmpty()){
|
|
|
|
+ return AjaxResult.success(list);
|
|
|
|
+ }
|
|
|
|
+ return new AjaxResult(202, "", null);
|
|
}
|
|
}
|
|
return new AjaxResult(202, "", null);
|
|
return new AjaxResult(202, "", null);
|
|
}
|
|
}
|