|
|
|
@ -110,6 +110,7 @@ public class AliforexcelServiceImpl implements AliforexcelService {
|
|
|
|
|
JSONObject exception = new JSONObject();
|
|
|
|
|
exception.put("client_moniker", client.getString("client_moniker"));
|
|
|
|
|
exception.put("return_msg", e.getMessage());
|
|
|
|
|
exception.put("bd_name", client.getString("bd_user_name"));
|
|
|
|
|
lessInfoMerchant.add(exception);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
@ -139,6 +140,30 @@ public class AliforexcelServiceImpl implements AliforexcelService {
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject getLessPartnerInfo() {
|
|
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
List<JSONObject> lessInfoMerchant = new ArrayList<>();
|
|
|
|
|
List<Integer> useAlipayOnlineMerchant = transactionMapper.useAlipayOnlineClients();
|
|
|
|
|
for (int clientId : useAlipayOnlineMerchant) {
|
|
|
|
|
JSONObject client = clientMapper.findClient(clientId);
|
|
|
|
|
if (client == null) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
checkPartnerInfo(client);
|
|
|
|
|
} catch (InvalidParameterException e) {
|
|
|
|
|
JSONObject exception = new JSONObject();
|
|
|
|
|
exception.put("client_moniker", client.getString("client_moniker"));
|
|
|
|
|
exception.put("return_msg", e.getMessage());
|
|
|
|
|
exception.put("bd_name", client.getString("bd_user_name"));
|
|
|
|
|
lessInfoMerchant.add(exception);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
result.put("less_info_merchant", lessInfoMerchant);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void checkPartnerInfo(JSONObject client) {
|
|
|
|
|
if (client == null) {
|
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
|