feaet:同步正元少于50块就锁卡
This commit is contained in:
1 parent
f46c75ed85
commit
735bb70996
1 file changed
+4
-2
+4
-2
@@ -284,7 +284,7 @@ public class WalletThirdZyServiceImpl implements WalletThirdZyService {
|
||||
item.setAccNum(v.getUserId().toString());
|
||||
item.setCardAccNum(userWallet.getId());
|
||||
item.setCardSID(userWallet.getCardNumber());
|
||||
item.setCardStatus(getCardStatus(userWallet.getStatus()));
|
||||
item.setCardStatus(getCardStatus(userWallet.getStatus(), userWallet.getBalance()));
|
||||
item.setEPID(v.getDeptId().toString());
|
||||
item.setPerCode(v.getUserId().toString());
|
||||
item.setAccClassID(roleId.toString());
|
||||
@@ -321,9 +321,11 @@ public class WalletThirdZyServiceImpl implements WalletThirdZyService {
|
||||
|
||||
|
||||
// 卡片状态,0销卡;1有效;2挂失;3冻结;4预销卡;5锁卡,默认1
|
||||
private Integer getCardStatus(String cardStatus) {
|
||||
private Integer getCardStatus(String cardStatus, Integer balance) {
|
||||
// 没有就默认锁卡
|
||||
if (ObjectUtil.isEmpty(cardStatus)) return 5;
|
||||
// 少于50块的锁卡
|
||||
if (balance <= 5000) return 5;
|
||||
try {
|
||||
WalleCardStatusEnum walleCardStatusEnum = WalleCardStatusEnum.valueOfByType(cardStatus);
|
||||
return switch (walleCardStatusEnum) {
|
||||
|
||||
Reference in new issue
Block a user