| | |
| | | public R republishEvent(CommonEventRepublishDTO commonEventRepublishDTO) { |
| | | EventDO eventDO = this.getBaseMapper().selectById(commonEventRepublishDTO.getId()); |
| | | //boolean canRepublishByUser = eventDO.getEventStatus() == 4 || eventDO.getEventStatus() == 1; |
| | | boolean canRepublishByUser = eventDO.getEventDealStatus() == 7|eventDO.getEventDealStatus() == 5; //已失效状态 |
| | | boolean canRepublishByUser = eventDO.getEventDealStatus() == 6|eventDO.getEventDealStatus() == 5; //已失效状态 |
| | | if (!canRepublishByUser) { |
| | | return R.fail("当前不是撤销/草稿状态"); |
| | | } |
| | | |
| | | if(eventDO.getEventCategory().equals(2L)){//宣传教育 |
| | | eventDO.setEventDealStatus(8); |
| | | }else{ |
| | | eventDO.setEventProcessStatus(1); //待解决 |
| | | eventDO.setProcessType(1); //网格员处理 |
| | | } |
| | | eventDO.setEventStatus(2);//2 发布 |
| | | eventDO.setEventProcessStatus(1); //待解决 |
| | | eventDO.setProcessType(1); //网格员处理 |
| | | eventDO.setUpdateBy(commonEventRepublishDTO.getUserId()); |
| | | |
| | | int updated = this.getBaseMapper().updateById(eventDO); |
| | | if (updated != 1) { |
| | | return R.fail("更新事件状态失败"); |
| | |
| | | workScreenVO.setResolvedNum(countMap.get("resolvedNum")== null ? 0L : Long.valueOf(countMap.get("resolvedNum").toString())); |
| | | workScreenVO.setPendingNum(countMap.get("pendingNum")== null ? 0L : Long.valueOf(countMap.get("pendingNum").toString())); |
| | | workScreenVO.setPropagandaNum(countMap.get("propagandaNum")== null ? 13L : Long.valueOf(countMap.get("propagandaNum").toString())); |
| | | workScreenVO.setCurrentNum(countMap.get("currentNum")== null ? 0L : Long.valueOf(countMap.get("currentNum").toString())); |
| | | workScreenVO.setCurrentNum(countMap.get("sspCurrentNum") + countMap.get("currentNum")); |
| | | } |
| | | |
| | | //计算处理时间消耗的时间 |