diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/controller/AdminHSController.java b/HSLink-back/src/main/java/com/qinxx/hslink/controller/AdminHSController.java index 8f96a85..193a6ac 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/controller/AdminHSController.java +++ b/HSLink-back/src/main/java/com/qinxx/hslink/controller/AdminHSController.java @@ -107,4 +107,17 @@ public class AdminHSController { return result; } + /** + * 获取文我的页面未操作数字 + * @param param + * @return + */ + @PostMapping("/getMyPageNumber") + @ResponseBody + public Map getMyPageNumber(@RequestBody Map param){ + Map result = new HashMap<>(); + result = AdminhsService.getMyPageNumber(param); + return result; + } + } diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/controller/HSController.java b/HSLink-back/src/main/java/com/qinxx/hslink/controller/HSController.java index 959fd79..3ab1406 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/controller/HSController.java +++ b/HSLink-back/src/main/java/com/qinxx/hslink/controller/HSController.java @@ -444,13 +444,12 @@ public class HSController { } /** - * 测试接口 + * 获取首页tabBar标记数字 */ - @PostMapping("/test") + @PostMapping("/getTabBarNumber") @ResponseBody - public Map test(String page, String limit){ - Map result = new HashMap<>(); - + public Map getTabBarNumber(@RequestBody Map param){ + Map result = hsService.getTabBarNumber(param); return result; } diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/dao/AdminHSMapper.java b/HSLink-back/src/main/java/com/qinxx/hslink/dao/AdminHSMapper.java index 6eac304..4b11bf4 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/dao/AdminHSMapper.java +++ b/HSLink-back/src/main/java/com/qinxx/hslink/dao/AdminHSMapper.java @@ -52,4 +52,11 @@ public interface AdminHSMapper { * @return */ int answerHelp(Map param); + + /** + * 获取文我的页面未操作数字 + * @param param + * @return + */ + Map getMyPageNumber(Map param); } diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/dao/HSLinkMapper.java b/HSLink-back/src/main/java/com/qinxx/hslink/dao/HSLinkMapper.java index b64a3d5..55f3353 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/dao/HSLinkMapper.java +++ b/HSLink-back/src/main/java/com/qinxx/hslink/dao/HSLinkMapper.java @@ -294,4 +294,11 @@ public interface HSLinkMapper { * @return */ int updateReadNumber(Map param); + + /** + * 获取tabBar数字(未读消息) + * @param param + * @return + */ + int getTabBarUnreadNumber(Map param); } diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/AdminHSMapper.xml b/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/AdminHSMapper.xml index b933572..b5859fe 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/AdminHSMapper.xml +++ b/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/AdminHSMapper.xml @@ -69,4 +69,11 @@ ORDER BY create_time desc + + + \ No newline at end of file diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/HSLinkMapper.xml b/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/HSLinkMapper.xml index 1f96b90..8144f88 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/HSLinkMapper.xml +++ b/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/HSLinkMapper.xml @@ -551,4 +551,10 @@ release_time DESC + + + \ No newline at end of file diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/service/AdminHSService.java b/HSLink-back/src/main/java/com/qinxx/hslink/service/AdminHSService.java index 2b676bb..48622bc 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/service/AdminHSService.java +++ b/HSLink-back/src/main/java/com/qinxx/hslink/service/AdminHSService.java @@ -48,4 +48,11 @@ public interface AdminHSService { * @return */ Map answerHelp(Map param); + + /** + * 获取文我的页面未操作数字 + * @param param + * @return + */ + Map getMyPageNumber(Map param); } diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/service/HSService.java b/HSLink-back/src/main/java/com/qinxx/hslink/service/HSService.java index c2267be..83af39c 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/service/HSService.java +++ b/HSLink-back/src/main/java/com/qinxx/hslink/service/HSService.java @@ -258,4 +258,11 @@ public interface HSService { * @return */ Map updateReadNumber(Map param); + + /** + * 获取首页tabBar标记数字 + * @param param + * @return + */ + Map getTabBarNumber(Map param); } \ No newline at end of file diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/service/impl/AdminHSServiceImpl.java b/HSLink-back/src/main/java/com/qinxx/hslink/service/impl/AdminHSServiceImpl.java index 7c5e7a8..e44343f 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/service/impl/AdminHSServiceImpl.java +++ b/HSLink-back/src/main/java/com/qinxx/hslink/service/impl/AdminHSServiceImpl.java @@ -126,4 +126,18 @@ public class AdminHSServiceImpl implements AdminHSService { result.put("success",true); return result; } + + /** + * 获取文我的页面未操作数字 + * @param param + * @return + */ + @Override + public Map getMyPageNumber(Map param) { + Map result = new HashMap<>(); + Map res = adminHSMapper.getMyPageNumber(param); + result.put("data",res); + result.put("success",true); + return result; + } } diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/service/impl/HSServiceImpl.java b/HSLink-back/src/main/java/com/qinxx/hslink/service/impl/HSServiceImpl.java index f2d932b..a1b29f3 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/service/impl/HSServiceImpl.java +++ b/HSLink-back/src/main/java/com/qinxx/hslink/service/impl/HSServiceImpl.java @@ -700,6 +700,21 @@ public class HSServiceImpl implements HSService { return result; } + /** + * 获取tabBar数字 + * @param param + * @return + */ + @Override + public Map getTabBarNumber(Map param) { + Map result = new HashMap<>(); + Map res = new HashMap<>(); + res.put("unreadNumber",hsLinkMapper.getTabBarUnreadNumber(param)); + result.put("data",res); + result.put("success",true); + return result; + } + /** * 返回参数 * @param flag