|
|
@ -1108,6 +1108,9 @@ public class ResiGroupServiceImpl extends BaseServiceImpl<ResiGroupDao, ResiGrou |
|
|
|
if (groupEditSubmitRecordDao.insert(editRecord) == 0) { |
|
|
|
throw new RenException(EpmetErrorCode.GROUP_EDIT_ERROR.getCode(), EpmetErrorCode.GROUP_EDIT_ERROR.getMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
resiGroupRedis.addWorkGrassrootsGroupRedDotValue(group.getGridId()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -1276,6 +1279,12 @@ public class ResiGroupServiceImpl extends BaseServiceImpl<ResiGroupDao, ResiGrou |
|
|
|
if(StringUtils.equals(param.getAuditResult(),ModuleConstant.AUDITING_OPERATION_REJECT) && StringUtils.isBlank(param.getRemark())){ |
|
|
|
throw new RenException("拒绝理由不能为空"); |
|
|
|
} |
|
|
|
GroupEditSubmitRecordEntity edit = groupEditSubmitRecordDao.selectEditDetail(param.getGroupId(),param.getAuditResult()); |
|
|
|
if(null == edit){ |
|
|
|
logger.error("com.epmet.modules.group.service.impl.ResiGroupServiceImpl.auditEdit,找不到待审核的组更新记录,传参:{}",JSON.toJSONString(param)); |
|
|
|
throw new RenException("找不到待审核的组更新记录"); |
|
|
|
} |
|
|
|
|
|
|
|
int affectedRows = groupEditSubmitRecordDao.updateAuditResult(param.getGroupId(),param.getStaffId(),param.getAuditResult(),param.getRemark()); |
|
|
|
if(affectedRows <= NumConstant.ZERO){ |
|
|
|
logger.error("com.epmet.modules.group.service.impl.ResiGroupServiceImpl.auditEdit,更新组编辑记录时受影响行数小于1,传参:{}",JSON.toJSONString(param)); |
|
|
@ -1283,16 +1292,11 @@ public class ResiGroupServiceImpl extends BaseServiceImpl<ResiGroupDao, ResiGrou |
|
|
|
} |
|
|
|
if(!StringUtils.equals(param.getAuditResult(),ModuleConstant.AUDITING_OPERATION_REJECT)){ |
|
|
|
//同意
|
|
|
|
GroupEditSubmitRecordEntity edit = groupEditSubmitRecordDao.selectEditDetail(param.getGroupId(),param.getAuditResult()); |
|
|
|
if(null == edit){ |
|
|
|
logger.error("com.epmet.modules.group.service.impl.ResiGroupServiceImpl.auditEdit,找不到待审核的组更新记录,传参:{}",JSON.toJSONString(param)); |
|
|
|
throw new RenException("找不到待审核的组更新记录"); |
|
|
|
} |
|
|
|
ResiGroupEntity _update = ConvertUtils.sourceToTarget(edit,ResiGroupEntity.class); |
|
|
|
_update.setId(param.getGroupId()); |
|
|
|
baseDao.updateById(_update); |
|
|
|
} |
|
|
|
|
|
|
|
resiGroupRedis.subtractWorkGrassrootsPartyAuthRedDotValue(edit.getGridId()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|