| | |
| | | Integer xfyhzg = SpringUtils.getBean(ITaskPlaceRectificationService.class).getCount(neiCode, 1); |
| | | // 居住证申请 |
| | | Integer jzzsq = SpringUtils.getBean(ITaskResidencePermitApplyService.class).getCount(neiCode, 1); |
| | | // 无诈统计 |
| | | taskVO.setReportType(6); |
| | | Integer wztj = baseMapper.selectTaskCount(taskVO, commonParamSet.getRegionChildCodesList(), |
| | | commonParamSet.getIsAdministrator(), commonParamSet.getGridCodeList()); |
| | | // 设置 |
| | | objectObjectHashMap.put("qbhs", qbhs);// 取保候审 |
| | | objectObjectHashMap.put("bqsj", bqsj);// 标签报事-二手交易 |
| | |
| | | objectObjectHashMap.put("xfzc", xfzc);// 消防自查 |
| | | objectObjectHashMap.put("xfyhzg", xfyhzg);// 消防隐患整改 |
| | | objectObjectHashMap.put("jzzsq", jzzsq);// 居住证申请 |
| | | objectObjectHashMap.put("wztj", wztj);// 无诈 |
| | | return objectObjectHashMap; |
| | | } |
| | | |
| | |
| | | } |
| | | // 根据任务报告类型,更新任务状态并触发相应的事件更新 |
| | | boolean result = updateById(task); |
| | | if (!result) { |
| | | return false; |
| | | } |
| | | if (task.getReportType().equals(CommonConstant.REPORT_TYPE_SECONDHAND_TRADE)) { |
| | | // 如果报告类型匹配,尝试更新任务标签报告事件状态 |
| | | if (result) { |
| | | ITaskLabelReportingEventService bean = SpringUtils.getBean(ITaskLabelReportingEventService.class); |
| | | return bean.update(Wrappers.<TaskLabelReportingEventEntity>lambdaUpdate() |
| | | .set(TaskLabelReportingEventEntity::getConfirmFlag, task.getStatus()) |
| | | .eq(TaskLabelReportingEventEntity::getTaskId, task.getId())); |
| | | } |
| | | } else if (task.getReportType().equals(CommonConstant.REPORT_TYPE_FIRE_INSPECTION)) { |
| | | ITaskLabelReportingEventService bean = SpringUtils.getBean(ITaskLabelReportingEventService.class); |
| | | return bean.update(Wrappers.<TaskLabelReportingEventEntity>lambdaUpdate() |
| | | .set(TaskLabelReportingEventEntity::getConfirmFlag, task.getStatus()) |
| | | .eq(TaskLabelReportingEventEntity::getTaskId, task.getId())); |
| | | } else if (task.getReportType(). |
| | | equals(CommonConstant.REPORT_TYPE_FIRE_INSPECTION)) { |
| | | // 如果报告类型为消防自查,尝试更新消防自查状态 |
| | | if (result) { |
| | | ITaskPlaceSelfCheckService bean = SpringUtils.getBean(ITaskPlaceSelfCheckService.class); |
| | | return bean.update(Wrappers.<TaskPlaceSelfCheckEntity>lambdaUpdate() |
| | | .set(TaskPlaceSelfCheckEntity::getStatus, task.getStatus()) |
| | | .eq(TaskPlaceSelfCheckEntity::getTaskId, task.getId())); |
| | | } |
| | | ITaskPlaceSelfCheckService bean = SpringUtils.getBean(ITaskPlaceSelfCheckService.class); |
| | | return bean.update(Wrappers.<TaskPlaceSelfCheckEntity>lambdaUpdate() |
| | | .set(TaskPlaceSelfCheckEntity::getStatus, task.getStatus()) |
| | | .eq(TaskPlaceSelfCheckEntity::getTaskId, task.getId())); |
| | | |
| | | } else if (task.getReportType().equals(CommonConstant.REPORT_TYPE_NO_FRAUD)) { |
| | | // 如果报告类型为无诈,尝试更新无诈报告状态 |
| | | if (result) { |
| | | ITaskNoFraudReportingService bean = SpringUtils.getBean(ITaskNoFraudReportingService.class); |
| | | return bean.update(Wrappers.<TaskNoFraudReportingEntity>lambdaUpdate() |
| | | .set(TaskNoFraudReportingEntity::getStatus, task.getStatus()) |
| | | .eq(TaskNoFraudReportingEntity::getTaskId, task.getId())); |
| | | } |
| | | ITaskNoFraudReportingService bean = SpringUtils.getBean(ITaskNoFraudReportingService.class); |
| | | return bean.update(Wrappers.<TaskNoFraudReportingEntity>lambdaUpdate() |
| | | .set(TaskNoFraudReportingEntity::getStatus, task.getStatus()) |
| | | .eq(TaskNoFraudReportingEntity::getTaskId, task.getId())); |
| | | } |
| | | // 如果没有匹配的报告类型,返回false |
| | | return false; |