敏感数据脱敏
This commit is contained in:
parent
8d12ce9ae5
commit
e5e7962cc3
|
|
@ -5,6 +5,7 @@ import cn.hutool.core.collection.CollUtil;
|
|||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.exceptions.ValidateException;
|
||||
import cn.hutool.core.lang.Validator;
|
||||
import cn.hutool.core.thread.ThreadUtil;
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
|
@ -17,6 +18,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.sqx.common.exception.SqxException;
|
||||
import com.sqx.common.utils.DesensitizedUtil;
|
||||
import com.sqx.common.utils.PageUtils;
|
||||
import com.sqx.common.utils.Result;
|
||||
import com.sqx.modules.app.dao.MsgDao;
|
||||
|
|
@ -171,10 +173,22 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
|
|||
item.setVerifyCount(info2.getCount());
|
||||
item.setVerifyTotal(info2.getTotal());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (isApp) {
|
||||
for (CashOut item : cashOutList) {
|
||||
if (StrUtil.isNotBlank(item.getBankName())) {
|
||||
String bankCardNo = DesensitizedUtil.bankCard(item.getZhifubao());
|
||||
item.setZhifubao(bankCardNo);
|
||||
} else if (Validator.isEmail(item.getZhifubao())) {
|
||||
String email = DesensitizedUtil.email(item.getZhifubao());
|
||||
item.setZhifubao(email);
|
||||
} else if (Validator.isMobile(item.getZhifubao())) {
|
||||
String mobilePhone = DesensitizedUtil.mobilePhone(item.getZhifubao());
|
||||
item.setZhifubao(mobilePhone);
|
||||
}
|
||||
}
|
||||
}
|
||||
return PageUtils.page(new PageInfo<>(cashOutList));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue