6618 订单管理模块中手机号传输未加密
6620 账户管理模块用户手机号传输未加密 6622 钱包管理模块用户手机号传输未加密
This commit is contained in:
parent
f74b79ed8b
commit
ca1d10ff92
|
|
@ -255,10 +255,10 @@ public class AccInfoServiceImpl implements IAccInfoService {
|
|||
if (CollUtil.isEmpty(list)) {
|
||||
return;
|
||||
}
|
||||
list = list.stream().peek(item -> {
|
||||
String decryptedPhoneNumber = SM4EncryptUtils.sm4Decrypt(item.getPhoneNumber());
|
||||
item.setPhoneNumber(decryptedPhoneNumber);
|
||||
}).collect(Collectors.toList());
|
||||
// list = list.stream().peek(item -> {
|
||||
// String decryptedPhoneNumber = SM4EncryptUtils.sm4Decrypt(item.getPhoneNumber());
|
||||
// item.setPhoneNumber(decryptedPhoneNumber);
|
||||
// }).collect(Collectors.toList());
|
||||
List<Long> custIdList = list.stream()
|
||||
.map(AccInfoDetailsVO::getUserId)
|
||||
.collect(Collectors.toList());
|
||||
|
|
@ -468,11 +468,11 @@ public class AccInfoServiceImpl implements IAccInfoService {
|
|||
@Override
|
||||
public List<AccOperationListVO> queryAccPersonalWalOperationAddList(AccWalletOperationQueryParam param) {
|
||||
List<AccOperationListVO> operationListVOList = accTradeService.queryAccOperationList(param);
|
||||
if(CollUtil.isNotEmpty(operationListVOList)) {
|
||||
for(AccOperationListVO vo: operationListVOList) {
|
||||
vo.setPhoneNumber(SM4EncryptUtils.sm4Decrypt(vo.getPhoneNumber()));
|
||||
}
|
||||
}
|
||||
// if(CollUtil.isNotEmpty(operationListVOList)) {
|
||||
// for(AccOperationListVO vo: operationListVOList) {
|
||||
// vo.setPhoneNumber(SM4EncryptUtils.sm4Decrypt(vo.getPhoneNumber()));
|
||||
// }
|
||||
// }
|
||||
return operationListVOList ;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,11 +29,11 @@ public class AccOperationHistoryServiceImpl extends ServiceImpl<AccOperationHist
|
|||
public List<AccountInfoHistoryVO> selectAccOperationHistory(AccOperationQueryParam param) {
|
||||
String encryptedSearchValue = SM4EncryptUtils.sm4Encrypt(param.getSearchValue());
|
||||
List<AccountInfoHistoryVO> operationRecordList = this.baseMapper.queryPageAccOperationRecord(param, encryptedSearchValue);
|
||||
if(CollUtil.isNotEmpty(operationRecordList)) {
|
||||
for(AccountInfoHistoryVO history : operationRecordList) {
|
||||
history.setPhone(SM4EncryptUtils.sm4Decrypt(history.getPhone()));
|
||||
}
|
||||
}
|
||||
// if(CollUtil.isNotEmpty(operationRecordList)) {
|
||||
// for(AccountInfoHistoryVO history : operationRecordList) {
|
||||
// history.setPhone(SM4EncryptUtils.sm4Decrypt(history.getPhone()));
|
||||
// }
|
||||
// }
|
||||
return operationRecordList;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -361,7 +361,8 @@ public class AccSubServiceImpl implements AccSubService {
|
|||
errVO.setNickName(accInfo.getNickName());
|
||||
errVO.setDeptFullName(accInfo.getDeptFullName());
|
||||
errVO.setUserType(accInfo.getUserType());
|
||||
errVO.setPhoneNumber(SM4EncryptUtils.sm4Decrypt(accInfo.getPhoneNumber()));
|
||||
// errVO.setPhoneNumber(SM4EncryptUtils.sm4Decrypt(accInfo.getPhoneNumber()));
|
||||
errVO.setPhoneNumber(accInfo.getPhoneNumber());
|
||||
errVO.setAmount(amount);
|
||||
errVO.setErrorMessage(errMsg);
|
||||
return errVO;
|
||||
|
|
@ -369,11 +370,11 @@ public class AccSubServiceImpl implements AccSubService {
|
|||
@Override
|
||||
public List<AccOperationListVO> queryAccSubOperationList(AccWalletOperationQueryParam param) {
|
||||
List<AccOperationListVO> operationListVOList = accTradeService.queryAccOperationList(param);
|
||||
if(CollUtil.isNotEmpty(operationListVOList)) {
|
||||
for(AccOperationListVO vo: operationListVOList) {
|
||||
vo.setPhoneNumber(SM4EncryptUtils.sm4Decrypt(vo.getPhoneNumber()));
|
||||
}
|
||||
}
|
||||
// if(CollUtil.isNotEmpty(operationListVOList)) {
|
||||
// for(AccOperationListVO vo: operationListVOList) {
|
||||
// vo.setPhoneNumber(SM4EncryptUtils.sm4Decrypt(vo.getPhoneNumber()));
|
||||
// }
|
||||
// }
|
||||
return operationListVOList ;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,11 +153,11 @@ public class AccTradeServiceImpl implements IAccTradeService {
|
|||
public List<AccOperationListVO> queryAccOperationList(AccWalletOperationQueryParam param) {
|
||||
String encryptedSearchValue = SM4EncryptUtils.sm4Encrypt(param.getSearchValue());
|
||||
List<AccOperationListVO> list = accTradeMapper.queryAccOperationList(param, encryptedSearchValue);
|
||||
if(CollUtil.isNotEmpty(list)) {
|
||||
for(AccOperationListVO vo : list) {
|
||||
vo.setPhoneNumber(SM4EncryptUtils.sm4Decrypt(vo.getPhoneNumber()));
|
||||
}
|
||||
}
|
||||
// if(CollUtil.isNotEmpty(list)) {
|
||||
// for(AccOperationListVO vo : list) {
|
||||
// vo.setPhoneNumber(SM4EncryptUtils.sm4Decrypt(vo.getPhoneNumber()));
|
||||
// }
|
||||
// }
|
||||
return list;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,11 +46,11 @@ public class KitchenStaffMorningCheckServiceImpl implements IKitchenStaffMorning
|
|||
kitchenStaffMorningCheck.setEncryptedSearchValue(encryptedSearchValue);
|
||||
List<KitchenStaffMorningCheck> kitchenStaffMorningCheckList = kitchenStaffMorningCheckMapper
|
||||
.selectKitchenStaffMorningCheckList(kitchenStaffMorningCheck);
|
||||
if(CollUtil.isNotEmpty(kitchenStaffMorningCheckList)) {
|
||||
kitchenStaffMorningCheckList.forEach(value -> {
|
||||
value.setMobile(SM4EncryptUtils.sm4Decrypt(value.getMobile()));
|
||||
});
|
||||
}
|
||||
// if(CollUtil.isNotEmpty(kitchenStaffMorningCheckList)) {
|
||||
// kitchenStaffMorningCheckList.forEach(value -> {
|
||||
// value.setMobile(SM4EncryptUtils.sm4Decrypt(value.getMobile()));
|
||||
// });
|
||||
// }
|
||||
|
||||
return kitchenStaffMorningCheckList;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,7 +130,8 @@ public class OrderInfoServiceImpl implements IOrderInfoService
|
|||
orderDetail.setOrderId(order.getOrderId());
|
||||
List<OrderDetail> orderDetailList = orderDetailService.selectOrderDetailList(orderDetail);
|
||||
order.setOrderDetailList(orderDetailList);
|
||||
order.setPhoneNumber(SM4EncryptUtils.sm4Decrypt(order.getPhoneNumber()));
|
||||
// order.setPhoneNumber(SM4EncryptUtils.sm4Decrypt(order.getPhoneNumber()));
|
||||
order.setPhoneNumber(order.getPhoneNumber());
|
||||
order.setDeliveryTypeName(DeliveryTypeEnum.getDescByKey(order.getDeliveryType()));
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,11 +49,11 @@ public class AccReportServiceImpl implements AccReportService {
|
|||
public List<UserIncomeOutcomeVO> selectUserIncomeOutcome(UserIncomeOutcomeParam param) {
|
||||
String encryptedSearchValue = SM4EncryptUtils.sm4Encrypt(param.getSearchValue());
|
||||
List<UserIncomeOutcomeVO> list = accReportMapper.selectUserIncomeOutcome(param, encryptedSearchValue);
|
||||
if(CollUtil.isNotEmpty(list)) {
|
||||
for (UserIncomeOutcomeVO userIncomeOutcomeVO : list) {
|
||||
userIncomeOutcomeVO.setPhonenumber(SM4EncryptUtils.sm4Decrypt(userIncomeOutcomeVO.getPhonenumber()));
|
||||
}
|
||||
}
|
||||
// if(CollUtil.isNotEmpty(list)) {
|
||||
// for (UserIncomeOutcomeVO userIncomeOutcomeVO : list) {
|
||||
// userIncomeOutcomeVO.setPhonenumber(SM4EncryptUtils.sm4Decrypt(userIncomeOutcomeVO.getPhonenumber()));
|
||||
// }
|
||||
// }
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,11 +19,11 @@ public class TradeReportServiceImpl implements TradeReportService {
|
|||
public List<TradeFlowVO> selectTradeFlow(TradeFlowParam param) {
|
||||
String encryptedSearchValue = SM4EncryptUtils.sm4Encrypt(param.getSearchValue());
|
||||
List<TradeFlowVO> tradeFlowVOList = tradeReportMapper.selectTradeFlow(param, encryptedSearchValue);
|
||||
if(CollUtil.isNotEmpty(tradeFlowVOList)) {
|
||||
for(TradeFlowVO vo : tradeFlowVOList) {
|
||||
vo.setPhonenumber(SM4EncryptUtils.sm4Decrypt(vo.getPhonenumber()));
|
||||
}
|
||||
}
|
||||
// if(CollUtil.isNotEmpty(tradeFlowVOList)) {
|
||||
// for(TradeFlowVO vo : tradeFlowVOList) {
|
||||
// vo.setPhonenumber(SM4EncryptUtils.sm4Decrypt(vo.getPhonenumber()));
|
||||
// }
|
||||
// }
|
||||
return tradeFlowVOList;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue