申请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.cmd.GoldReceiptCmd;
|
||||||
import com.red.circle.wallet.inner.model.dto.WalletReceiptResDTO;
|
import com.red.circle.wallet.inner.model.dto.WalletReceiptResDTO;
|
||||||
import com.red.circle.wallet.inner.model.enums.GoldOrigin;
|
import com.red.circle.wallet.inner.model.enums.GoldOrigin;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
@ -114,10 +116,12 @@ public class SendCpApplyCmdExe {
|
|||||||
|
|
||||||
cpApplyService.save(cpApply);
|
cpApplyService.save(cpApply);
|
||||||
|
|
||||||
|
Map<Object, Object> map = OfficialNoticeUtils.buildUserProfile(userProfile);
|
||||||
|
map.put("applyType", isReconcile ? "RECONCILE" : "APPLY");
|
||||||
officialNoticeClient.send(NoticeExtTemplateTypeCmd.builder()
|
officialNoticeClient.send(NoticeExtTemplateTypeCmd.builder()
|
||||||
.toAccount(cmd.getAcceptApplyUserId())
|
.toAccount(cmd.getAcceptApplyUserId())
|
||||||
.noticeType(OfficialNoticeTypeEnum.CP_BUILD)
|
.noticeType(OfficialNoticeTypeEnum.CP_BUILD)
|
||||||
.templateParam(OfficialNoticeUtils.buildUserProfile(userProfile))
|
.templateParam(map)
|
||||||
.expand(cpApply.getId())
|
.expand(cpApply.getId())
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user