|
|
|
@ -8,12 +8,10 @@ import com.hfkj.common.exception.ErrorHelp; |
|
|
|
|
import com.hfkj.common.exception.SysCode; |
|
|
|
|
import com.hfkj.dao.BsBankActivityRosterMapper; |
|
|
|
|
import com.hfkj.entity.*; |
|
|
|
|
import com.hfkj.service.BsBankActivityRosterRateService; |
|
|
|
|
import com.hfkj.service.BsBankActivityRosterService; |
|
|
|
|
import com.hfkj.service.BsBankActivityService; |
|
|
|
|
import com.hfkj.service.BsMerPlatformNoService; |
|
|
|
|
import com.hfkj.service.*; |
|
|
|
|
import com.hfkj.sysenum.PlatformTypeEnum; |
|
|
|
|
import org.apache.commons.collections4.ListUtils; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
@ -28,7 +26,8 @@ import java.util.*; |
|
|
|
|
**/ |
|
|
|
|
@Service("bankActivityRosterService") |
|
|
|
|
public class BsBankActivityRosterServiceImpl implements BsBankActivityRosterService { |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private CommonService commonService; |
|
|
|
|
@Resource |
|
|
|
|
private BsBankActivityRosterMapper bsBankActivityRosterMapper; |
|
|
|
|
@Resource |
|
|
|
@ -70,8 +69,13 @@ public class BsBankActivityRosterServiceImpl implements BsBankActivityRosterServ |
|
|
|
|
if (merPlatform == null) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的商户"); |
|
|
|
|
} |
|
|
|
|
// 客户经理
|
|
|
|
|
String refereeId = commonService.getDictionaryCodeName("ACTIVITY_BRANCH_BANK_NO", branchBankNo); |
|
|
|
|
if (StringUtils.isBlank(refereeId)) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "该支行暂无法报名"); |
|
|
|
|
} |
|
|
|
|
// 渠道报名
|
|
|
|
|
saasActivityService.customerRegisterActivity(activity.getActivityNo().toString(), branchBankNo, "110287", Arrays.asList(merPlatform.getCupNo())); |
|
|
|
|
saasActivityService.customerRegisterActivity(activity.getActivityNo().toString(), branchBankNo, refereeId, Arrays.asList(merPlatform.getCupNo())); |
|
|
|
|
|
|
|
|
|
BsBankActivityRoster bankActivityRoster = new BsBankActivityRoster(); |
|
|
|
|
bankActivityRoster.setBankActivityId(bankActivityId); |
|
|
|
|