申请cp接口新增参数
This commit is contained in:
parent
5a7d245603
commit
e43f61cdeb
@ -30,6 +30,8 @@ import com.red.circle.wallet.inner.endpoint.wallet.WalletGoldClient;
|
||||
import com.red.circle.wallet.inner.model.cmd.GoldReceiptCmd;
|
||||
import com.red.circle.wallet.inner.model.dto.WalletReceiptResDTO;
|
||||
import com.red.circle.wallet.inner.model.enums.GoldOrigin;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
@ -114,10 +116,12 @@ public class SendCpApplyCmdExe {
|
||||
|
||||
cpApplyService.save(cpApply);
|
||||
|
||||
Map<Object, Object> map = OfficialNoticeUtils.buildUserProfile(userProfile);
|
||||
map.put("applyType", isReconcile ? "RECONCILE" : "APPLY");
|
||||
officialNoticeClient.send(NoticeExtTemplateTypeCmd.builder()
|
||||
.toAccount(cmd.getAcceptApplyUserId())
|
||||
.noticeType(OfficialNoticeTypeEnum.CP_BUILD)
|
||||
.templateParam(OfficialNoticeUtils.buildUserProfile(userProfile))
|
||||
.templateParam(map)
|
||||
.expand(cpApply.getId())
|
||||
.build()
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user