|
|
@ -5695,7 +5695,15 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 修改指定微信子进件商户信息
|
|
|
|
|
|
|
|
* @param clientMoniker
|
|
|
|
|
|
|
|
* @param merchantAppId
|
|
|
|
|
|
|
|
* @param subMerchantIdApply
|
|
|
|
|
|
|
|
* @param manager
|
|
|
|
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@CacheEvict(value = ":all_sub_merchant_id_applices:", key = "#clientMoniker")
|
|
|
|
public void changeApplicationSubMerchantById(String clientMoniker, String merchantAppId, NewSubMerchantIdApply subMerchantIdApply, JSONObject manager){
|
|
|
|
public void changeApplicationSubMerchantById(String clientMoniker, String merchantAppId, NewSubMerchantIdApply subMerchantIdApply, JSONObject manager){
|
|
|
|
JSONObject client = clientMapper.findClientByMoniker(clientMoniker);
|
|
|
|
JSONObject client = clientMapper.findClientByMoniker(clientMoniker);
|
|
|
|
if (client == null) {
|
|
|
|
if (client == null) {
|
|
|
@ -5719,11 +5727,24 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
if (StringUtils.isNotEmpty(sub_merchant_id)) {
|
|
|
|
if (StringUtils.isNotEmpty(sub_merchant_id)) {
|
|
|
|
params.put("sub_merchant_id", sub_merchant_id);
|
|
|
|
params.put("sub_merchant_id", sub_merchant_id);
|
|
|
|
sysWxMerchantApplyMapper.updateSubMerchantInfoByMerchantAppId(params);
|
|
|
|
sysWxMerchantApplyMapper.updateSubMerchantInfoByMerchantAppId(params);
|
|
|
|
|
|
|
|
clearCacheSubMerchantIdApplices(clientMoniker);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
throw new BadRequestException(elem.elementText("return_msg"));
|
|
|
|
throw new BadRequestException(elem.elementText("return_msg"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public JSONObject querySubMerchantStatus(String clientMoniker,String subMerchantId){
|
|
|
|
|
|
|
|
JSONObject client = clientMapper.findClientByMoniker(clientMoniker);
|
|
|
|
|
|
|
|
if (client == null) {
|
|
|
|
|
|
|
|
throw new BadRequestException("partner code is not exists!");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Element elem = wxPayClient.querySubMerchant(client.getString("merchant_id"), subMerchantId);
|
|
|
|
|
|
|
|
JSONObject object = new JSONObject();
|
|
|
|
|
|
|
|
object.put("apply_status", elem.elementText("result_code"));
|
|
|
|
|
|
|
|
return object;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void registerAlipayGms(String clientMoniker, JSONObject manager) {
|
|
|
|
public void registerAlipayGms(String clientMoniker, JSONObject manager) {
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|