商户管理增加merchant_id筛选

master
yuan 7 years ago
parent e2b3d6c686
commit 580ea4ee05

@ -49,6 +49,7 @@ public class PartnerQuery {
private boolean apply_to_back = false; private boolean apply_to_back = false;
private boolean bd_upload_material = false; private boolean bd_upload_material = false;
private boolean is_valid = false; private boolean is_valid = false;
private String merchant_id;
public String getClient_moniker() { public String getClient_moniker() {
return StringUtils.isEmpty(client_moniker) ? null : client_moniker; return StringUtils.isEmpty(client_moniker) ? null : client_moniker;
@ -208,6 +209,9 @@ public class PartnerQuery {
if (bd_upload_material){ if (bd_upload_material){
param.put("bd_upload_material",true); param.put("bd_upload_material",true);
} }
if (merchant_id != null){
param.put("merchant_id",merchant_id);
}
return param; return param;
} }
@ -448,4 +452,12 @@ public class PartnerQuery {
public void setBd(String bd) { public void setBd(String bd) {
this.bd = bd; this.bd = bd;
} }
public String getMerchant_id() {
return merchant_id;
}
public void setMerchant_id(String merchant_id) {
this.merchant_id = merchant_id;
}
} }

@ -106,6 +106,9 @@
<if test="state!=null"> <if test="state!=null">
and c.state=#{state} and c.state=#{state}
</if> </if>
<if test="merchant_id!=null">
and c.merchant_id=#{merchant_id}
</if>
<if test="temp_mch_id!=null"> <if test="temp_mch_id!=null">
and locate(c.sub_merchant_id,#{temp_mch_id})&gt;0 and c.skip_clearing=0 and and locate(c.sub_merchant_id,#{temp_mch_id})&gt;0 and c.skip_clearing=0 and
locate(c.client_moniker,#{temp_mch_id_source})&lt;=0 locate(c.client_moniker,#{temp_mch_id_source})&lt;=0

@ -11,6 +11,7 @@
{{paymentInfo.sub_merchant_id||'Not Configure'}} {{paymentInfo.sub_merchant_id||'Not Configure'}}
<a role="button" ng-click="ctrl.editSubMerchant=true" ng-if="'011'|withRole"><i class="fa fa-edit"></i></a> <a role="button" ng-click="ctrl.editSubMerchant=true" ng-if="'011'|withRole"><i class="fa fa-edit"></i></a>
<i class="fa fa-clock-o text-danger" title="Using temp Sub Merchant ID" ng-if="paymentInfo.temp_sub_merchant"></i> <i class="fa fa-clock-o text-danger" title="Using temp Sub Merchant ID" ng-if="paymentInfo.temp_sub_merchant"></i>
<span ng-if="('10'|withRole) &&paymentInfo.sub_merchant_id&&paymentInfo.merchant_id">{{paymentInfo.merchant_id}}</span>
</p> </p>
<div class="input-group" ng-if="ctrl.editSubMerchant"> <div class="input-group" ng-if="ctrl.editSubMerchant">
<input type="text" class="form-control" ng-model="paymentInfo.sub_merchant_id" <input type="text" class="form-control" ng-model="paymentInfo.sub_merchant_id"

@ -113,6 +113,18 @@
ng-model="params.sub_merchant_id"> ng-model="params.sub_merchant_id">
</div> </div>
</div> </div>
<div class="form-group col-sm-6" ng-if="('10'|withRole)">
<label class="control-label col-xs-4 col-sm-4">Merchant ID</label>
<div class="col-xs-6">
<select ng-model="params.merchant_id" id="merchant-select" class="form-control">
<option value="">All</option>
<option value="1307485301">1307485301(Tunnel Show1)</option>
<option value="1431999902">1431999902(Tunnel Show2)</option>
<option value="1487387142">1487387142(NAP)</option>
</select>
</div>
</div>
<!--BD City--> <!--BD City-->
<div class="form-group col-sm-6"> <div class="form-group col-sm-6">
<label class="control-label col-xs-4 col-sm-4" <label class="control-label col-xs-4 col-sm-4"

Loading…
Cancel
Save