From 3b388a57b267ff1d72886e6149f1ed4159e6dc49 Mon Sep 17 00:00:00 2001 From: kira <164851225@qq.com> Date: Wed, 11 Jul 2018 14:28:20 +0800 Subject: [PATCH] fixbug unread notice --- .../manage/appclient/core/impls/RetailAppServiceImp.java | 1 + .../payment/manage/mappers/notice/NoticePartnerMapper.xml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java index 57dadf95b..b06e596a6 100644 --- a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java +++ b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java @@ -1160,6 +1160,7 @@ public class RetailAppServiceImp implements RetailAppService { JSONObject unReadParams = new JSONObject(); unReadParams.put("client_id", client_id); unReadParams.put("status", 0); + unReadParams.put("is_to_app",0); int counts = noticePartnerMapper.countNoticePartner(unReadParams); notice.put("unReadCounts", counts); notice.put("type", "notice"); diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/notice/NoticePartnerMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/notice/NoticePartnerMapper.xml index 9ce2d1e10..6f0b045a0 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/notice/NoticePartnerMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/notice/NoticePartnerMapper.xml @@ -28,4 +28,12 @@ LEFT JOIN sys_accounts a ON a.account_id = nc.read_id WHERE nc.status = '1' AND nc.notice_id = #{notice_id} + + \ No newline at end of file