|
@@ -9,6 +9,7 @@ import jakarta.validation.constraints.NotEmpty;
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
|
|
+import org.dromara.backstage.aop.annotation.SyncDataToLocal;
|
|
|
import org.dromara.backstage.cardCenter.domain.bo.PtCardBo;
|
|
import org.dromara.backstage.cardCenter.domain.bo.PtCardBo;
|
|
|
import org.dromara.backstage.cardCenter.domain.vo.PtCardVo;
|
|
import org.dromara.backstage.cardCenter.domain.vo.PtCardVo;
|
|
|
import org.dromara.backstage.cardCenter.service.IPtCardService;
|
|
import org.dromara.backstage.cardCenter.service.IPtCardService;
|
|
@@ -46,6 +47,8 @@ import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
+import static org.dromara.common.message.kafka.constant.MessageEventTypeConstants.*;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 一卡通账户
|
|
* 一卡通账户
|
|
|
* 前端访问路由地址为:/payment/ptUserAccount
|
|
* 前端访问路由地址为:/payment/ptUserAccount
|
|
@@ -258,6 +261,7 @@ public class PtUserAccountController extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@SaCheckPermission("payment:ptUserAccount:edit")
|
|
@SaCheckPermission("payment:ptUserAccount:edit")
|
|
|
@Log(title = "支付账户管理", businessType = BusinessType.UPDATE)
|
|
@Log(title = "支付账户管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
+ @SyncDataToLocal(eventType = ptUserAccount_FREEZE_EDIT,sender = USER_ACCOUNT_SENDER)
|
|
|
@PutMapping("/{freezeStatus}/{userIds}")
|
|
@PutMapping("/{freezeStatus}/{userIds}")
|
|
|
public R<Void> batchChangeFreezeStatus(@PathVariable String freezeStatus,@PathVariable Long[] userIds) {
|
|
public R<Void> batchChangeFreezeStatus(@PathVariable String freezeStatus,@PathVariable Long[] userIds) {
|
|
|
return toAjax(ptUserAccountService.updateFreezeStatus(userIds,freezeStatus));
|
|
return toAjax(ptUserAccountService.updateFreezeStatus(userIds,freezeStatus));
|
|
@@ -270,6 +274,7 @@ public class PtUserAccountController extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@SaCheckPermission("payment:ptUserAccount:edit")
|
|
@SaCheckPermission("payment:ptUserAccount:edit")
|
|
|
@Log(title = "支付账户管理", businessType = BusinessType.UPDATE)
|
|
@Log(title = "支付账户管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
+ @SyncDataToLocal(eventType = ptUserAccount_RESETTIME_EDIT,sender = USER_ACCOUNT_SENDER)
|
|
|
@PutMapping("/resetLifespan/{lifespan}/{userIds}")
|
|
@PutMapping("/resetLifespan/{lifespan}/{userIds}")
|
|
|
public R<Void> batchResetLifespan(@PathVariable String lifespan,@PathVariable Long[] userIds) {
|
|
public R<Void> batchResetLifespan(@PathVariable String lifespan,@PathVariable Long[] userIds) {
|
|
|
return toAjax(ptUserAccountService.resetLifespan(userIds,lifespan));
|
|
return toAjax(ptUserAccountService.resetLifespan(userIds,lifespan));
|
|
@@ -282,6 +287,7 @@ public class PtUserAccountController extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@SaCheckPermission("payment:ptUserAccount:edit")
|
|
@SaCheckPermission("payment:ptUserAccount:edit")
|
|
|
@Log(title = "支付账户管理", businessType = BusinessType.UPDATE)
|
|
@Log(title = "支付账户管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
+ @SyncDataToLocal(eventType = ptUserAccount_RESETTYPE_EDIT,sender = USER_ACCOUNT_SENDER)
|
|
|
@PutMapping("/resetCardType/{cardType}/{userIds}")
|
|
@PutMapping("/resetCardType/{cardType}/{userIds}")
|
|
|
public R<Void> batchResetCardType(@PathVariable String cardType,@PathVariable Long[] userIds) {
|
|
public R<Void> batchResetCardType(@PathVariable String cardType,@PathVariable Long[] userIds) {
|
|
|
return toAjax(ptUserAccountService.resetCardType(userIds,cardType));
|
|
return toAjax(ptUserAccountService.resetCardType(userIds,cardType));
|
|
@@ -306,6 +312,7 @@ public class PtUserAccountController extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@SaCheckPermission("payment:ptUserAccount:edit")
|
|
@SaCheckPermission("payment:ptUserAccount:edit")
|
|
|
@Log(title = "支付账户管理", businessType = BusinessType.UPDATE)
|
|
@Log(title = "支付账户管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
+ @SyncDataToLocal(eventType = ptUserAccount_OPEN_EDIT,sender = USER_ACCOUNT_SENDER)
|
|
|
@PutMapping("/open/{userIds}")
|
|
@PutMapping("/open/{userIds}")
|
|
|
public R<Void> batchOpenAccount(@PathVariable Long[] userIds) {
|
|
public R<Void> batchOpenAccount(@PathVariable Long[] userIds) {
|
|
|
return toAjax(ptUserAccountService.openAccount(userIds));
|
|
return toAjax(ptUserAccountService.openAccount(userIds));
|
|
@@ -318,6 +325,7 @@ public class PtUserAccountController extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@SaCheckPermission("payment:ptUserAccount:edit")
|
|
@SaCheckPermission("payment:ptUserAccount:edit")
|
|
|
@Log(title = "支付账户管理", businessType = BusinessType.UPDATE)
|
|
@Log(title = "支付账户管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
+ @SyncDataToLocal(eventType = ptUserAccount_CLOSE_EDIT,sender = USER_ACCOUNT_SENDER)
|
|
|
@PutMapping("/close/{userIds}")
|
|
@PutMapping("/close/{userIds}")
|
|
|
public R<Void> batchCloseAccount(@PathVariable Long[] userIds) {
|
|
public R<Void> batchCloseAccount(@PathVariable Long[] userIds) {
|
|
|
if(ptUserAccountService.closeAccount(userIds)){
|
|
if(ptUserAccountService.closeAccount(userIds)){
|