feat:离职自动转账
This commit is contained in:
1 parent
c3c41253d7
commit
80e859781b
22 files changed
+303
-11
No files matched your search
+35
@@ -0,0 +1,35 @@
|
||||
package com.bsd.pjcloud.daemon.quartz.task;
|
||||
|
||||
|
||||
import com.bsd.pjcloud.admin.api.feign.RemoteUserTransaction;
|
||||
import com.bsd.pjcloud.daemon.quartz.constants.PjcloudQuartzEnum;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Slf4j
|
||||
@Component("umps")
|
||||
@AllArgsConstructor
|
||||
public class UmpsTask {
|
||||
|
||||
private final RemoteUserTransaction remoteUserTransaction;
|
||||
|
||||
/**
|
||||
* 离职退休自动转到消费钱包
|
||||
*/
|
||||
@SneakyThrows
|
||||
public String userWalletTransaction(String para) {
|
||||
log.info("离职退休自动转到消费钱包:{},输入参数{}", LocalDateTime.now(), para);
|
||||
try {
|
||||
remoteUserTransaction.walletTransationCallback(para);
|
||||
log.info("离职退休自动转到消费钱包成功:{}", LocalDateTime.now());
|
||||
} catch (Exception e) {
|
||||
log.error("离职退休自动转到消费钱包错误error:{},时间:{}", e.getMessage(), LocalDateTime.now(), e);
|
||||
}
|
||||
return PjcloudQuartzEnum.JOB_LOG_STATUS_SUCCESS.getType();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user