提交代码

yy_dev
胡锐 2 years ago
parent 007ae38b38
commit f2cfd90ef9
  1. 7
      cweb/src/main/java/com/cweb/controller/BsBankActivityController.java
  2. 1
      service/src/main/java/com/hfkj/channel/saas/SaasActivityService.java
  3. 2
      service/src/main/java/com/hfkj/service/BsBankActivityRosterService.java
  4. 4
      service/src/main/java/com/hfkj/service/impl/BsBankActivityRosterServiceImpl.java

@ -134,11 +134,14 @@ public class BsBankActivityController {
@ApiOperation(value = "报名活动") @ApiOperation(value = "报名活动")
public ResponseData enrollActivity(@RequestBody JSONObject body) { public ResponseData enrollActivity(@RequestBody JSONObject body) {
try { try {
if (body == null || body.getLong("bankActivityId") == null || body.getLong("merId") == null) { if (body == null
|| body.getLong("bankActivityId") == null
|| body.getLong("merId") == null
|| StringUtils.isBlank(body.getString("branchBankNo"))) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
} }
bsBankActivityRosterService.enrollActivity(body.getLong("bankActivityId"),body.getLong("merId")); bsBankActivityRosterService.enrollActivity(body.getLong("bankActivityId"), body.getLong("merId"), body.getString("branchBankNo"));
return ResponseMsgUtil.success("操作成功"); return ResponseMsgUtil.success("操作成功");

@ -150,6 +150,7 @@ public class SaasActivityService {
Map<String,Object> param = new HashMap<>(); Map<String,Object> param = new HashMap<>();
param.put("activityId", activityId); param.put("activityId", activityId);
param.put("branchBankNo", branchBankNo); param.put("branchBankNo", branchBankNo);
param.put("refereeId", 0);
param.put("externalCustomerNos", externalCustomerNos); param.put("externalCustomerNos", externalCustomerNos);
Map<String,Object> header = new HashMap<>(); Map<String,Object> header = new HashMap<>();

@ -24,7 +24,7 @@ public interface BsBankActivityRosterService {
* @param bankActivityId * @param bankActivityId
* @param merId * @param merId
*/ */
void enrollActivity(Long bankActivityId, Long merId) throws Exception; void enrollActivity(Long bankActivityId, Long merId, String branchBankNo) throws Exception;
/** /**
* 配置费率 * 配置费率

@ -54,7 +54,7 @@ public class BsBankActivityRosterServiceImpl implements BsBankActivityRosterServ
@Override @Override
@Transactional(propagation= Propagation.REQUIRES_NEW) @Transactional(propagation= Propagation.REQUIRES_NEW)
public void enrollActivity(Long bankActivityId, Long merId) throws Exception { public void enrollActivity(Long bankActivityId, Long merId, String branchBankNo) throws Exception {
// 查询报名 // 查询报名
BsBankActivityRoster roster = getActivityRoster(bankActivityId, merId); BsBankActivityRoster roster = getActivityRoster(bankActivityId, merId);
if (roster != null) { if (roster != null) {
@ -71,7 +71,7 @@ public class BsBankActivityRosterServiceImpl implements BsBankActivityRosterServ
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的商户"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的商户");
} }
// 渠道报名 // 渠道报名
saasActivityService.customerRegisterActivity(activity.getActivityNo().toString(), null, Arrays.asList(merPlatform.getCupNo())); saasActivityService.customerRegisterActivity(activity.getActivityNo().toString(), branchBankNo, Arrays.asList(merPlatform.getCupNo()));
BsBankActivityRoster bankActivityRoster = new BsBankActivityRoster(); BsBankActivityRoster bankActivityRoster = new BsBankActivityRoster();
bankActivityRoster.setBankActivityId(bankActivityId); bankActivityRoster.setBankActivityId(bankActivityId);

Loading…
Cancel
Save