Merge remote-tracking branch 'origin/develop' into develop

master
yixian 4 years ago
commit 489cafc4c5

@ -9,7 +9,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>2.3.49</version> <version>2.3.50</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>2.4.0</jib-maven-plugin.version> <jib-maven-plugin.version>2.4.0</jib-maven-plugin.version>

@ -29,7 +29,7 @@ public interface ClientMapper {
List<JSONObject> listValidClient(); List<JSONObject> listValidClient();
List<JSONObject> listValidClientFor30Days(); List<JSONObject> listValidClientFor30Days(JSONObject params);
List<JSONObject> listGreenChannel(JSONObject params); List<JSONObject> listGreenChannel(JSONObject params);

@ -117,9 +117,9 @@ public class NoticeManageImpl implements NoticeManage {
notice.put("create_time", date); notice.put("create_time", date);
notice.put("create_id", manager.getString("manager_id")); notice.put("create_id", manager.getString("manager_id"));
notice.put("create_name", manager.getString("display_name")); notice.put("create_name", manager.getString("display_name"));
if (!notice.getBoolean("merchants_type")){ if (notice.getInteger("merchants_type") != 1){
StringBuilder sendClients = new StringBuilder(); StringBuilder sendClients = new StringBuilder();
List<JSONObject> clients = clientMapper.listValidClientFor30Days(); List<JSONObject> clients = clientMapper.listValidClientFor30Days(notice);
clients.forEach(c -> { clients.forEach(c -> {
if (c.getInteger("parent_client_id")==null || c.getInteger("parent_client_id")!=9){ if (c.getInteger("parent_client_id")==null || c.getInteger("parent_client_id")!=9){
String p = c.getString("client_moniker")+","; 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_id", manager.getString("manager_id"));
notice.put("send_name", manager.getString("display_name")); notice.put("send_name", manager.getString("display_name"));
} }
if (!notice.getBoolean("merchants_type")){ if (notice.getInteger("merchants_type") != 1){
StringBuilder sendClients = new StringBuilder(); StringBuilder sendClients = new StringBuilder();
List<JSONObject> clients = clientMapper.listValidClientFor30Days(); List<JSONObject> clients = clientMapper.listValidClientFor30Days(notice);
clients.forEach(c -> { clients.forEach(c -> {
if (c.getInteger("parent_client_id")==null || c.getInteger("parent_client_id")!=9){ if (c.getInteger("parent_client_id")==null || c.getInteger("parent_client_id")!=9){
String p = c.getString("client_moniker")+","; String p = c.getString("client_moniker")+",";

@ -12,9 +12,17 @@
sc.client_moniker, sc.client_moniker,
sc.parent_client_id sc.parent_client_id
FROM statistics_customer_order sco, FROM statistics_customer_order sco,
sys_clients sc sys_clients sc,
sys_client_config cc
WHERE sco.date >= DATE_SUB(CURDATE(), INTERVAL 30 DAY) WHERE sco.date >= DATE_SUB(CURDATE(), INTERVAL 30 DAY)
AND sco.client_id = sc.client_id AND sco.client_id = sc.client_id
AND sc.client_id = cc.client_id
<if test="merchants_type == 2">
AND cc.enable_cross_payment = 1
</if>
<if test="merchants_type == 3">
AND cc.enable_card_payment = 1
</if>
</select> </select>
<select id="listGreenChannel" resultType="com.alibaba.fastjson.JSONObject"> <select id="listGreenChannel" resultType="com.alibaba.fastjson.JSONObject">
select m.manager_id manager_id,m.display_name display_name, m.wx_openid wx_openid , c.client_moniker select m.manager_id manager_id,m.display_name display_name, m.wx_openid wx_openid , c.client_moniker

@ -9,10 +9,22 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
"label": "All", "label": "All",
"value": 0 "value": 0
}, },
{
//跨境商户
"label": "Cross-border",
"value": 2
},
{
//卡支付商户
"label": "Card",
"value": 3
},
{ {
"label": "Custom", "label": "Custom",
"value": 1 "value": 1
}]; }
];
var app = angular.module('noticeApp', ['ui.bootstrap', 'ui.router', 'frapontillo.bootstrap-switch', 'ngFileUpload', 'ng.uditor']); var app = angular.module('noticeApp', ['ui.bootstrap', 'ui.router', 'frapontillo.bootstrap-switch', 'ngFileUpload', 'ng.uditor']);
app.config(['$stateProvider', function ($stateProvider) { app.config(['$stateProvider', function ($stateProvider) {
@ -104,6 +116,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
}; };
$scope.today = new Date(); $scope.today = new Date();
$scope.save = function (form) { $scope.save = function (form) {
debugger
if (form.$invalid) { if (form.$invalid) {
angular.forEach(form, function (item, key) { angular.forEach(form, function (item, key) {
if (key.indexOf('$') < 0) { if (key.indexOf('$') < 0) {

Loading…
Cancel
Save