|
|
|
@ -64,6 +64,7 @@ public class IcResiCollectVisitorServiceImpl extends BaseServiceImpl<IcResiColle |
|
|
|
|
|
|
|
/** |
|
|
|
* 条件查询 |
|
|
|
* |
|
|
|
* @param params |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@ -76,6 +77,7 @@ public class IcResiCollectVisitorServiceImpl extends BaseServiceImpl<IcResiColle |
|
|
|
|
|
|
|
/** |
|
|
|
* Desc: 查询访客信息 |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @author wgf |
|
|
|
* @date 2022/8/5 8:23 |
|
|
|
@ -83,10 +85,10 @@ public class IcResiCollectVisitorServiceImpl extends BaseServiceImpl<IcResiColle |
|
|
|
@Override |
|
|
|
public PageData<IcResiCollectVisitorDTO> getVisitorList(VisitListFormDTO formDTO) { |
|
|
|
PageData<IcResiCollectVisitorDTO> result = new PageData<>(new ArrayList<>(), 0); |
|
|
|
if (StringUtils.isBlank(formDTO.getStartTime()) && StringUtils.isBlank(formDTO.getEndTime()) ){ |
|
|
|
if (StringUtils.isBlank(formDTO.getStartTime()) && StringUtils.isBlank(formDTO.getEndTime())) { |
|
|
|
CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(formDTO.getCustomerId(), formDTO.getUserId()); |
|
|
|
if (null == staffInfo){ |
|
|
|
throw new EpmetException("查询人员信息失败"+formDTO.getUserId()); |
|
|
|
if (null == staffInfo) { |
|
|
|
throw new EpmetException("查询人员信息失败" + formDTO.getUserId()); |
|
|
|
} |
|
|
|
formDTO.setOrgId(staffInfo.getAgencyId()); |
|
|
|
} |
|
|
|
@ -103,8 +105,8 @@ public class IcResiCollectVisitorServiceImpl extends BaseServiceImpl<IcResiColle |
|
|
|
return ConvertUtils.sourceToTarget(entityList, IcResiCollectVisitorDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
private QueryWrapper<IcResiCollectVisitorEntity> getWrapper(Map<String, Object> params){ |
|
|
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
|
|
|
private QueryWrapper<IcResiCollectVisitorEntity> getWrapper(Map<String, Object> params) { |
|
|
|
String id = (String) params.get(FieldConstant.ID_HUMP); |
|
|
|
|
|
|
|
QueryWrapper<IcResiCollectVisitorEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|
|
|
@ -153,7 +155,7 @@ public class IcResiCollectVisitorServiceImpl extends BaseServiceImpl<IcResiColle |
|
|
|
insert(entity); |
|
|
|
|
|
|
|
// 如果是顺德居小区的人还要下放门禁
|
|
|
|
if (dto.getVillageName().contains("顺德居")) { |
|
|
|
if (dto.getVillageName().contains("顺德居") && StringUtils.isNotBlank(dto.getFaceImg())) { |
|
|
|
VisitVisitorFormDTO visitor = new VisitVisitorFormDTO(); |
|
|
|
visitor.setMobile(dto.getMobile()); |
|
|
|
visitor.setName(dto.getName()); |
|
|
|
|