|
@@ -22,6 +22,7 @@ import org.dromara.common.excel.utils.ExcelUtil;
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
|
|
+import org.dromara.common.message.kafka.aop.annotation.SyncDataToLocal;
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
import org.dromara.common.satoken.utils.LoginHelper;
|
|
import org.dromara.common.satoken.utils.LoginHelper;
|
|
@@ -35,6 +36,8 @@ import java.text.MessageFormat;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
+import static org.dromara.common.message.kafka.constant.MessageEventTypeConstants.*;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 账户钱包
|
|
* 账户钱包
|
|
|
* 前端访问路由地址为:/payment/ptBag
|
|
* 前端访问路由地址为:/payment/ptBag
|
|
@@ -134,6 +137,7 @@ public class PtBagController extends BaseController {
|
|
|
@SaCheckPermission("payment:ptBag:edit")
|
|
@SaCheckPermission("payment:ptBag:edit")
|
|
|
@Log(title = "账户钱包", businessType = BusinessType.UPDATE)
|
|
@Log(title = "账户钱包", businessType = BusinessType.UPDATE)
|
|
|
@RepeatSubmit()
|
|
@RepeatSubmit()
|
|
|
|
|
+ @SyncDataToLocal(eventType = ptCard_CHARGE_EDIT, sender = CARD_CENTER_SENDER)
|
|
|
@PostMapping("/recharge")
|
|
@PostMapping("/recharge")
|
|
|
public R<PurseInOutBo> recharge(@Validated(EditGroup.class) @RequestBody PurseInOutBo bo) {
|
|
public R<PurseInOutBo> recharge(@Validated(EditGroup.class) @RequestBody PurseInOutBo bo) {
|
|
|
return payOrderBusiness.recharge(bo);
|
|
return payOrderBusiness.recharge(bo);
|
|
@@ -145,6 +149,7 @@ public class PtBagController extends BaseController {
|
|
|
@SaCheckPermission("payment:ptBag:edit")
|
|
@SaCheckPermission("payment:ptBag:edit")
|
|
|
@Log(title = "账户钱包", businessType = BusinessType.UPDATE)
|
|
@Log(title = "账户钱包", businessType = BusinessType.UPDATE)
|
|
|
@RepeatSubmit()
|
|
@RepeatSubmit()
|
|
|
|
|
+ @SyncDataToLocal(eventType = ptCard_refund_EDIT, sender = CARD_CENTER_SENDER)
|
|
|
@PostMapping("/refund")
|
|
@PostMapping("/refund")
|
|
|
public R<PurseInOutBo> refund(@Validated(EditGroup.class) @RequestBody PurseInOutBo bo) {
|
|
public R<PurseInOutBo> refund(@Validated(EditGroup.class) @RequestBody PurseInOutBo bo) {
|
|
|
return payOrderBusiness.refund(bo);
|
|
return payOrderBusiness.refund(bo);
|
|
@@ -156,6 +161,7 @@ public class PtBagController extends BaseController {
|
|
|
@SaCheckPermission("cardOperation:ptCard:edit")
|
|
@SaCheckPermission("cardOperation:ptCard:edit")
|
|
|
@Log(title = "批量账户充值", businessType = BusinessType.UPDATE)
|
|
@Log(title = "批量账户充值", businessType = BusinessType.UPDATE)
|
|
|
@RepeatSubmit()
|
|
@RepeatSubmit()
|
|
|
|
|
+ @SyncDataToLocal(eventType = ptCard_multicharge_EDIT, sender = CARD_CENTER_SENDER)
|
|
|
@PostMapping("/recharge/{userIds}")
|
|
@PostMapping("/recharge/{userIds}")
|
|
|
public R<String> batchRecharge(@Validated(EditGroup.class) @RequestBody PurseInOutBo bo, @PathVariable Long[] userIds) {
|
|
public R<String> batchRecharge(@Validated(EditGroup.class) @RequestBody PurseInOutBo bo, @PathVariable Long[] userIds) {
|
|
|
// TODO 2024-10-30 09:49:36 luoyibo 这里最好是提前处理下工作站信息
|
|
// TODO 2024-10-30 09:49:36 luoyibo 这里最好是提前处理下工作站信息
|
|
@@ -190,6 +196,7 @@ public class PtBagController extends BaseController {
|
|
|
@SaCheckPermission("cardOperation:ptCard:edit")
|
|
@SaCheckPermission("cardOperation:ptCard:edit")
|
|
|
@Log(title = "账户批量退款", businessType = BusinessType.UPDATE)
|
|
@Log(title = "账户批量退款", businessType = BusinessType.UPDATE)
|
|
|
@RepeatSubmit()
|
|
@RepeatSubmit()
|
|
|
|
|
+ @SyncDataToLocal(eventType = ptCard_multirefund_EDIT, sender = CARD_CENTER_SENDER)
|
|
|
@PostMapping("/refund/{userIds}")
|
|
@PostMapping("/refund/{userIds}")
|
|
|
public R<Void> batchRefund(@Validated(EditGroup.class) @RequestBody PurseInOutBo bo, @PathVariable Long[] userIds) {
|
|
public R<Void> batchRefund(@Validated(EditGroup.class) @RequestBody PurseInOutBo bo, @PathVariable Long[] userIds) {
|
|
|
List<String> resultList = new ArrayList<>();
|
|
List<String> resultList = new ArrayList<>();
|
|
@@ -223,6 +230,7 @@ public class PtBagController extends BaseController {
|
|
|
@SaCheckPermission("cardOperation:ptCard:edit")
|
|
@SaCheckPermission("cardOperation:ptCard:edit")
|
|
|
@Log(title = "账户批量设置余额", businessType = BusinessType.UPDATE)
|
|
@Log(title = "账户批量设置余额", businessType = BusinessType.UPDATE)
|
|
|
@RepeatSubmit()
|
|
@RepeatSubmit()
|
|
|
|
|
+ @SyncDataToLocal(eventType = ptCard_multiSet_EDIT, sender = CARD_CENTER_SENDER)
|
|
|
@PostMapping("/recover/{userIds}")
|
|
@PostMapping("/recover/{userIds}")
|
|
|
public R<Void> batchRecover(@Validated(EditGroup.class) @RequestBody PtBagBo bo, @PathVariable Long[] userIds) {
|
|
public R<Void> batchRecover(@Validated(EditGroup.class) @RequestBody PtBagBo bo, @PathVariable Long[] userIds) {
|
|
|
bo.setUseType(SystemUseTypeEnum.CONSUME);
|
|
bo.setUseType(SystemUseTypeEnum.CONSUME);
|
|
@@ -241,6 +249,7 @@ public class PtBagController extends BaseController {
|
|
|
@SaCheckPermission("payment:ptBag:edit")
|
|
@SaCheckPermission("payment:ptBag:edit")
|
|
|
@Log(title = "账户钱包", businessType = BusinessType.UPDATE)
|
|
@Log(title = "账户钱包", businessType = BusinessType.UPDATE)
|
|
|
@RepeatSubmit()
|
|
@RepeatSubmit()
|
|
|
|
|
+ @SyncDataToLocal(eventType = ptCard_supply_EDIT, sender = CARD_CENTER_SENDER)
|
|
|
@PostMapping("/err-fill")
|
|
@PostMapping("/err-fill")
|
|
|
public R<PtBagVo> errFill(@Validated(EditGroup.class) @RequestBody ConsumptionBo bo) {
|
|
public R<PtBagVo> errFill(@Validated(EditGroup.class) @RequestBody ConsumptionBo bo) {
|
|
|
bo.setUseType(SystemUseTypeEnum.CONSUME);
|
|
bo.setUseType(SystemUseTypeEnum.CONSUME);
|