|
|
|
@ -62,16 +62,27 @@ public class CreatorAccountServiceImpl implements CreatorAccountService { |
|
|
|
if(StringUtils.isNotBlank(dto.getPhone())){ |
|
|
|
wrapper.eq(CreatorAccount::getPhone, Sm4Util.sm4Encryption(dto.getPhone())); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(dto.getAliPayNo())){ |
|
|
|
wrapper.eq(CreatorAccount::getAliPayNo, Sm4Util.sm4Encryption(dto.getAliPayNo())); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(dto.getIsShow())){ |
|
|
|
wrapper.eq(CreatorAccount::getIsShow, dto.getIsShow()); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(dto.getType())){ |
|
|
|
wrapper.eq(CreatorAccount::getType, dto.getType()); |
|
|
|
} |
|
|
|
wrapper.orderByDesc(CreatorAccount::getSort); |
|
|
|
List<CreatorAccount> creatorAccounts = creatorAccountMapper.selectList(wrapper); |
|
|
|
for (CreatorAccount creatorAccount : creatorAccounts) { |
|
|
|
creatorAccount.setIdNo(Sm4Util.sm4Decrypt(creatorAccount.getIdNo())); |
|
|
|
creatorAccount.setPhone(Sm4Util.sm4Decrypt(creatorAccount.getPhone())); |
|
|
|
creatorAccount.setName(creatorAccount.getName()); |
|
|
|
creatorAccount.setBankNo(Sm4Util.sm4Decrypt(creatorAccount.getBankNo())); |
|
|
|
if(StringUtils.isNotBlank(creatorAccount.getBankNo())){ |
|
|
|
creatorAccount.setBankNo(Sm4Util.sm4Decrypt(creatorAccount.getBankNo())); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(creatorAccount.getAliPayNo())){ |
|
|
|
creatorAccount.setAliPayNo(Sm4Util.sm4Decrypt(creatorAccount.getAliPayNo())); |
|
|
|
} |
|
|
|
JSONObject.parseObject(DesensitizedUtils.getJsonNoCopy(creatorAccount), CreatorAccount.class); |
|
|
|
} |
|
|
|
return creatorAccounts; |
|
|
|
@ -84,7 +95,12 @@ public class CreatorAccountServiceImpl implements CreatorAccountService { |
|
|
|
creatorAccount.setIdNo(Sm4Util.sm4Decrypt(creatorAccount.getIdNo())); |
|
|
|
creatorAccount.setPhone(Sm4Util.sm4Decrypt(creatorAccount.getPhone())); |
|
|
|
creatorAccount.setName(creatorAccount.getName()); |
|
|
|
creatorAccount.setBankNo(Sm4Util.sm4Decrypt(creatorAccount.getBankNo())); |
|
|
|
if(StringUtils.isNotBlank(creatorAccount.getBankNo())){ |
|
|
|
creatorAccount.setBankNo(Sm4Util.sm4Decrypt(creatorAccount.getBankNo())); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(creatorAccount.getAliPayNo())){ |
|
|
|
creatorAccount.setAliPayNo(Sm4Util.sm4Decrypt(creatorAccount.getAliPayNo())); |
|
|
|
} |
|
|
|
JSONObject.parseObject(DesensitizedUtils.getJsonNoCopy(creatorAccount), CreatorAccount.class); |
|
|
|
} |
|
|
|
return creatorAccount; |
|
|
|
@ -95,7 +111,12 @@ public class CreatorAccountServiceImpl implements CreatorAccountService { |
|
|
|
List<CreatorAccountVo> creatorAccountVos = creatorAccountMapper.queryFrontList(creatorId); |
|
|
|
for (CreatorAccountVo creatorAccountVo : creatorAccountVos) { |
|
|
|
creatorAccountVo.setName(creatorAccountVo.getName()); |
|
|
|
creatorAccountVo.setBankNo(Sm4Util.sm4Decrypt(creatorAccountVo.getBankNo())); |
|
|
|
if(StringUtils.isNotBlank(creatorAccountVo.getBankNo())){ |
|
|
|
creatorAccountVo.setBankNo(Sm4Util.sm4Decrypt(creatorAccountVo.getBankNo())); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(creatorAccountVo.getAliPayNo())){ |
|
|
|
creatorAccountVo.setAliPayNo(Sm4Util.sm4Decrypt(creatorAccountVo.getAliPayNo())); |
|
|
|
} |
|
|
|
JSONObject.parseObject(DesensitizedUtils.getJsonNoCopy(creatorAccountVo), CreatorAccountVo.class); |
|
|
|
} |
|
|
|
return creatorAccountVos; |
|
|
|
|