|
|
@ -95,6 +95,14 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<IcEventListResultDTO> list(IcEventListFormDTO formDTO) { |
|
|
|
//获取当前工作人员缓存信息
|
|
|
|
CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(formDTO.getCustomerId(), formDTO.getStaffId()); |
|
|
|
if (null == staffInfo) { |
|
|
|
throw new EpmetException(String.format("查询工作人员%s缓存信息失败...", formDTO.getStaffId())); |
|
|
|
} |
|
|
|
formDTO.setAgencyId(staffInfo.getAgencyId()); |
|
|
|
|
|
|
|
//分页查询当前组织下网格内事件数据
|
|
|
|
PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize(), formDTO.getIsPage()); |
|
|
|
List<IcEventListResultDTO> list = baseDao.icEventList(formDTO); |
|
|
|
PageInfo<IcEventListResultDTO> pageInfo = new PageInfo<>(list); |
|
|
@ -883,7 +891,6 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
resultDTO.setCategoryCode(ca.getCategoryCode()); |
|
|
|
resultDTO.setParentCategoryName(ca.getParentCategoryName()); |
|
|
|
resultDTO.setCategoryName(ca.getCategoryName()); |
|
|
|
resultDTO.setCategoryName(ca.getParentCategoryName()+"-"+ca.getCategoryName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -963,7 +970,9 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
int start = (no - NumConstant.ONE) * size; |
|
|
|
ids = baseDao.getAutoEvaluationIds(customerId,start,size); |
|
|
|
// 批量更新
|
|
|
|
baseDao.updateAutoEvaluation(ids); |
|
|
|
if (!CollectionUtils.isEmpty(ids)){ |
|
|
|
baseDao.updateAutoEvaluation(ids); |
|
|
|
} |
|
|
|
no++; |
|
|
|
}while (ids.size() == size); |
|
|
|
} |
|
|
@ -1096,6 +1105,8 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
if (!CollectionUtils.isEmpty(attachmentEntityList)){ |
|
|
|
icEventAttachmentService.insertBatch(attachmentEntityList); |
|
|
|
} |
|
|
|
// 站内信发送给社区每个工作人员
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void disposeAttachment(List<FileCommonDTO> list,List<IcEventAttachmentEntity> attachmentEntityList,String id,String customerId,String userId){ |
|
|
|