add App 弹窗黑名单功能

master
luoyang 5 years ago
parent 7575fb56b9
commit 3f123eee41

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

@ -19,6 +19,7 @@ public class AppActBean {
private String act_img;
private String active_date;
private String expire_date;
private String partner_black_list;
public JSONObject toJsonParam(){
@ -28,6 +29,7 @@ public class AppActBean {
params.put("show_type",show_type);
params.put("act_img",act_img);
params.put("is_valid",is_valid);
params.put("partner_black_list", partner_black_list);
if (active_date != null) {
try {
Date fromDate = DateUtils.parseDate(active_date, DATE_PATTERNS);
@ -110,4 +112,12 @@ public class AppActBean {
public void setIs_valid(boolean is_valid) {
this.is_valid = is_valid;
}
public String getPartner_black_list() {
return partner_black_list;
}
public void setPartner_black_list(String partner_black_list) {
this.partner_black_list = partner_black_list;
}
}

@ -1584,6 +1584,13 @@ public class RetailAppServiceImp implements RetailAppService {
JSONObject latestAct = appActService.getAppActPopup();
if (latestAct != null) {
if (StringUtils.isNotBlank(latestAct.getString("partner_black_list"))) {
JSONObject client = clientManager.getClientInfo(clientId);
String[] blackList = latestAct.getString("partner_black_list").split(",");
if (client == null || Arrays.asList(blackList).contains(client.getString("client_moniker"))) {
return result;
}
}
latestAct.put("id", latestAct.getString("act_id"));
latestAct.put("url", latestAct.getString("act_url"));
latestAct.put("title", latestAct.getString("act_name"));

@ -87,6 +87,13 @@
ng-model="actDetail.act_url">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-4 col-sm-2" for="actDetail.act_url">商户黑名单(英文逗号隔开)</label>
<div class="col-xs-8 col-sm-4">
<Textarea type="text" class="form-control"
ng-model="actDetail.partner_black_list"/>
</div>
</div>
<div class="col-xs-12">
<div class="btn-group">
<button class="btn btn-success" type="button" ng-click="submit(appActForm)">

Loading…
Cancel
Save