diff --git a/pom.xml b/pom.xml
index ac06c5b07..9cd5a1ab9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
4.0.0
manage
- 2.3.49
+ 2.3.50
UTF-8
2.4.0
diff --git a/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientMapper.java b/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientMapper.java
index dda97f360..5a6b78aeb 100644
--- a/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientMapper.java
+++ b/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientMapper.java
@@ -29,7 +29,7 @@ public interface ClientMapper {
List listValidClient();
- List listValidClientFor30Days();
+ List listValidClientFor30Days(JSONObject params);
List listGreenChannel(JSONObject params);
diff --git a/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java b/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java
index dc4ed8d40..10379e81e 100644
--- a/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java
+++ b/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java
@@ -117,9 +117,9 @@ public class NoticeManageImpl implements NoticeManage {
notice.put("create_time", date);
notice.put("create_id", manager.getString("manager_id"));
notice.put("create_name", manager.getString("display_name"));
- if (!notice.getBoolean("merchants_type")){
+ if (notice.getInteger("merchants_type") != 1){
StringBuilder sendClients = new StringBuilder();
- List clients = clientMapper.listValidClientFor30Days();
+ List clients = clientMapper.listValidClientFor30Days(notice);
clients.forEach(c -> {
if (c.getInteger("parent_client_id")==null || c.getInteger("parent_client_id")!=9){
String p = c.getString("client_moniker")+",";
@@ -177,10 +177,10 @@ public class NoticeManageImpl implements NoticeManage {
notice.put("send_id", manager.getString("manager_id"));
notice.put("send_name", manager.getString("display_name"));
}
- if (!notice.getBoolean("merchants_type")){
+ if (notice.getInteger("merchants_type") != 1){
StringBuilder sendClients = new StringBuilder();
- List clients = clientMapper.listValidClientFor30Days();
+ List clients = clientMapper.listValidClientFor30Days(notice);
clients.forEach(c -> {
if (c.getInteger("parent_client_id")==null || c.getInteger("parent_client_id")!=9){
String p = c.getString("client_moniker")+",";
diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml
index 4492a60df..f312069b6 100644
--- a/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml
+++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml
@@ -12,9 +12,17 @@
sc.client_moniker,
sc.parent_client_id
FROM statistics_customer_order sco,
- sys_clients sc
+ sys_clients sc,
+ sys_client_config cc
WHERE sco.date >= DATE_SUB(CURDATE(), INTERVAL 30 DAY)
AND sco.client_id = sc.client_id
+ AND sc.client_id = cc.client_id
+
+ AND cc.enable_cross_payment = 1
+
+
+ AND cc.enable_card_payment = 1
+