修复档口电话加密问题

This commit is contained in:
sxu 2025-03-28 13:40:39 +08:00
parent 2892b11944
commit afd057e868
2 changed files with 1 additions and 15 deletions

View File

@ -183,7 +183,6 @@ public class AllocCanteenBusinessImpl implements AllocCanteenBusiness {
public AllocStallModifyModel getStallForModify(Long stallId) {
AllocStall allocStall = (AllocStall)this.allocStallService.getOne(Wrappers.lambdaQuery(AllocStall.class)
.eq(AllocStall::getStallId, stallId));
allocStall.setContactTel(this.aesEncryptUtil.aesEncrypt(allocStall.getContactTel()));
AllocStallSaveDTO stallSaveDTO = new AllocStallSaveDTO();
BeanUtils.copyProperties(allocStall, stallSaveDTO);
if (ObjectUtil.isNotNull(stallSaveDTO.getCustId())) {
@ -487,7 +486,6 @@ public class AllocCanteenBusinessImpl implements AllocCanteenBusiness {
AllocStallModifyDTO stallModifyDTO = new AllocStallModifyDTO();
BeanUtils.copyProperties(stallModel.getStallSaveDTO(), stallModifyDTO);
stallModifyDTO.ifEnableHandler(stallModel);
stallModifyDTO.setContactTel(this.aesEncryptUtil.aesDecode(stallModifyDTO.getContactTel()));
Long oldCanteenId = this.allocStallMapper.getCanteenId(stallId);
if (LeConstants.COMMON_YES.equals(stallModifyDTO.getIfEnablePayCode())) {
AllocStall tempStall = (AllocStall)this.allocStallService.getOne((Wrapper)Wrappers.lambdaQuery(AllocStall.class).eq(AllocStall::getStallId, stallId));

View File

@ -169,19 +169,7 @@ public class AllocStallServiceImpl extends ServiceImpl<AllocStallMapper, AllocSt
param.setAreaIdList(this.allocAreaService.getAllChildrenId(param.getAreaId()));
}
page = this.baseMapper.pageStall(page, param);
if (CollUtil.isEmpty(page.getRecords())) {
return page;
} else {
Iterator var3 = page.getRecords().iterator();
while(var3.hasNext()) {
AllocStallVO stallVO = (AllocStallVO)var3.next();
stallVO.setContactTel(this.aesEncryptUtil.aesEncrypt(stallVO.getContactTel()));
}
return page;
}
return this.baseMapper.pageStall(page, param);
}
public void checkStallNameExist(String stallName, Long stallId) {