This commit is contained in:
sxu 2025-02-28 15:30:09 +08:00
parent 6c97f357b1
commit 34f2bc250c
1 changed files with 0 additions and 3 deletions

View File

@ -341,9 +341,6 @@ public class CustInfoServiceImpl extends ServiceImpl<CustInfoMapper, CustInfo> i
custInfo.setCustNameLike(custInfo.getCustName()); custInfo.setCustNameLike(custInfo.getCustName());
} }
BCryptPasswordEncoder bCrypt = new BCryptPasswordEncoder(); BCryptPasswordEncoder bCrypt = new BCryptPasswordEncoder();
custInfo.setMobile(SM4EncryptUtils.sm4Encryptbyconfig(custInfo.getMobile()));
custInfo.setMobileSuffix(SM4EncryptUtils.sm4Encryptbyconfig(custInfo.getMobileSuffix()));
custInfo.setIdCard(SM4EncryptUtils.sm4Encryptbyconfig(custInfo.getIdCard()));
custInfo.setPwd(bCrypt.encode(custInfo.getPwd())); custInfo.setPwd(bCrypt.encode(custInfo.getPwd()));
custInfo.setPsnType(custInfo.getPsnType()).setBirthday(custInfo.getBirthday()).setAge(custInfo.getAge()).setPlaceId(custInfo.getPlaceId() == null ? CustConstant.DATA_DEFAULT_LONG : custInfo.getPlaceId()).setSex((Integer)Optional.ofNullable(infoModel.getSex()).orElse(3)); custInfo.setPsnType(custInfo.getPsnType()).setBirthday(custInfo.getBirthday()).setAge(custInfo.getAge()).setPlaceId(custInfo.getPlaceId() == null ? CustConstant.DATA_DEFAULT_LONG : custInfo.getPlaceId()).setSex((Integer)Optional.ofNullable(infoModel.getSex()).orElse(3));