|
|
|
@ -463,21 +463,45 @@ public class TestController { |
|
|
|
|
@ApiOperation(value = "saasActivity") |
|
|
|
|
public ResponseData saasActivity(@RequestParam(value = "code", required = false) String code) { |
|
|
|
|
try { |
|
|
|
|
return ResponseMsgUtil.success(saasActivityService.queryAgentActivityStatus("73")); |
|
|
|
|
// return ResponseMsgUtil.success(saasActivityService.queryAgentActivityStatus("73"));
|
|
|
|
|
// return ResponseMsgUtil.success(saasActivityService.agentRegisterActivity("73"));
|
|
|
|
|
// return ResponseMsgUtil.success(saasActivityService.queryAgentActivityList());
|
|
|
|
|
// return ResponseMsgUtil.success(saasActivityService.queryCustomerActivityStatus("73", "8226900445800HB"));
|
|
|
|
|
|
|
|
|
|
/* *//*********** 活动报名 *************//* |
|
|
|
|
/*********** 活动报名 *************/ |
|
|
|
|
List<String> externalCustomerNos = new ArrayList<>(); |
|
|
|
|
externalCustomerNos.add("8226900723007E8"); |
|
|
|
|
return ResponseMsgUtil.success(saasActivityService.customerRegisterActivity("73", null, externalCustomerNos)); |
|
|
|
|
*//******* 配置活动费率 *******/
|
|
|
|
|
/* String activityId = "73"; |
|
|
|
|
externalCustomerNos.add(code); |
|
|
|
|
// externalCustomerNos.add("8226900566100K0");
|
|
|
|
|
// externalCustomerNos.add("82269005714051G");
|
|
|
|
|
// externalCustomerNos.add("8226900899900CW");
|
|
|
|
|
// externalCustomerNos.add("822690058121BAY");
|
|
|
|
|
// externalCustomerNos.add("8226900899900CY");
|
|
|
|
|
// externalCustomerNos.add("822690058121BDR");
|
|
|
|
|
// externalCustomerNos.add("8226900729808JR");
|
|
|
|
|
// externalCustomerNos.add("8226900566100JV");
|
|
|
|
|
// externalCustomerNos.add("8226900566100JY");
|
|
|
|
|
// externalCustomerNos.add("8226900899900DF");
|
|
|
|
|
|
|
|
|
|
// 冉家坝支行
|
|
|
|
|
/* externalCustomerNos.add("8226900445800HS"); |
|
|
|
|
externalCustomerNos.add("82269005072004T"); |
|
|
|
|
externalCustomerNos.add("8226900421500NJ"); |
|
|
|
|
externalCustomerNos.add("822690053310F23");*/ |
|
|
|
|
|
|
|
|
|
// 合川支行
|
|
|
|
|
// externalCustomerNos.add("82269005399025K");
|
|
|
|
|
// externalCustomerNos.add("822690058121C65");
|
|
|
|
|
// externalCustomerNos.add("8226900899900DB");
|
|
|
|
|
// externalCustomerNos.add("822690053310F6C");
|
|
|
|
|
|
|
|
|
|
// return ResponseMsgUtil.success(saasActivityService.customerRegisterActivity("73", "315653022016", "110274",externalCustomerNos));
|
|
|
|
|
// return ResponseMsgUtil.success(saasActivityService.referee("8226900445800HS"));
|
|
|
|
|
/******* 配置活动费率 *******/ |
|
|
|
|
String activityId = "73"; |
|
|
|
|
String externalCustomerNo = code; |
|
|
|
|
JSONArray jsonArray = saasActivityService.queryCustomerRates(activityId, externalCustomerNo); |
|
|
|
|
return ResponseMsgUtil.success(jsonArray);*/ |
|
|
|
|
/* Map<String, Object> rate; |
|
|
|
|
return ResponseMsgUtil.success(jsonArray); |
|
|
|
|
/*Map<String, Object> rate; |
|
|
|
|
List<Map<String,Object>> rates = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
for (Object obj : jsonArray) { |
|
|
|
@ -487,8 +511,7 @@ public class TestController { |
|
|
|
|
rate.put("discountedRates", "0.0025"); |
|
|
|
|
rates.add(rate); |
|
|
|
|
} |
|
|
|
|
return ResponseMsgUtil.success(saasActivityService.customerRatesUpdate(activityId,externalCustomerNo, rates)); |
|
|
|
|
*/ |
|
|
|
|
return ResponseMsgUtil.success(saasActivityService.customerRatesUpdate(activityId,externalCustomerNo, rates));*/ |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error(e.getMessage(), e); |
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|